1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-04 14:41:45 +00:00

docs: improve extra-labels description (#1208)

* docs: improve `extra-labels` description

* Update README.md

* Update README.md

---------

Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
Salim B
2025-08-18 20:18:57 +02:00
committed by GitHub
parent 2c42aa8087
commit 6d579a4b48

View File

@@ -1991,7 +1991,7 @@ See [examples/docker-compose-grafana-prometheus](.examples/docker-compose-grafan
#### Custom Labels
Added a Labels field to the Config and Endpoint structs to support key-value pairs for metrics. Updated the Prometheus metrics initialization to include dynamic labels from the configuration. See the example below:
You can add custom labels to your endpoints Prometheus metrics by defining keyvalue pairs under the `extra-labels` field. For example:
```yaml
endpoints: