Let’s say that I have alert like this:
...
annotations = {
"description" = "{{ with $values }} Number of evictions is above the threshold of 80: {{ humanize $values.B.Value }} {{ end }}"
}
labels = {
"env" = var.env
"instance" = "Redis Cache Node"
}
is_paused = false
data {
ref_id = "A"
query_type = ""
relative_time_range {
from = 1800
to = 0
}
datasource_uid = grafana_data_source.cloudwatch.uid
model = jsonencode({
dimensions = {
CacheClusterId = "*"
}
...
Is there any way to template CacheClusterId
value for cluster that triggered an alert into: instance
label value or even better into description
annotation?
Expressions are Reduce
and Math