PrometheusAgent.spec.initContainers[].livenessProbe.httpGet.port.spec.scrapeClasses.relabelings
relabelings defines the relabeling rules to apply to all scrape targets. The Operator automatically adds relabelings for a few standard Kubernetes fields like `__meta_kubernetes_namespace` and `__meta_kubernetes_service_name`. Then the Operator adds the scrape class relabelings defined here. Then the Operator adds the target-specific relabelings defined in the scrape object. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
| Field / Type | Description |
|---|---|
action | action to perform based on the regex matching. `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. Default: "Replace"
|
modulus | modulus to take of the hash of the source label values. Only applicable when the action is `HashMod`.
|
regex | regex defines the regular expression against which the extracted value is matched. |
replacement | replacement value against which a Replace action is performed if the regular expression matches. Regex capture groups are available. |
separator | separator defines the string between concatenated SourceLabels. |
sourceLabels defines the source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression. | |
targetLabel | targetLabel defines the label to which the resulting string is written in a replacement. It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, `KeepEqual` and `DropEqual` actions. Regex capture groups are available. |