Skip to content

Commit

Permalink
adding labels gloabally
Browse files Browse the repository at this point in the history
  • Loading branch information
ausias-armesto committed Sep 13, 2024
1 parent 1dcb2c6 commit 73900b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function pushMetrics(settings: Settings) {
return function () {
const gateway = new prom.Pushgateway(settings.pushGateway);
gateway
.push({ jobName: settings.metricLabels.instance })
.push({ jobName: settings.metricLabels.instance, groupings: settings.metricLabels })
.then(() => {
log.info('Latency Monitor[%s] Metrics pushed correctly', Version);
})
Expand Down

0 comments on commit 73900b3

Please sign in to comment.