From f40661e7b73a94d62d70118a7bc403cb5816536d Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 9 Feb 2023 09:12:23 -0800 Subject: [PATCH] docs/vmagent.md: clarify that automatically generated metrics contain all the target-specific labels, including `instance` and `job` --- app/vmagent/README.md | 2 +- docs/vmagent.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmagent/README.md b/app/vmagent/README.md index 9349f7c286..0b63b1146a 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -324,7 +324,7 @@ Extra labels can be added to metrics collected by `vmagent` via the following me ## Automatically generated metrics `vmagent` automatically generates the following metrics per each scrape of every [Prometheus-compatible target](#how-to-collect-metrics-in-prometheus-format) -and attaches target-specific `instance` and `job` labels to these metrics: +and attaches `instance`, `job` and other target-specific labels to these metrics: * `up` - this metric exposes `1` value on successful scrape and `0` value on unsuccessful scrape. This allows monitoring failing scrapes with the following [MetricsQL query](https://docs.victoriametrics.com/MetricsQL.html): diff --git a/docs/vmagent.md b/docs/vmagent.md index 115907a05b..e5fb8ca7cf 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -328,7 +328,7 @@ Extra labels can be added to metrics collected by `vmagent` via the following me ## Automatically generated metrics `vmagent` automatically generates the following metrics per each scrape of every [Prometheus-compatible target](#how-to-collect-metrics-in-prometheus-format) -and attaches target-specific `instance` and `job` labels to these metrics: +and attaches `instance`, `job` and other target-specific labels to these metrics: * `up` - this metric exposes `1` value on successful scrape and `0` value on unsuccessful scrape. This allows monitoring failing scrapes with the following [MetricsQL query](https://docs.victoriametrics.com/MetricsQL.html):