Netdata + Caddy: add monitoring for http-server
This commit is contained in:
@ -4,6 +4,12 @@
|
||||
{
|
||||
grace_period 15s
|
||||
|
||||
admin :2019
|
||||
|
||||
# Enable metrics in Prometheus format
|
||||
# https://caddyserver.com/docs/metrics
|
||||
metrics
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Applications
|
||||
|
9
files/netdata/go.d/prometheus.conf
Normal file
9
files/netdata/go.d/prometheus.conf
Normal file
@ -0,0 +1,9 @@
|
||||
update_every: 5
|
||||
autodetection_retry: 0
|
||||
|
||||
jobs:
|
||||
- name: caddyproxy
|
||||
url: http://caddyproxy:2019/metrics
|
||||
selector:
|
||||
allow:
|
||||
- "caddy_http_*"
|
@ -19,7 +19,7 @@
|
||||
# cpu cores = 2
|
||||
# libuv worker threads = 16
|
||||
# profile = standalone
|
||||
hostname = rivendell
|
||||
hostname = {{ host_name }}
|
||||
# glibc malloc arena max for plugins = 1
|
||||
# glibc malloc arena max for netdata = 1
|
||||
# crash reports = all
|
||||
|
Reference in New Issue
Block a user