github.com/giantswarm/apiextensions/v2@v2.6.2/pkg/label/monitoring.go (about)

     1  package label
     2  
     3  // Monitoring is a label that can be used on `Service` resources to mark them
     4  // for scraping by Giant Swarm Prometheus instances that monitor the cluster
     5  // they're found in. The service will be scraped only if the value is `true`.
     6  //
     7  // Spec: https://intranet.giantswarm.io/docs/architecture-specs-adrs/specs/configuration-of-targets-in-tc-prometheus/
     8  const Monitoring = "giantswarm.io/monitoring"
     9  
    10  // MonitoringPort is an annotation that tells Prometheus which port a service
    11  // exposes metrics on. It can be used on `Service` resources and will be picked
    12  // up by `simple-service` `ServiceMonitor` to configure Prometheus.
    13  //
    14  // The default is to use the main port exposed in the `Service` resource if
    15  // this annotation isn't used.
    16  //
    17  // Spec: https://intranet.giantswarm.io/docs/architecture-specs-adrs/specs/configuration-of-targets-in-tc-prometheus/
    18  const MonitoringPort = "giantswarm.io/monitoring-port"
    19  
    20  // MonitoringPath is an annotation that tells Prometheus the URL path a service
    21  // exposes metrics on. It can be used on `Service` resources and will be picked
    22  // up by `simple-service` `ServiceMonitor` to configure Prometheus.
    23  //
    24  // The default is to use the path `/metrics`.
    25  //
    26  // Spec: https://intranet.giantswarm.io/docs/architecture-specs-adrs/specs/configuration-of-targets-in-tc-prometheus/
    27  const MonitoringPath = "giantswarm.io/monitoring-path"