Package io.prometheus.jmx
Class JmxCollector
java.lang.Object
io.prometheus.client.Collector
io.prometheus.jmx.JmxCollector
- All Implemented Interfaces:
io.prometheus.client.Collector.Describable
public class JmxCollector
extends io.prometheus.client.Collector
implements io.prometheus.client.Collector.Describable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.prometheus.client.Collector
io.prometheus.client.Collector.Describable, io.prometheus.client.Collector.MetricFamilySamples, io.prometheus.client.Collector.Type -
Field Summary
Fields inherited from class io.prometheus.client.Collector
MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND -
Constructor Summary
ConstructorsConstructorDescriptionJmxCollector(File in) JmxCollector(File in, JmxCollector.Mode mode) JmxCollector(InputStream inputStream) JmxCollector(String yamlConfig) -
Method Summary
Methods inherited from class io.prometheus.client.Collector
checkMetricLabelName, checkMetricName, collect, doubleToGoString, register, register, sanitizeMetricName
-
Constructor Details
-
JmxCollector
-
JmxCollector
public JmxCollector(File in, JmxCollector.Mode mode) throws IOException, MalformedObjectNameException -
JmxCollector
- Throws:
MalformedObjectNameException
-
JmxCollector
- Throws:
MalformedObjectNameException
-
-
Method Details
-
collect
- Specified by:
collectin classio.prometheus.client.Collector
-
describe
- Specified by:
describein interfaceio.prometheus.client.Collector.Describable
-
main
Convenience function to run standalone.- Throws:
Exception
-