add exported_instance
This commit is contained in:
parent
0ae1024cc7
commit
bf80240238
|
@ -31,6 +31,7 @@ struct AlertLabels {
|
||||||
alertname: Option<String>,
|
alertname: Option<String>,
|
||||||
host: Option<String>,
|
host: Option<String>,
|
||||||
instance: Option<String>,
|
instance: Option<String>,
|
||||||
|
exported_instance: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
{% if labels.alertname.as_ref().is_some() %}*{{ labels.alertname.as_ref().unwrap() }}*{% endif -%}
|
{% if labels.alertname.as_ref().is_some() %}*{{ labels.alertname.as_ref().unwrap() }}*{% endif -%}
|
||||||
{% if labels.host.as_ref().is_some() -%}
|
{% if labels.host.as_ref().is_some() -%}
|
||||||
at {{ labels.host.as_ref().unwrap() -}}
|
at {{ labels.host.as_ref().unwrap() -}}
|
||||||
|
{% else if labels.exported_instance.as_ref().is_some() -%}
|
||||||
|
at {{ labels.exported_instance.as_ref().unwrap() }}
|
||||||
{% else if labels.instance.as_ref().is_some() -%}
|
{% else if labels.instance.as_ref().is_some() -%}
|
||||||
at {{ labels.instance.as_ref().unwrap() }}{% endif -%}
|
at {{ labels.instance.as_ref().unwrap() }}{% endif -%}
|
||||||
{% if annotations.message.as_ref().is_some() %}
|
{% if annotations.message.as_ref().is_some() %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user