Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
Ildar Svetlov | 59e09d5 | 2018-08-01 13:22:53 +0400 | [diff] [blame] | 3 | alerta_environment_label: ${_param:cluster_name} |
Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 4 | prometheus: |
| 5 | server: |
| 6 | config: |
| 7 | alert: |
| 8 | labels_add: |
| 9 | environment: ${_param:alerta_environment_label} |
| 10 | alert_relabel_configs: |
| 11 | - replacement: "aggregated" |
| 12 | source_labels: "instance" |
| 13 | target_label: "instance" |
Dmitry Kalashnik | 8f232cd | 2018-06-08 13:02:10 +0400 | [diff] [blame] | 14 | - source_labels: "host" |
| 15 | target_label: "instance" |
| 16 | regex: "(.+)" |
| 17 | - source_labels: "job" |
| 18 | target_label: "instance" |
| 19 | regex: "(.+)" |
Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 20 | - source_labels: ["host", "job"] |
| 21 | target_label: "instance" |
Dmitry Kalashnik | 8f232cd | 2018-06-08 13:02:10 +0400 | [diff] [blame] | 22 | regex: "(.+;.+)" |
Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 23 | - source_labels: ["hostname", "job"] |
| 24 | target_label: "instance" |
Ildar Svetlov | 59e09d5 | 2018-08-01 13:22:53 +0400 | [diff] [blame] | 25 | regex: "(.+;.+)" |