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

Add heartbeat from NetData to Alerta

parent 93c87c2c
No related branches found
No related tags found
No related merge requests found
---
# file: roles/netdata/tasks/heartbeat.yml
- 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'
tags: 'cron'
......@@ -30,4 +30,6 @@
- import_tasks: varnish.yml
when: groups['varnishserver'] is defined and inventory_hostname in groups['varnishserver']
- import_tasks: heartbeat.yml
when: '"netdata" not in excluded_roles'
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