Class VespaMetrics

java.lang.Object
ai.vespa.metricsproxy.core.VespaMetrics

public class VespaMetrics extends Object
Author:
gjoranv
  • Field Details

    • vespaMetricsConsumerId

      public static final ConsumerId vespaMetricsConsumerId
    • METRIC_TYPE_DIMENSION_ID

      public static final DimensionId METRIC_TYPE_DIMENSION_ID
    • INSTANCE_DIMENSION_ID

      public static final DimensionId INSTANCE_DIMENSION_ID
  • Constructor Details

  • Method Details

    • getHealthMetrics

      public List<MetricsPacket> getHealthMetrics(List<VespaService> services)
    • getMetrics

      public List<MetricsPacket.Builder> getMetrics(List<VespaService> services, ConsumerId consumerId)
      Parameters:
      services - the services to get metrics for
      Returns:
      a list of metrics packet builders (to allow modification by the caller)
    • getMetricsAsString

      public String getMetricsAsString(List<VespaService> services)
      Returns a string representation of metrics for the given services; a space separated list of key=value.
    • getMetricNames

      public String getMetricNames(List<VespaService> services, ConsumerId consumer)
      Get all metric names for the given services
      Returns:
      String representation