Package ai.vespa.metricsproxy.service
Class VespaServices
java.lang.Object
ai.vespa.metricsproxy.service.VespaServices
Creates representations for the Vespa services running on the node,
and provides methods for updating and getting them.
- Author:
- gjoranv
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVespaServices(VespaServicesConfig config, MonitoringConfig monitoringConfig, ConfigSentinelClient sentinel) VespaServices(List<VespaService> services) -
Method Summary
Modifier and TypeMethodDescriptiongetMonitoringServices(String service) Get services matching pattern for the name used in the monitoring system.Get all known vespa servicesfinal voidupdateServices(List<VespaService> services) Sets 'alive=false' for services that are no longer running.
-
Field Details
-
ALL_SERVICES
- See Also:
-
-
Constructor Details
-
VespaServices
@Inject public VespaServices(VespaServicesConfig config, MonitoringConfig monitoringConfig, ConfigSentinelClient sentinel) -
VespaServices
-
-
Method Details
-
updateServices
Sets 'alive=false' for services that are no longer running. Note that the status is updated in-place for the given services. -
getVespaServices
Get all known vespa services- Returns:
- A list of VespaService objects
-
getInstancesById
- Parameters:
id- The configid- Returns:
- A list with size 1 as there should only be one service with the given configid
-
getMonitoringServices
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
-