summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-05-17 17:31:19 +0300
committerGitHub <noreply@github.com>2022-05-17 17:31:19 +0300
commit0fa55c7dcee497d6cfb725604d03ffc300a97ebd (patch)
treec904020933789c4692a5c4026e01b015a3e7e8d2 /health
parentbde07cba29cefda2f701505ae9764aa7f203aea4 (diff)
feat: move dirs, logs, and env vars config options to separate sections (#12935)
Diffstat (limited to 'health')
-rw-r--r--health/QUICKSTART.md4
-rw-r--r--health/health.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/health/QUICKSTART.md b/health/QUICKSTART.md
index 5cf6929dc1..bc2da2df19 100644
--- a/health/QUICKSTART.md
+++ b/health/QUICKSTART.md
@@ -41,9 +41,9 @@ address or hostname for your Agent dashboard, looking for the `stock health conf
here will show the correct path for your installation.
```conf
-[health]
+[directories]
...
- # stock health configuration directory = /usr/lib/netdata/conf.d/health.d
+ # stock health config = /usr/lib/netdata/conf.d/health.d
```
Navigate to the health configuration directory to see all the available files and open them for reading.
diff --git a/health/health.c b/health/health.c
index df3802497e..bb185c85cc 100644
--- a/health/health.c
+++ b/health/health.c
@@ -58,7 +58,7 @@ static inline void unlink_alarm_notify_in_progress(ALARM_ENTRY *ae)
inline char *health_user_config_dir(void) {
char buffer[FILENAME_MAX + 1];
snprintfz(buffer, FILENAME_MAX, "%s/health.d", netdata_configured_user_config_dir);
- return config_get(CONFIG_SECTION_HEALTH, "health configuration directory", buffer);
+ return config_get(CONFIG_SECTION_DIRECTORIES, "health config", buffer);
}
/**
@@ -71,7 +71,7 @@ inline char *health_user_config_dir(void) {
inline char *health_stock_config_dir(void) {
char buffer[FILENAME_MAX + 1];
snprintfz(buffer, FILENAME_MAX, "%s/health.d", netdata_configured_stock_config_dir);
- return config_get(CONFIG_SECTION_HEALTH, "stock health configuration directory", buffer);
+ return config_get(CONFIG_SECTION_DIRECTORIES, "stock health config", buffer);
}
/**