prometheus operator v0.93.1

Prometheus.spec.thanos.grpcServerTlsConfig.ca.configMap.spec.alerting.alertmanagers.relabelings

relabelings defines the relabel configuration applied to the discovered Alertmanagers.

7 fields
Prometheus.spec.thanos.grpcServerTlsConfig.ca.configMap.spec.alerting.alertmanagers.relabelings fields and descriptions
Field / TypeDescription
action
string

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"

  • enum: ["replace","Replace","keep","Keep","drop","Drop","hashmod","HashMod","labelmap","LabelMap","labeldrop","LabelDrop","labelkeep","LabelKeep","lowercase","Lowercase","uppercase","Uppercase","keepequal","KeepEqual","dropequal","DropEqual"]
  • default: "replace"
modulus
integer

modulus to take of the hash of the source label values. Only applicable when the action is `HashMod`.

  • format: int64
  • minimum: 0
regex
string

regex defines the regular expression against which the extracted value is matched.

replacement
string

replacement value against which a Replace action is performed if the regular expression matches. Regex capture groups are available.

separator
string

separator defines the string between concatenated SourceLabels.

string[]

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
string

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.