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

pull/7105/head^2
Nic Jansma 1 month ago committed by GitHub
parent 0462b6f87b
commit 448643fcf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save