Prometheus Alertmanager: is dynamic alert name possible

Viewed 232

Can we have dynamic alert names for Alertmanager alert rule?

Such as:

    - alert: "Dependency Status - {{ $labels.serviceName }} unhealthy "
      expr: 100*avg_over_time(dependency_status{}[30m]) < 90
      for: 1m
      labels:
        severity: warning
        action: page
        pager: pagerDutyService
      annotations:
        summary: "Dependency Unhealthy - Service: {{ $labels.serviceName }}"
        information: "Dependency Status availability rate over 30m for service "{{ $labels.serviceName }} at {{ $value }}%"
0 Answers
Related