Skip to content
Snippets Groups Projects
Commit 1e9df51d authored by jurgenhaas's avatar jurgenhaas
Browse files

Update heartbeat format regarding environments

parent dac58038
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,6 @@
- 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,"tags":["environment:{{ netdata_alerta_environment|default(''production'') }}"]}'' >/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,"attributes":{"environment":"{{ netdata_alerta_environment|default(''production'') }}"}}'' >/dev/null 2>&1'
tags:
- cron
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment