Class KafkaStreamsMetricsCollector
- java.lang.Object
-
- io.prometheus.client.Collector
-
- io.streamthoughts.azkarra.http.prometheus.KafkaStreamsMetricsCollector
-
public class KafkaStreamsMetricsCollector extends io.prometheus.client.Collector
SimpleCollector
implementation for collecting metrics fromKafkaStreams
instance.
-
-
Constructor Summary
Constructors Constructor Description KafkaStreamsMetricsCollector(AzkarraStreamsService service, Predicate<Tuple<String,Metric>> filter, String... applications)
Creates a newKafkaStreamsMetricsCollector
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<io.prometheus.client.Collector.MetricFamilySamples>
collect()
-
-
-
Constructor Detail
-
KafkaStreamsMetricsCollector
public KafkaStreamsMetricsCollector(AzkarraStreamsService service, Predicate<Tuple<String,Metric>> filter, String... applications)
Creates a newKafkaStreamsMetricsCollector
instance.- Parameters:
service
- theAzkarraStreamsService
instance.
-
-
Method Detail
-
collect
public List<io.prometheus.client.Collector.MetricFamilySamples> collect()
- Specified by:
collect
in classio.prometheus.client.Collector
-
-