Skip to content

Commit

Permalink
[feat] Use push gateway to push metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Nov 17, 2023
1 parent 80deeb6 commit 4dc109c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collect_coordinator/worker_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def parse_collect_definition_json(self, js: Json) -> JobDefinition:
self.redis_event_url,
"--ca-cert",
"/etc/ssl/certs/ca.crt",
"--push-gateway-url",
"http://pushgateway-prometheus-pushgateway.monitoring.svc.cluster.local:9091",
]
core_args = [
"--graphdb-bootstrap-do-not-secure", # root password comes via the environment
Expand Down
2 changes: 2 additions & 0 deletions tests/worker_queue_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def test_read_job_definition(worker_queue: WorkerQueue, example_definition: Json
"redis://localhost:6379/0",
"--ca-cert",
"/etc/ssl/certs/ca.crt",
"--push-gateway-url",
"http://pushgateway-prometheus-pushgateway.monitoring.svc.cluster.local:9091",
"--write",
".aws/credentials=AWS_CREDENTIALS",
"--account-id",
Expand Down

0 comments on commit 4dc109c

Please sign in to comment.