package integrations12import (3"context"4"net/http"56"github.com/grafana/agent/pkg/integrations/config"7)89// StubIntegration implements a no-op integration for use on platforms not supported by an integration10type StubIntegration struct{}1112// MetricsHandler returns an http.NotFoundHandler to satisfy the Integration interface13func (i *StubIntegration) MetricsHandler() (http.Handler, error) {14return http.NotFoundHandler(), nil15}1617// ScrapeConfigs returns an empty list of scrape configs, since there is nothing to scrape18func (i *StubIntegration) ScrapeConfigs() []config.ScrapeConfig {19return []config.ScrapeConfig{}20}2122// Run just waits for the context to finish23func (i *StubIntegration) Run(ctx context.Context) error {24<-ctx.Done()25return ctx.Err()26}272829