Example config: Add labels to static_configs (#13327)

Signed-off-by: 김가윤 <60080153+KaYunKIM@users.noreply.github.com>
Co-authored-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
김가윤 2025-02-20 00:24:30 +09:00 committed by GitHub
parent e04913aea2
commit 86bb04783c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,3 +27,6 @@ scrape_configs:
static_configs: static_configs:
- targets: ["localhost:9090"] - targets: ["localhost:9090"]
# The label name is added as a label `label_name=<label_value>` to any timeseries scraped from this config.
labels:
app: "prometheus"