commit | 59e09d59cf684bd72349d3bd6c6ee02373cd1861 | [log] [tgz] |
---|---|---|
author | Ildar Svetlov <isvetlov@mirantis.com> | Wed Aug 01 13:22:53 2018 +0400 |
committer | Ildar Svetlov <isvetlov@mirantis.com> | Wed Aug 01 13:24:30 2018 +0400 |
tree | 8e2a838cc607e1837fc81b197420defadd98f95a | |
parent | d9b3f7e6f9242c482c3bde9aeca91598e1a5754a [diff] |
Set Environment label in alerta to cluster_name Change-Id: If7ea4e8bf99eeb37bcfb3fb7a3511bf75a885a3b Related-PROD: PROD-21806
diff --git a/docker/swarm/stack/monitoring/alerta.yml b/docker/swarm/stack/monitoring/alerta.yml index 858eb38..5e99286 100644 --- a/docker/swarm/stack/monitoring/alerta.yml +++ b/docker/swarm/stack/monitoring/alerta.yml
@@ -29,3 +29,4 @@ ADMIN_USERS: ${_param:alerta_admin_username} ADMIN_PASSWORD: ${_param:alerta_admin_password} MONGO_URI: ${_param:alerta_mongodb_uri} + PLUGINS: ""
diff --git a/prometheus/server/alert/alerta_relabel.yml b/prometheus/server/alert/alerta_relabel.yml index ca0f4b4..df6aca0 100644 --- a/prometheus/server/alert/alerta_relabel.yml +++ b/prometheus/server/alert/alerta_relabel.yml
@@ -1,6 +1,6 @@ parameters: _param: - alerta_environment_label: Development + alerta_environment_label: ${_param:cluster_name} prometheus: server: config: @@ -22,4 +22,4 @@ regex: "(.+;.+)" - source_labels: ["hostname", "job"] target_label: "instance" - regex: "(.+;.+)" \ No newline at end of file + regex: "(.+;.+)"