io.prometheus.client.exporter.DefaultHttpConnectionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleclient_pushgateway Show documentation
Show all versions of simpleclient_pushgateway Show documentation
Pushgateway exporter for the simpleclient.
package io.prometheus.client.exporter;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
public class DefaultHttpConnectionFactory implements HttpConnectionFactory {
@Override
public HttpURLConnection create(String url) throws IOException {
return (HttpURLConnection) new URL(url).openConnection();
}
}