code: public static void sendMetric(String metric, int value, long ts, String url, String user, String password) throws IOException {
          try (HttpClientWrapper metrics = new HttpClientWrapper(user, password, 60_000)) {
              sendMetric(metric, value, ts, metrics.getHttpClient(), url);
          }
      }
docs: Send the given value for the given metric and timestamp.
  
  Authentication can be provided via the configured {@link HttpClient} instance.
  
  @param metric The key of the metric
  @param value The value of the measurement
  @param ts The timestamp of the measurement
  @param url The base URL where Elasticsearch is available.
  @param user The username for basic authentication of the HTTP connection, empty if unused
  @param password The password for basic authentication of the HTTP connection, null if unused
  
  @throws IOException If the HTTP call fails with an HTTP status code.