Skip to content

Commit 448643f

Browse files
authored
fix: prometheus metrics have two series for a single monitor when that monitor has tags (#7125)
1 parent 0462b6f commit 448643f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/routers/api-router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ router.all("/api/push/:pushToken", async (request, response) => {
129129
Monitor.sendStats(io, monitor.id, monitor.user_id);
130130

131131
try {
132-
new Prometheus(monitor, []).update(bean, undefined);
132+
new Prometheus(monitor, await monitor.getTags()).update(bean, undefined);
133133
} catch (e) {
134134
log.error("prometheus", "Please submit an issue to our GitHub repo. Prometheus update error: ", e.message);
135135
}

0 commit comments

Comments
 (0)