Package ai.vespa.metricsproxy.core
Class VespaMetrics
java.lang.Object
ai.vespa.metricsproxy.core.VespaMetrics
- Author:
- gjoranv
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DimensionIdstatic final DimensionIdstatic final ConsumerId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHealthMetrics(List<VespaService> services) getMetricNames(List<VespaService> services, ConsumerId consumer) Get all metric names for the given servicesgetMetrics(List<VespaService> services, ConsumerId consumerId) getMetricsAsString(List<VespaService> services) Returns a string representation of metrics for the given services; a space separated list of key=value.
-
Field Details
-
vespaMetricsConsumerId
-
METRIC_TYPE_DIMENSION_ID
-
INSTANCE_DIMENSION_ID
-
-
Constructor Details
-
VespaMetrics
-
-
Method Details
-
getHealthMetrics
-
getMetrics
- Parameters:
services- the services to get metrics for- Returns:
- a list of metrics packet builders (to allow modification by the caller)
-
getMetricsAsString
Returns a string representation of metrics for the given services; a space separated list of key=value. -
getMetricNames
Get all metric names for the given services- Returns:
- String representation
-