{{ message }}
Commit 6ddc8ad
committed
Add convenience function for setting instance to the IP.
The new pushgateway url doesn't support setting the instance to the client IP,
so for those who were doing:
pg.push(registry, "job", "");
they can now do:
pg.push(registry, "job", PushGateway.instanceIPGroupingKey());
instead in many cases.1 parent b9a546c commit 6ddc8ad
3 files changed
Lines changed: 22 additions & 1 deletion
File tree
- simpleclient_pushgateway/src
- main/java/io/prometheus/client/exporter
- test/java/io/prometheus/client/exporter
Lines changed: 14 additions & 0 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 7 additions & 0 deletions

0 commit comments