Skip to content

Commit 01052e0

Browse files
authored
Specify registry used to push (#5304)
This is a simple fix to add a missing parameter. More work may need to be done if the way we are using multiprocess mode is incorrect.
1 parent 5bef9b4 commit 01052e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

koku/koku/metrics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def collect_metrics(self):
130130
db_status.collect()
131131
LOG.debug("Pushing stats to gateway: %s", settings.PROMETHEUS_PUSHGATEWAY)
132132
try:
133-
push_to_gateway(settings.PROMETHEUS_PUSHGATEWAY, job="koku.metrics.collect_metrics")
133+
push_to_gateway(gateway=settings.PROMETHEUS_PUSHGATEWAY, job="koku.metrics.collect_metrics", registry=REGISTRY)
134134
except OSError as exc:
135135
LOG.error("Problem reaching pushgateway: %s", exc)
136136
self.update_state(state="FAILURE", meta={"result": str(exc), "traceback": str(exc.__traceback__)})

0 commit comments

Comments
 (0)