Merge pull request #78 from prometheus/pushgateway · feheraron/client_java@8f77b45 · GitHub
Skip to content

Commit 8f77b45

Browse files
committed
Merge pull request prometheus#78 from prometheus/pushgateway
Add convenience function for setting instance to the IP.
2 parents b9a546c + 6ddc8ad commit 8f77b45

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

simpleclient_pushgateway/src/main/java/io/prometheus/client/exporter/PushGateway.java

Lines changed: 14 additions & 0 deletions

simpleclient_pushgateway/src/test/java/io/prometheus/client/exporter/ExamplePushGateway.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ExamplePushGateway {
1414
public static void main(String[] args) throws Exception {
1515
PushGateway pg = new PushGateway(args[0]);
1616
g.set(42);
17-
pg.push(pushRegistry, "job", "instance");
17+
pg.push(pushRegistry, "job");
1818
}
1919
}
2020

simpleclient_pushgateway/src/test/java/io/prometheus/client/exporter/PushGatewayTest.java

Lines changed: 7 additions & 0 deletions

0 commit comments

Comments
 (0)