Documentation ¶
Index ¶
- func Create(server *veneur.Server, name string, logger *logrus.Entry, ...) (sources.Source, error)
- func ParseConfig(name string, config interface{}) (veneur.ParsedSourceConfig, error)
- type OpenMetricsSource
- func (source *OpenMetricsSource) Convert(prometheusResults <-chan QueryResults) <-chan *convertResults
- func (source OpenMetricsSource) Name() string
- func (source *OpenMetricsSource) Query(ctx context.Context) (<-chan QueryResults, error)
- func (source OpenMetricsSource) Start(ingest sources.Ingest) error
- func (source OpenMetricsSource) Stop()
- type OpenMetricsSourceConfig
- type QueryResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
Types ¶
type OpenMetricsSource ¶
type OpenMetricsSource struct { Denylist *regexp.Regexp HttpClient *http.Client ScrapeTarget *url.URL ScrapeTimeout time.Duration // contains filtered or unexported fields }
TODO(arnavdugar): Make public fields private once veneur-prometheus is removed.
func (*OpenMetricsSource) Convert ¶
func (source *OpenMetricsSource) Convert( prometheusResults <-chan QueryResults, ) <-chan *convertResults
func (OpenMetricsSource) Name ¶
func (source OpenMetricsSource) Name() string
func (*OpenMetricsSource) Query ¶
func (source *OpenMetricsSource) Query( ctx context.Context, ) (<-chan QueryResults, error)
func (OpenMetricsSource) Stop ¶
func (source OpenMetricsSource) Stop()
type OpenMetricsSourceConfig ¶
type OpenMetricsSourceConfig struct { Allowlist util.Regexp `yaml:"allowlist"` Denylist util.Regexp `yaml:"denylist"` HistogramBucketTag string `yaml:"histogram_bucket_tag"` ScrapeInterval time.Duration `yaml:"scrape_interval"` ScrapeTarget util.Url `yaml:"scrape_target"` ScrapeTimeout time.Duration `yaml:"scrape_timeout"` SummaryQuantileTag string `yaml:"summary_quantile_tag"` }
type QueryResults ¶
type QueryResults struct { MetricFamily dto.MetricFamily Error error }
Click to show internal directories.
Click to hide internal directories.