diff --git a/README.md b/README.md index 97c56f78..27f51315 100644 --- a/README.md +++ b/README.md @@ -279,7 +279,7 @@ from prometheus_client import CollectorRegistry, Gauge, push_to_gateway registry = CollectorRegistry() g = Gauge('job_last_success_unixtime', 'Last time a batch job successfully finished', registry=registry) g.set_to_current_time() -push_to_gateway('localhost:9091', job='batchA', registry=registry) +push_to_gateway('localhost:9091/metrics', job='batchA', registry=registry) ``` A separate registry is used, as the default registry may contain other metrics