Package ai.vespa.metricsproxy.core
Class MetricsManager
java.lang.Object
ai.vespa.metricsproxy.core.MetricsManager
Retrieves metrics and performs necessary conversions and additions of metadata.
- Author:
- gjoranv
-
Constructor Summary
ConstructorsConstructorDescriptionMetricsManager(VespaServices vespaServices, VespaMetrics vespaMetrics, ExternalMetrics externalMetrics, ApplicationDimensions applicationDimensions, NodeDimensions nodeDimensions) -
Method Summary
Modifier and TypeMethodDescriptionReturns a space separated list of all distinct service names.getHealthMetrics(List<VespaService> services) Returns the health metrics for the given services.getMetricNamesForServiceAndConsumer(String service, ConsumerId consumer) Returns all metrics for the given service that are whitelisted for the given consumer.getMetrics(List<VespaService> services, Instant startTime) Returns the metrics for the given services.getMetrics(List<VespaService> services, Instant startTime, ConsumerId consumerId) getMetricsAsBuilders(List<VespaService> services, Instant startTime, ConsumerId consumerId) Returns the metrics for the given services, in mutable state for further processing.getMetricsByConfigId(String configId) voidvoidsetExtraMetrics(List<MetricsPacket.Builder> packets)
-
Constructor Details
-
MetricsManager
public MetricsManager(VespaServices vespaServices, VespaMetrics vespaMetrics, ExternalMetrics externalMetrics, ApplicationDimensions applicationDimensions, NodeDimensions nodeDimensions)
-
-
Method Details
-
getMetricNamesForServiceAndConsumer
Returns all metrics for the given service that are whitelisted for the given consumer. -
getMetricsByConfigId
-
getMetrics
Returns the metrics for the given services. The empty list is returned if no services are given.- Parameters:
services- the services to retrieve metrics for- Returns:
- metrics for all matching services
-
getMetrics
public List<MetricsPacket> getMetrics(List<VespaService> services, Instant startTime, ConsumerId consumerId) -
getMetricsAsBuilders
public List<MetricsPacket.Builder> getMetricsAsBuilders(List<VespaService> services, Instant startTime, ConsumerId consumerId) Returns the metrics for the given services, in mutable state for further processing. NOTE: UsegetMetrics(List, Instant)instead, unless further processing of the metrics is necessary. -
getHealthMetrics
Returns the health metrics for the given services. The empty list is returned if no services are given.- Parameters:
services- The services to retrieve health metrics for.- Returns:
- Health metrics for all matching services.
-
setExtraMetrics
-
getExtraDimensions
-
purgeExtraMetrics
public void purgeExtraMetrics() -
getAllVespaServices
Returns a space separated list of all distinct service names.
-