# Functions
CheckConfig checks -promscrape.config for errors and unsupported options.
Init initializes Prometheus scraper with config from the `-promscrape.config`.
IsDryRun returns true if -promscrape.config.dryRun command-line flag is set.
No description provided by the author
Stop stops Prometheus scraper.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WriteAPIV1Targets writes /api/v1/targets to w according to https://prometheus.io/docs/prometheus/latest/querying/api/#targets.
WriteConfigData writes -promscrape.config contents to w.
WriteHumanReadableTargetsStatus writes human-readable status for all the scrape targets to w according to r.
WriteMetricRelabelDebug serves requests to /metric-relabel-debug page.
WriteServiceDiscovery writes /service-discovery response to w similar to http://demo.robustperception.io:9090/service-discovery.
No description provided by the author
WriteTargetRelabelDebug generates response for /target-relabel-debug page.
WriteTargetResponse serves requests to /target_response?id=<id>
It fetches response for the given target id and returns it.
No description provided by the author
No description provided by the author
# Variables
PendingScrapeConfigs - zero value means, that all scrapeConfigs are inited and ready for work.
# Structs
Config represents essential parts from Prometheus config defined at https://prometheus.io/docs/prometheus/latest/configuration/configuration/.
FileSDConfig represents file-based service discovery config.
GlobalConfig represents essential parts for `global` section of Prometheus config.
ScrapeConfig represents essential parts for `scrape_config` section of Prometheus config.
ScrapeWork represents a unit of work for scraping Prometheus metrics.
StaticConfig represents essential parts for `static_config` section of Prometheus config.