Commit c2365dd7 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

#30 Update netdata config and improve resetting of existing installations

parent 8cde3db5
......@@ -30,12 +30,25 @@
path: '{{ item }}'
state: absent
with_items:
- /opt/{{ netdata_local_archive|default("netdata") }}
- /etc/netdata
- /etc/init.d/netdata
- /etc/logrotate.d/netdata
- /etc/netdata
- /etc/systemd/system/netdata.service
- /etc/systemd/system/netdata.service.d
- /opt/{{ netdata_local_archive|default("netdata") }}
- /usr/lib/netdata
- /usr/libexec/netdata
- /usr/sbin/netdata
when: netdata_force_reset
- name: Remove existing package
apt:
pkg: '{{ packages }}'
state: absent
update_cache: no
vars:
packages:
- netdata
when: netdata_force_reset
- name: Ensure Directory
......
# Change: use 5 instead of 3 minutes and multiply with 4/6 instead of 2/3
template: web_service_slow
families: *
on: httpcheck.responsetime
lookup: average -5m unaligned of time
units: ms
every: 10s
warn: ($this > ($1h_web_service_response_time * 4) )
crit: ($this > ($1h_web_service_response_time * 6) )
info: average response time over the last 5 minutes, compared to the average over the last hour
delay: down 5m multiplier 1.5 max 1h
to: webmaster
template: httpcheck_web_service_slow
families: *
on: httpcheck.responsetime
class: Latency
type: Web Server
component: HTTP endpoint
lookup: median -3m unaligned of time
units: ms
every: 10s
warn: ($this > ($httpcheck_1h_web_service_response_time * 2) )
crit: ($this > ($httpcheck_1h_web_service_response_time * 3) )
delay: down 5m multiplier 1.5 max 1h
info: median HTTP response time over the last 3 minutes, compared to the average over the last hour
to: webmaster
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment