Package ai.vespa.metricsproxy.metric
Class ExternalMetrics
java.lang.Object
ai.vespa.metricsproxy.metric.ExternalMetrics
Handling of metrics received from external processes.
- Author:
- gjoranv
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DimensionIdstatic final DimensionIdstatic final ServiceId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<DimensionId,String> Extracts the node repository dimensions (role, state etc.) from the given packets.voidsetExtraMetrics(List<MetricsPacket.Builder> externalPackets)
-
Field Details
-
VESPA_NODE_SERVICE_ID
-
ROLE_DIMENSION
-
STATE_DIMENSION
-
-
Constructor Details
-
ExternalMetrics
-
-
Method Details
-
getMetrics
-
setExtraMetrics
-
extractConfigserverDimensions
public static Map<DimensionId,String> extractConfigserverDimensions(Collection<MetricsPacket.Builder> packets) Extracts the node repository dimensions (role, state etc.) from the given packets. If the same dimension exists in multiple packets, this implementation gives no guarantees about which value is returned.
-