@Test public void testPushWithEmptyLabelGroupingKey() throws IOException { mockServerClient.when( request() .withMethod("PUT") .withPath("/metrics/job/j/l/v/l2@base64/=") ).respond(response().withStatusCode(202)); groupingKey.put("l2", ""); pg.push(registry, "j", groupingKey); }
public void push(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "PUT"); }
PushGateway { public void push(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "PUT"); } }
PushGateway { public void push(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "PUT"); } PushGateway(String address);  PushGateway(URL serverBaseURL); }
PushGateway { public void push(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "PUT"); } 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 void push(CollectorRegistry registry, String job) throws IOException { doRequest(registry, job, null, "PUT"); } 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();  }