Add Dashboard ID to metric labels #1368

Open
opened 2026-02-28 02:18:55 -05:00 by deekerman · 0 comments
Owner

Originally created by @bzon on GitHub (Sep 7, 2022).

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

API

🔖 Feature description

We are using the prometheus integration feature to make prometheus alertmanager send the alerts for us. The use case of having the ID as a prometheus label is we can use it to create a hyperlinked text in the alert message. E.g. https://uptime.example.com/dashboard/{{ .label.id }}

Existing label names can be found here https://github.com/louislam/uptime-kuma/wiki/Prometheus-Integration

✔️ Solution

Given I have a dashboard named Google with ID 23, I want to see the monitor_id in the the metric label.

monitor_status{monitor_name="Google",monitor_id="23"}

Alternatives

N/A

📝 Additional Context

N/A

Originally created by @bzon on GitHub (Sep 7, 2022). ### ⚠️ Please verify that this feature request has NOT been suggested before. - [X] I checked and didn't find similar feature request ### 🏷️ Feature Request Type API ### 🔖 Feature description We are using the prometheus integration feature to make prometheus alertmanager send the alerts for us. The use case of having the ID as a prometheus label is we can use it to create a hyperlinked text in the alert message. E.g. `https://uptime.example.com/dashboard/{{ .label.id }}` Existing label names can be found here https://github.com/louislam/uptime-kuma/wiki/Prometheus-Integration ### ✔️ Solution Given I have a dashboard named Google with ID 23, I want to see the `monitor_id` in the the metric label. ``` monitor_status{monitor_name="Google",monitor_id="23"} ``` ### ❓ Alternatives N/A ### 📝 Additional Context N/A
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#1368
No description provided.