net.thisptr.java.prometheus.metrics.agent.jackson.JmxModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-prometheus-metrics-agent Show documentation
Show all versions of java-prometheus-metrics-agent Show documentation
Java agent for collecting and reporting metrics to Prometheus
package net.thisptr.java.prometheus.metrics.agent.jackson;
import com.fasterxml.jackson.databind.module.SimpleModule;
import net.thisptr.java.prometheus.metrics.agent.jackson.serdes.CompositeDataSerializer;
import net.thisptr.java.prometheus.metrics.agent.jackson.serdes.ObjectNameSerializer;
import net.thisptr.java.prometheus.metrics.agent.jackson.serdes.TabularDataSerializer;
public class JmxModule extends SimpleModule {
private static final long serialVersionUID = 8672321899402795168L;
public JmxModule() {
addSerializer(new CompositeDataSerializer());
addSerializer(new TabularDataSerializer());
addSerializer(new ObjectNameSerializer());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy