Skip to content

Commit

Permalink
fix glidein resource name logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alemsh committed Feb 14, 2024
1 parent 2b46a9e commit ece398b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions condor_history_to_prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ def compose_ad_metrics(ad, metrics):
labels['IceProdTaskName'] = ad['IceProdTaskName']
except:
pass

if 'MATCH_EXP_JOBGLIDEIN_ResourceName' in ad['MATCH_EXP_JOBGLIDEIN_ResourceName']:
labels['MATCH_EXP_JOBGLIDEIN_ResourceName'] = ad['MATCH_EXP_JOBGLIDEIN_ResourceName']

labels['MATCH_EXP_JOBGLIDEIN_ResourceName'] = ad['MATCH_EXP_JOBGLIDEIN_ResourceName']

metrics.condor_job_count.labels(**labels).inc()
metrics.condor_job_walltime_hours.labels(**labels).inc(ad['walltimehrs'])
Expand Down

0 comments on commit ece398b

Please sign in to comment.