ScrapeConfig.spec.kubernetesSDConfigs.tlsConfig.ca.configMap.spec.metricRelabelings
MetricRelabelConfigs to apply to samples before ingestion.
| 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 | 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 is the string between concatenated SourceLabels. |
The source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression. | |
targetLabel | 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. |