su.nlq.prometheus.jmx.connection.remote.jmxmp.JMXMPConnectionConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmx-prometheus-collector Show documentation
Show all versions of jmx-prometheus-collector Show documentation
Pipe for JMX MBeans to Prometheus
package su.nlq.prometheus.jmx.connection.remote.jmxmp;
import org.jetbrains.annotations.NotNull;
import su.nlq.prometheus.jmx.connection.remote.Connector;
import su.nlq.prometheus.jmx.connection.remote.RemoteConnectionConfiguration;
import javax.xml.bind.annotation.XmlType;
import java.util.Optional;
@XmlType(name = "jmxmp-connection")
public final class JMXMPConnectionConfiguration extends RemoteConnectionConfiguration {
@Override
protected @NotNull Connector connector(@NotNull String address, @NotNull Optional credentials) {
return new JMXMPConnector(address, credentials);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy