mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-13 09:52:49 +08: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