mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-16 01:11:11 +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:
@@ -1991,7 +1991,7 @@ See [examples/docker-compose-grafana-prometheus](.examples/docker-compose-grafan
|
|||||||
|
|
||||||
#### Custom Labels
|
#### 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 key–value pairs under the `extra-labels` field. For example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
endpoints:
|
endpoints:
|
||||||
|
|||||||
Reference in New Issue
Block a user