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

Add environment to heartbeat

parent 4839c7a5
No related branches found
No related tags found
No related merge requests found
......@@ -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'
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