// TODO: docker install
/etc/netdata/netdata.conf
# NetData Configuration
# The current full configuration can be retrieved from the running
# server at the URL
#
# http://localhost:19999/netdata.conf
#
# for example:
#
# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
#
[global]
run as user = netdata
web files owner = root
web files group = root
# Netdata is not designed to be exposed to potentially hostile
# networks. See https://github.com/netdata/netdata/issues/164
bind socket to IP = 127.0.0.1
# History is defined in seconds, so for a year (365 days), it is:
history = 31536000 # 365 days * 24 hours * 60 minutes * 60 seconds
# Disk space allocation for storing historical data if applicable
# Setting this value ensures data is stored on disk for a year
# Not all versions or setups have a specific "disk space" parameter
disk space = 31536000
history = 31536000 # Keep data for 1 year (in seconds)
disk space = 31536000
[web]
bind to = 0.0.0.0
port = 19999
# [db]
# update every = 1
[db]
mode = dbengine
storage tiers = 3
# Tier 0, per second data. Set to 0 for no limit.
dbengine tier 0 disk space MB = 1024
dbengine tier 0 retention days = 14
# Tier 1, per minute data. Set to 0 for no limit.
dbengine tier 1 disk space MB = 1024
dbengine tier 1 retention days = 90
# Tier 2, per hour data. Set to 0 for no limit.
dbengine tier 2 disk space MB = 1024
dbengine tier 2 retention days = 730
[plugins]
# timex = yes
# idlejitter = yes
# netdata monitoring = yes
# tc = yes
diskspace = yes
proc = yes
# cgroups = yes
# enable running new plugins = yes
# check for new plugins every = 60
# slabinfo = no
# python.d = yes
# perf = yes
# ioping = yes
# fping = yes
# nfacct = yes
# go.d = yes
apps = yes
# ebpf = yes
charts.d = yes
# statsd = yes
/etc/netdata/go.d/diskspace.conf
[diskspace]
update_every = 60 # Collect data every 60 seconds (1 minute)
wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
[global] run as user = netdata web files owner = root web files group = root # Netdata is not designed to be exposed to potentially hostile # networks. See netdata/netdata#164 bind socket to IP = 127.0.0.1
# History is defined in seconds, so for a year (365 days), it is:
history = 31536000 # 365 days * 24 hours * 60 minutes * 60 seconds
# Disk space allocation for storing historical data if applicable
# Setting this value ensures data is stored on disk for a year
# Not all versions or setups have a specific "disk space" parameter
disk space = 31536000
[web] bind to = 0.0.0.0 port = 19999
# update every = 1
[db] mode = dbengine storage tiers = 3
# Tier 0, per second data. Set to 0 for no limit.
dbengine tier 0 disk space MB = 1024
dbengine tier 0 retention days = 14
# Tier 1, per minute data. Set to 0 for no limit.
dbengine tier 1 disk space MB = 1024
dbengine tier 1 retention days = 90
# Tier 2, per hour data. Set to 0 for no limit.
dbengine tier 2 disk space MB = 1024
dbengine tier 2 retention days = 730