Class VespaServices

java.lang.Object
ai.vespa.metricsproxy.service.VespaServices

public class VespaServices extends Object
Creates representations for the Vespa services running on the node, and provides methods for updating and getting them.
Author:
gjoranv
  • Field Details

  • Constructor Details

  • Method Details

    • updateServices

      public final void updateServices(List<VespaService> services)
      Sets 'alive=false' for services that are no longer running. Note that the status is updated in-place for the given services.
    • getVespaServices

      public List<VespaService> getVespaServices()
      Get all known vespa services
      Returns:
      A list of VespaService objects
    • getInstancesById

      public List<VespaService> getInstancesById(String id)
      Parameters:
      id - The configid
      Returns:
      A list with size 1 as there should only be one service with the given configid
    • getMonitoringServices

      public List<VespaService> getMonitoringServices(String service)
      Get services matching pattern for the name used in the monitoring system.
      Parameters:
      service - name in monitoring system + service name, without index, e.g: vespa.container
      Returns:
      A list of VespaServices