I have few alerts configured in promertheus/alertmanager. I want to 
dynamically change email subject based on group name. how is it possible? 
lets say below is one of the entry.
so in below case, email subject should be alert name or suject label value. 
is this possible?



- alert: OfflinePartitionAlerts
    expr: 
kafka_controller_kafkacontroller_offlinepartitionscount{job=~"prod_.*"}>0
    for: 2m
    labels:
      group: OfflinePartition
      environment: Production
      subject: OfflinePartitionAlerts
    annotations:
      Environment: 'Production'
      Cluster: '{{ $labels.job }}'
      Node: '{{ $labels.node }}'
      Summary: 'Offline partitions in cluster'
      OfflinePartitionCount : '{{ $value }} '



Thanks
Bibin John



-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/308473f2-9200-4c7c-b943-b9403b05b277%40googlegroups.com.

Reply via email to