Skip to content

Commit

Permalink
Make Prometheus Exporter work with pyhton3
Browse files Browse the repository at this point in the history
  • Loading branch information
gmueller2000privat authored and sduehr committed Jan 23, 2024
1 parent fba2695 commit e79d40b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ def push_job_information(self):
TIME_BUCKETS=(6, 60, 600, 1800, 3600, 10800, 18000, 28800, 86400)

bareos_job_status = Enum('bareos_job_status', 'Backup Status',
states=self.job_status.values(),
states=list(self.job_status.values()),
labelnames=['instance', 'jobid'], registry=registry)
# see https://github.com/bareos/bareos/blob/master/core/src/include/job_level.h
bareos_job_level = Enum('bareos_job_level', 'Backup Level',
states=self.job_levels.values(),
states=list(self.job_levels.values()),
labelnames=['instance', 'jobid'], registry=registry)
bareos_job_running_time = Histogram('bareos_job_running_time', 'Job running time',
labelnames=['instance', 'jobid'], registry=registry,
Expand All @@ -172,7 +172,7 @@ def push_job_information(self):
registry=registry, labelnames=['instance', 'jobid'])
# see https://github.com/bareos/bareos/blob/master/core/src/include/job_types.h
bareos_job_type = Enum('bareos_job_type', 'Job Type',
states=self.job_types.values(),
states=list(self.job_types.values()),
registry=registry, labelnames=['instance', 'jobid'])
bareos_job_client = Info('bareos_job_client', 'Client',
registry=registry, labelnames=['instance', 'jobid'])
Expand Down

0 comments on commit e79d40b

Please sign in to comment.