Class OpenTelemetryCollector

All Implemented Interfaces:
com.yahoo.cloud.config.OpenTelemetryConfig.Producer, com.yahoo.config.ConfigInstance.Producer, ConfigProducer, NetworkPortRequestor, Service, Serializable

public class OpenTelemetryCollector extends AbstractService implements com.yahoo.cloud.config.OpenTelemetryConfig.Producer
See Also:
  • Constructor Details

  • Method Details

    • getStartupCommand

      public Optional<String> getStartupCommand()
      Description copied from class: AbstractService
      Must be overridden by services that should be started by config-sentinel. The returned value will be used in config-sentinel configuration. Returns empty by default.
      Specified by:
      getStartupCommand in interface Service
      Overrides:
      getStartupCommand in class AbstractService
      Returns:
      the startup command for the otelcol wrapper
    • allocatePorts

      public void allocatePorts(int start, PortAllocBridge from)
      Description copied from interface: NetworkPortRequestor
      allocate the ports you need
      Specified by:
      allocatePorts in interface NetworkPortRequestor
    • getPortCount

      public int getPortCount()
      Description copied from interface: NetworkPortRequestor
      Returns the number of ports needed by this service. User-defined ports for container http servers should not be counted, as those ports are required to be outside Vespa's port range.
      Specified by:
      getPortCount in interface NetworkPortRequestor
    • getConfig

      public void getConfig(com.yahoo.cloud.config.OpenTelemetryConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.cloud.config.OpenTelemetryConfig.Producer