Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
manustars authored Oct 7, 2024
1 parent b077928 commit fa55efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const deviceSpeed = new Gauge({
const rigStatusTime = new Gauge({
name: prefix + 'rig_status_time',
help: 'rigStatusTime',
labelNames: ['rig_name', 'rig_id', 'rig_status', 'IP'],
labelNames: ['rig_name', 'rig_id', 'rig_status'],
});
const rigJoinTime = new Gauge({
name: prefix + 'rig_join_time',
Expand Down Expand Up @@ -190,7 +190,7 @@ async function refreshMetrics() {
}
});
} else {
rigStatusTime.labels(rig.name, rig.rigId, rig.status, ipAddress).set(rig.statusTime);
rigStatusTime.labels(rig.name, rig.rigId, rig.status).set(rig.statusTime);
try {
rigJoinTime.labels(rig.name, rig.rigId).set(rig.joinTime);
} catch (e) {
Expand Down

0 comments on commit fa55efd

Please sign in to comment.