Class IipEcospherePrometheusExporter.MyPrometheusMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.prometheus.PrometheusMeterRegistry
de.iip_ecosphere.platform.monitoring.prometheus.IipEcospherePrometheusExporter.MyPrometheusMeterRegistry
- Enclosing class:
IipEcospherePrometheusExporter
private static class IipEcospherePrometheusExporter.MyPrometheusMeterRegistry
extends io.micrometer.prometheus.PrometheusMeterRegistry
Exhibits creating a custom meter.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.MeterRegistry.Config, io.micrometer.core.instrument.MeterRegistry.More -
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.core.instrument.MetercreateMeter(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Meter.Type type, Iterable<io.micrometer.core.instrument.Measurement> measurements) Build a new custom meter to be added to the registry.Methods inherited from class io.micrometer.prometheus.PrometheusMeterRegistry
defaultHistogramConfig, getBaseTimeUnit, getPrometheusRegistry, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, newTimer, scrape, scrape, scrape, scrape, scrape, scrape, throwExceptionOnRegistrationFailureMethods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, close, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newLongTaskTimer, newTimeGauge, remove, remove, removeByPreFilterId, summary, summary, timer, timer
-
Constructor Details
-
MyPrometheusMeterRegistry
MyPrometheusMeterRegistry()Creates a default registry.
-
-
Method Details
-
createMeter
protected io.micrometer.core.instrument.Meter createMeter(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Meter.Type type, Iterable<io.micrometer.core.instrument.Measurement> measurements) Build a new custom meter to be added to the registry.- Parameters:
id- The id that uniquely identifies the custom meter.type- What kind of meter this is.measurements- A set of measurements describing how to sample this meter.- Returns:
- A new custom meter.
-