Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NetData
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
NetData
Commits
c2365dd7
Commit
c2365dd7
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#30
Update netdata config and improve resetting of existing installations
parent
8cde3db5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/prepare.yml
+15
-2
15 additions, 2 deletions
tasks/prepare.yml
templates/health.d/httpcheck.conf
+14
-12
14 additions, 12 deletions
templates/health.d/httpcheck.conf
with
29 additions
and
14 deletions
tasks/prepare.yml
+
15
−
2
View file @
c2365dd7
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
templates/health.d/httpcheck.conf
+
14
−
12
View file @
c2365dd7
# 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
-
5
m
unaligned
of
time
units
:
ms
every
:
10
s
warn
: ($
this
> ($
1
h_web_service_response_time
*
4
) )
crit
: ($
this
> ($
1
h_web_service_response_time
*
6
) )
info
:
average
response
time
over
the
last
5
minutes
,
compared
to
the
average
over
the
last
hour
delay
:
down
5
m
multiplier
1
.
5
max
1
h
to
:
webmaster
template
:
httpcheck_web_service_slow
families
: *
on
:
httpcheck
.
responsetime
class
:
Latency
type
:
Web
Server
component
:
HTTP
endpoint
lookup
:
median
-
3
m
unaligned
of
time
units
:
ms
every
:
10
s
warn
: ($
this
> ($
httpcheck_1h_web_service_response_time
*
2
) )
crit
: ($
this
> ($
httpcheck_1h_web_service_response_time
*
3
) )
delay
:
down
5
m
multiplier
1
.
5
max
1
h
info
:
median
HTTP
response
time
over
the
last
3
minutes
,
compared
to
the
average
over
the
last
hour
to
:
webmaster
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment