Skip to content

Commit

Permalink
apply formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Karl W Schulz <[email protected]>
koomie committed Jul 26, 2024
1 parent f593c9c commit dcc2d83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions omnistat/collector_rms.py
Original file line number Diff line number Diff line change
@@ -147,7 +147,7 @@ def registerMetrics(self):

# alternate approach - define an info metric
# (https://ypereirareis.github.io/blog/2020/02/21/how-to-join-prometheus-metrics-by-label-with-promql/)
labels = ["jobid", "user", "partition", "nodes", "batchflag", "jobstep","type"]
labels = ["jobid", "user", "partition", "nodes", "batchflag", "jobstep", "type"]
self.__RMSMetrics["info"] = Gauge(self.__prefix + "info", "RMS job details", labels)

# metric to support user annotations
@@ -215,6 +215,8 @@ def updateMetrics(self):

# Case when no job detected
else:
self.__RMSMetrics["info"].labels(jobid="", user="", partition="", nodes="", batchflag="", jobstep="", type="").set(1)
self.__RMSMetrics["info"].labels(
jobid="", user="", partition="", nodes="", batchflag="", jobstep="", type=""
).set(1)

return

0 comments on commit dcc2d83

Please sign in to comment.