Skip to main content

K8S_SERVICE_SELECTOR

Constant K8S_SERVICE_SELECTOR 

Source
pub const K8S_SERVICE_SELECTOR: &'static str;
Expand description

The selector key-value pair placed on the Service, the key being the selector key, the value being the selector value.

§Notes

These selectors are used to correlate with pod labels. Each selector key-value pair becomes a separate attribute.

Examples:

  • A selector app=my-app SHOULD be recorded as the k8s.service.selector.app attribute with value "my-app".
  • A selector version=v1 SHOULD be recorded as the k8s.service.selector.version attribute with value "v1".

§Examples

  • "my-app"
  • "v1"