@cryptotaxi247 / netdata-1 / commits / 5fefd6632

docs: task class: improve_docs add a troubleshooting entry to the prometheus (#22525)

* docs: update docs/prometheus-scraper-sparse-metrics-alert-clearing * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: nedi-app[bot] <nedi-app[bot]@users.noreply.github.com> Co-authored-by: Fotis Voutsas <fotis@netdata.cloud> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

nedi-app[bot] committed May 22, 2026 at 06:54 UTC 5fefd6632b949b4c4fb94e43917f91483eb20833
1 file changed +4 -1
src/go/plugin/go.d/collector/prometheus/metadata.yaml
+4 -1
@@ -278,7 +278,10 @@ modules:
278 url: http://192.0.2.1:9090/metrics
279 troubleshooting:
280 problems:
281 - list: [ ]
281 + list:
282 + - name: "Disappearing or sparse metrics not clearing alerts"
283 + description: |
284 + When a metric disappears from the Prometheus endpoint response (for example, a gauge that is only exposed when its value is greater than 0), Netdata does not require any special value to stop tracking it. The Prometheus collector automatically detects metrics that are no longer present in the scrape response. After 10 consecutive collection cycles where the metric is absent, the associated chart is automatically removed and any alerts on that chart will clear. You do not need to send a special value (such as 0, NaN, or StaleNaN) — simply omitting the metric from the response is sufficient. Note that during the 10-cycle grace period, the last known value remains and alerts may not clear immediately.
285 alerts: [ ]
286 metrics:
287 folding: