diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 81318d3d2..2cc2473de 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -59,7 +59,8 @@ The following tip changes can be tested by building VictoriaMetrics components f * BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): add `__meta_kubernetes_endpoints_name` label for all ports discovered from endpoint. Previously, ports not matched by `Service` did not have this label. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4154) for details. Thanks to @thunderbird86 for discovering and [fixing](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4253) the issue. * BUGFIX: fix indexdb rotation getting in infinite loop when using `retentionTimezoneOffset` and local timezone is not UTC. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4207) for details. Thanks to @faceair for the fix. * BUGFIX: max value for `memory.allowedPercent` changed from 200 to 100. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4171). -* BUGFIX: [alerts-health](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/deployment/docker/alerts-health.yml): update threshold for TooHighMemoryUsage from 90% to 80%. +* BUGFIX: [alerts-health](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/deployment/docker/alerts-health.yml): update threshold for TooHighMemoryUsage from 90% to 80%. +* BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): fixed `vm_promscrape_config_last_reload_successful` metric value recovery after successful reloading with unchanged content. For details see [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4260). ## [v1.90.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.90.0) diff --git a/lib/promscrape/scraper.go b/lib/promscrape/scraper.go index 0248fec8d..5c4c97502 100644 --- a/lib/promscrape/scraper.go +++ b/lib/promscrape/scraper.go @@ -163,6 +163,7 @@ func runScraper(configFile string, pushData func(at *auth.Token, wr *prompbmarsh goto waitForChans } if bytes.Equal(data, dataNew) { + configSuccess.Set(1) logger.Infof("nothing changed in %q", configFile) goto waitForChans } @@ -180,6 +181,7 @@ func runScraper(configFile string, pushData func(at *auth.Token, wr *prompbmarsh goto waitForChans } if bytes.Equal(data, dataNew) { + configSuccess.Set(1) // Nothing changed since the previous loadConfig goto waitForChans }