8000 Removes registry default value · Syncano/client_python@0b27ded · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b27ded

Browse files
author
Mark Railton
committed
Removes registry default value
References prometheus#39 and prometheus#40
1 parent 787d9a1 commit 0b27ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus_client/exposition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ def write_to_textfile(path, registry):
7979
os.rename(tmppath, path)
8080

8181

82-
def push_to_gateway(gateway, job, registry=core.REGISTRY, grouping_key=None, timeout=None):
82+
def push_to_gateway(gateway, job, registry, grouping_key=None, timeout=None):
8383
'''Push metrics to the given pushgateway.
8484
8585
This overwrites all metrics with the same job and grouping_key.
8686
This uses the PUT HTTP method.'''
8787
_use_gateway('PUT', gateway, job, registry, grouping_key, timeout)
8888

8989

90-
def pushadd_to_gateway(gateway, job, registry=core.REGISTRY, grouping_key=None, timeout=None):
90+
def pushadd_to_gateway(gateway, job, registry, grouping_key=None, timeout=None):
9191
'''PushAdd metrics to the given pushgateway.
9292
9393
This replaces metrics with the same name, job and grouping_key.

0 commit comments

Comments
 (0)
0