Group as tag in Prometheus #5147
Labels
area:metrics
related to monitoring metrics
feature-request
Request for new features to be added
type:enhance-existing
feature wants to enhance existing monitor
📑 I have found these related issues/pull requests
Now with the possibility of grouping monitors, there should be a group tag in the prometheus /metrics endpoint.
I personally have multiple monitors with the same name in different groups (e.g. mysql monitoring in both Docker and the service monitoring itself for quicker identification of the fault).
Also, in another setup, I have docker containers with the same name on multiple hosts. Identifying them with Prometheus alerts is not possible at this time.
🏷️ Feature Request Type
Other
🔖 Feature description
You should add the group name to the labels within the /metrics endpoint.
✔️ Solution
The following is the current layout of an example metric within the /metrics endpoint:
monitor_status{instance="instance", job="uptime-kuma", monitor_hostname="null", monitor_name="example.com", monitor_port="null", monitor_type="http", monitor_url="https://example.com"}
I'd like to be able to parse them by group, too:
monitor_status{instance="instance", job="uptime-kuma", monitor_hostname="null", monitor_name="example.com", monitor_port="null", monitor_type="http", monitor_group="group", monitor_url="https://example.com"}
❓ Alternatives
No response
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: