fix: prometheus metrics have two series for a single monitor when that monitor has tags (#7125)

This commit is contained in:
Nic Jansma
2026-03-10 12:29:35 -04:00
committed by GitHub
parent 0462b6f87b
commit 448643fcf0

View File

@@ -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);
}