pub struct PoolerMonitoringPodMonitorRelabelings {
pub action: Option<PoolerMonitoringPodMonitorRelabelingsAction>,
pub modulus: Option<i64>,
pub regex: Option<String>,
pub replacement: Option<String>,
pub separator: Option<String>,
pub source_labels: Option<Vec<String>>,
pub target_label: Option<String>,
}Expand description
RelabelConfig allows dynamic rewriting of the label set for targets, alerts, scraped samples and remote write samples. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
Fields§
§action: Option<PoolerMonitoringPodMonitorRelabelingsAction>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: Option<i64>Modulus to take of the hash of the source label values.
Only applicable when the action is HashMod.
regex: Option<String>Regular expression against which the extracted value is matched.
replacement: Option<String>Replacement value against which a Replace action is performed if the regular expression matches. Regex capture groups are available.
separator: Option<String>Separator is the string between concatenated SourceLabels.
source_labels: Option<Vec<String>>The source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression.
target_label: Option<String>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.
Trait Implementations§
source§impl Clone for PoolerMonitoringPodMonitorRelabelings
impl Clone for PoolerMonitoringPodMonitorRelabelings
source§fn clone(&self) -> PoolerMonitoringPodMonitorRelabelings
fn clone(&self) -> PoolerMonitoringPodMonitorRelabelings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PoolerMonitoringPodMonitorRelabelings
impl Default for PoolerMonitoringPodMonitorRelabelings
source§fn default() -> PoolerMonitoringPodMonitorRelabelings
fn default() -> PoolerMonitoringPodMonitorRelabelings
source§impl<'de> Deserialize<'de> for PoolerMonitoringPodMonitorRelabelings
impl<'de> Deserialize<'de> for PoolerMonitoringPodMonitorRelabelings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for PoolerMonitoringPodMonitorRelabelings
impl JsonSchema for PoolerMonitoringPodMonitorRelabelings
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more