Netdata: update config
Some checks failed
Linting / YAML Lint (push) Failing after 9s
Linting / Ansible Lint (push) Successful in 17s

map /etc/hostname config into container
This commit is contained in:
2025-12-14 21:22:00 +03:00
parent 0a75378bbc
commit faf7d58f78
2 changed files with 6 additions and 10 deletions

View File

@@ -16,12 +16,16 @@ services:
- "{{ config_dir }}:/etc/netdata"
- "{{ (data_dir, 'lib') | path_join }}:/var/lib/netdata"
- "{{ (data_dir, 'cache') | path_join }}:/var/cache/netdata"
# Netdata system volumes
- "/:/host/root:ro,rslave"
- "/etc/group:/host/etc/group:ro"
- "/etc/hostname:/host/etc/hostname:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/os-release:/host/etc/os-release:ro"
- "/etc/passwd:/host/etc/passwd:ro"
- "/proc:/host/proc:ro"
- "/run/dbus:/run/dbus:ro"
- "/sys:/host/sys:ro"

View File

@@ -15,15 +15,11 @@
[global]
# run as user = netdata
# host access prefix = /host
#| >>> [global].hostname <<<
#| datatype: text, default value: a7ccb73e566e
hostname = {{ host_name }}
# pthread stack size = 8MiB
# cpu cores = 2
# libuv worker threads = 16
# profile = standalone
# hostname = rivendell-v2
# glibc malloc arena max for plugins = 1
# glibc malloc arena max for netdata = 1
# crash reports = all
@@ -103,9 +99,6 @@
# PYTHONPATH =
# TZ = :/etc/localtime
[host labels]
# name = value
[cloud]
# conversation log = no
# scope = full
@@ -198,7 +191,7 @@
# registry expire idle persons = 1y
# registry domain =
# registry to announce = https://registry.my-netdata.io
# registry hostname = rivendell
# registry hostname = rivendell-v2
# verify browser cookies support = yes
# enable cookies SameSite and Secure = yes
# max URL length = 1024
@@ -342,7 +335,6 @@
[plugin:proc:diskspace]
#| >>> [plugin:proc:diskspace].update every <<<
#| reformatted from: 60s
#| datatype: duration (seconds), default value: 10s
update every = 1m