From c84b74e7a275d1bd99677b72963467f075229e55 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Sun, 26 Aug 2018 13:48:58 +0200 Subject: [PATCH] Add environment to heartbeat --- tasks/heartbeat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/heartbeat.yml b/tasks/heartbeat.yml index 93d54e4..61368d5 100644 --- a/tasks/heartbeat.yml +++ b/tasks/heartbeat.yml @@ -4,5 +4,5 @@ - name: "Crontab for heartbeat" cron: name: 'Heartbeat' - job: '/usr/bin/curl -XPOST {{ netdata_alerta_webhook }}/heartbeat -H ''Authorization: Key {{ netdata_alerta_apikey }}'' -H ''Content-type: application/json'' -d ''{"origin":"{{ inventory_hostname }}","timeout":120}'' >/dev/null 2>&1' + job: '/usr/bin/curl -XPOST {{ netdata_alerta_webhook }}/heartbeat -H ''Authorization: Key {{ netdata_alerta_apikey }}'' -H ''Content-type: application/json'' -d ''{"origin":"{{ inventory_hostname }}","timeout":120,"tags":["environment:{{ netdata_alerta_environment|default(''production'') }}"]}'' >/dev/null 2>&1' tags: 'cron' -- GitLab