VictoriaMetrics/lib/promscrape
Roman Khavronenko 2b5e1dee91
vmagent: update SD duration histogram metric if SD is active (#2677)
The change updates histogram for registering SD update duration
only SD is considered as `active`. SD is active if at least
one scraper for this SD has started.

This change supposed to reduce metrics cardinality produced
by duration histogram which gets updated even if SD isn't configured.

See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2671

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2022-06-07 15:53:06 +03:00
..
discovery lib/promscrape/discovery/kubernetes: use unsupportedFieldError() function instead of errContext string 2022-06-07 01:24:14 +03:00
discoveryutils lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:06:19 +03:00
testdata lib/promscrape: fix errors in test config 2022-02-08 20:10:28 +02:00
client.go lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:06:19 +03:00
config.go lib/promscrape: add -promscrape.cluster.name command-line flag 2022-06-04 01:11:23 +03:00
config_test.go lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:06:19 +03:00
config_timing_test.go lib/promscrape: follow-up after 91e290a8ff 2022-04-20 16:12:26 +03:00
scraper.go vmagent: update SD duration histogram metric if SD is active (#2677) 2022-06-07 15:53:06 +03:00
scrapework.go all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00
scrapework_test.go lib/promscrape: generate scrape_timeout_seconds metric per each scrape target in the same way as Prometheus 2.30 does 2021-09-12 15:21:26 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:51:00 +03:00
statconn.go lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:24:22 +03:00
targetstatus.go all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00
targetstatus.qtpl all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00
targetstatus.qtpl.go all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00