@Test public void testInstanceIPGroupingKey() throws IOException { groupingKey = PushGateway.instanceIPGroupingKey(); Assert.assertTrue(!groupingKey.get("instance").equals("")); }
public static Map<String, String> instanceIPGroupingKey() throws UnknownHostException { Map<String, String> groupingKey = new HashMap<String, String>(); groupingKey.put("instance", InetAddress.getLocalHost().getHostAddress()); return groupingKey; }
PushGateway { public static Map<String, String> instanceIPGroupingKey() throws UnknownHostException { Map<String, String> groupingKey = new HashMap<String, String>(); groupingKey.put("instance", InetAddress.getLocalHost().getHostAddress()); return groupingKey; } }
PushGateway { public static Map<String, String> instanceIPGroupingKey() throws UnknownHostException { Map<String, String> groupingKey = new HashMap<String, String>(); groupingKey.put("instance", InetAddress.getLocalHost().getHostAddress()); return groupingKey; } PushGateway(String address);  PushGateway(URL serverBaseURL); }
PushGateway { public static Map<String, String> instanceIPGroupingKey() throws UnknownHostException { Map<String, String> groupingKey = new HashMap<String, String>(); groupingKey.put("instance", InetAddress.getLocalHost().getHostAddress()); return groupingKey; } PushGateway(String address);  PushGateway(URL serverBaseURL); void setConnectionFactory(HttpConnectionFactory connectionFactory); void push(CollectorRegistry registry, String job); void push(Collector collector, String job); void push(CollectorRegistry registry, String job, Map<String, String> groupingKey); void push(Collector collector, String job, Map<String, String> groupingKey); void pushAdd(CollectorRegistry registry, String job); void pushAdd(Collector collector, String job); void pushAdd(CollectorRegistry registry, String job, Map<String, String> groupingKey); void pushAdd(Collector collector, String job, Map<String, String> groupingKey); void delete(String job); void delete(String job, Map<String, String> groupingKey); @Deprecated void push(CollectorRegistry registry, String job, String instance); @Deprecated void push(Collector collector, String job, String instance); @Deprecated void pushAdd(CollectorRegistry registry, String job, String instance); @Deprecated void pushAdd(Collector collector, String job, String instance); @Deprecated void delete(String job, String instance); static Map<String, String> instanceIPGroupingKey(); }
PushGateway { public static Map<String, String> instanceIPGroupingKey() throws UnknownHostException { Map<String, String> groupingKey = new HashMap<String, String>(); groupingKey.put("instance", InetAddress.getLocalHost().getHostAddress()); return groupingKey; } PushGateway(String address);  PushGateway(URL serverBaseURL); void setConnectionFactory(HttpConnectionFactory connectionFactory); void push(CollectorRegistry registry, String job); void push(Collector collector, String job); void push(CollectorRegistry registry, String job, Map<String, String> groupingKey); void push(Collector collector, String job, Map<String, String> groupingKey); void pushAdd(CollectorRegistry registry, String job); void pushAdd(Collector collector, String job); void pushAdd(CollectorRegistry registry, String job, Map<String, String> groupingKey); void pushAdd(Collector collector, String job, Map<String, String> groupingKey); void delete(String job); void delete(String job, Map<String, String> groupingKey); @Deprecated void push(CollectorRegistry registry, String job, String instance); @Deprecated void push(Collector collector, String job, String instance); @Deprecated void pushAdd(CollectorRegistry registry, String job, String instance); @Deprecated void pushAdd(Collector collector, String job, String instance); @Deprecated void delete(String job, String instance); static Map<String, String> instanceIPGroupingKey();  }