public class PrometheusDynamicEndpointService extends DynamicEndpointService
DynamicEndpointService.getMetrics() returns an empty collection, that means this
service will collect every metric that is scraped from the Prometheus endpoints. If it is not empty,
only those metrics named in that collection will be stored and all others will be ignored.EndpointServicestatus| Constructor and Description |
|---|
PrometheusDynamicEndpointService(String feedId,
MonitoredEndpoint<MonitorServiceConfiguration.DynamicEndpointConfiguration> endpoint,
HawkularWildFlyAgentContext hawkularStorage,
Collection<MetricMetadata> metrics) |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
This is called when the dynamic protocol service is due to perform its work.
|
equals, getFeedId, getHawkularStorage, getMetrics, getMonitoredEndpoint, hashCode, start, stop, toStringpublic PrometheusDynamicEndpointService(String feedId, MonitoredEndpoint<MonitorServiceConfiguration.DynamicEndpointConfiguration> endpoint, HawkularWildFlyAgentContext hawkularStorage, Collection<MetricMetadata> metrics)
public void run()
DynamicEndpointServicerun in interface Runnablerun in class DynamicEndpointServiceCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.