VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin b6d6a3a530
lib/promscrape: show dropped targets because of sharding at /service-discovery page
Previously the /service-discovery page didn't show targets dropped because of sharding
( https://docs.victoriametrics.com/vmagent.html#scraping-big-number-of-targets ).

Show also the reason why every target is dropped at /service-discovery page.
This should improve debuging why particular targets are dropped.

While at it, do not remove dropped targets from the list at /service-discovery page
until the total number of targets exceeds the limit passed to -promscrape.maxDroppedTargets .
Previously the list was cleaned up every 10 minutes from the entries, which weren't updated
for the last minute. This could complicate debugging of dropped targets.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5389
2023-12-04 17:42:46 +02:00
..
discovery lib/promscrape/discovery/kubernetes: propagate possible errors at newAPIWatcher() to the caller 2023-10-27 20:27:58 +02:00
discoveryutils lib/promauth: follow-up for e16d3f5639 2023-10-26 09:55:47 +02:00
testdata lib/promscrape: disable support for service discovery and metrics scrape via http2 2023-07-06 16:04:31 -07:00
client.go lib/promauth: follow-up for e16d3f5639 2023-10-26 09:55:47 +02:00
config_test.go lib/promauth: follow-up for e16d3f5639 2023-10-26 09:55:47 +02:00
config_timing_test.go
config.go lib/promscrape: show dropped targets because of sharding at /service-discovery page 2023-12-04 17:42:46 +02:00
relabel_debug.go app/vmselect: small cleanup after 4f3f9950d0 2023-05-09 22:45:02 -07:00
scraper.go lib/promscrape: show dropped targets because of sharding at /service-discovery page 2023-12-04 17:42:46 +02:00
scrapework_test.go lib/promscrape: fix honor_labels behavior (#3739) 2023-02-01 12:02:04 -08:00
scrapework_timing_test.go
scrapework.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-26 09:44:40 +02:00
statconn_test.go lib/promscrape: do not add a suggestion for enabling TCP6 in error message when the dial address is TCPv4 2023-10-27 14:06:49 +02:00
statconn.go lib/promscrape: do not add a suggestion for enabling TCP6 in error message when the dial address is TCPv4 2023-10-27 14:06:49 +02:00
targetstatus.go lib/promscrape: show dropped targets because of sharding at /service-discovery page 2023-12-04 17:42:46 +02:00
targetstatus.qtpl lib/promscrape: show dropped targets because of sharding at /service-discovery page 2023-12-04 17:42:46 +02:00
targetstatus.qtpl.go lib/promscrape: show dropped targets because of sharding at /service-discovery page 2023-12-04 17:42:46 +02:00