mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
fix: prometheus metrics have two series for a single monitor when that monitor has tags (#7125)
This commit is contained in:
@@ -129,7 +129,7 @@ router.all("/api/push/:pushToken", async (request, response) => {
|
||||
Monitor.sendStats(io, monitor.id, monitor.user_id);
|
||||
|
||||
try {
|
||||
new Prometheus(monitor, []).update(bean, undefined);
|
||||
new Prometheus(monitor, await monitor.getTags()).update(bean, undefined);
|
||||
} catch (e) {
|
||||
log.error("prometheus", "Please submit an issue to our GitHub repo. Prometheus update error: ", e.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user