Skip to content

Commit 67b4184

Browse files
committed
Remove "glidein_master_name" from metrics labels
1 parent b8f015c commit 67b4184

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/decisionengine_modules/glideinwms/transforms/glidein_requests.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
"REQ_IDLE_GLIDEINS": Gauge("de_req_idle_glideins_total", "Requested minimum idle glideins", ["ce"]),
3434
"REQ_MAX_GLIDEINS": Gauge("de_req_max_glideins_total", "Requested max glideins", ["ce"]),
3535
"TOTAL_SLOTS": Gauge(
36-
"de_total_slots", "Total slots available", ["glidein_entry_name", "glidein_master_name", "glidein_site"]
36+
"de_total_slots", "Total slots available", ["glidein_entry_name", "glidein_site"]
3737
),
3838
"TOTAL_SLOT_CPUS": Gauge(
39-
"de_total_slot_cpus", "Total cpu slots available", ["glidein_entry_name", "glidein_master_name", "glidein_site"]
39+
"de_total_slot_cpus", "Total cpu slots available", ["glidein_entry_name", "glidein_site"]
4040
),
4141
"TOTAL_CPUS": Gauge(
42-
"de_total_cpu", "Total CPU available", ["glidein_entry_name", "glidein_master_name", "glidein_site"]
42+
"de_total_cpu", "Total CPU available", ["glidein_entry_name", "glidein_site"]
4343
),
4444
# "MEMORY": Gauge("de_total_memory", "Allocated Memory"),
4545
# "STATE": Gauge("de_state_slot","State of Slot" ),
@@ -142,17 +142,14 @@ def transform(self, datablock):
142142
for row in slots_df_rows:
143143
METRICS["TOTAL_CPUS"].labels(
144144
glidein_entry_name=row.GLIDEIN_Entry_Name,
145-
glidein_master_name=row.GLIDEIN_MASTER_NAME,
146145
glidein_site=row.GLIDEIN_Site,
147146
).set(row.TotalCpus)
148147
METRICS["TOTAL_SLOTS"].labels(
149148
glidein_entry_name=row.GLIDEIN_Entry_Name,
150-
glidein_master_name=row.GLIDEIN_MASTER_NAME,
151149
glidein_site=row.GLIDEIN_Site,
152150
).set(row.TotalSlots)
153151
METRICS["TOTAL_SLOT_CPUS"].labels(
154152
glidein_entry_name=row.GLIDEIN_Entry_Name,
155-
glidein_master_name=row.GLIDEIN_MASTER_NAME,
156153
glidein_site=row.GLIDEIN_Site,
157154
).set(row.TotalSlotCpus)
158155

0 commit comments

Comments
 (0)