0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-28 06:32:30 +00:00

Move daemon/ under src/ ()

This commit is contained in:
vkalintiris 2024-02-06 15:32:15 +02:00 committed by GitHub
parent 65579feafe
commit 70246b7965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
54 changed files with 70 additions and 70 deletions

View file

@ -801,40 +801,40 @@ set(LIBH2O_FILES
)
set(DAEMON_FILES
daemon/buildinfo.c
daemon/buildinfo.h
daemon/common.c
daemon/common.h
daemon/daemon.c
daemon/daemon.h
daemon/event_loop.c
daemon/event_loop.h
daemon/global_statistics.c
daemon/global_statistics.h
daemon/analytics.c
daemon/analytics.h
daemon/main.c
daemon/main.h
daemon/signals.c
daemon/signals.h
daemon/service.c
daemon/static_threads.c
daemon/static_threads.h
daemon/commands.c
daemon/commands.h
daemon/pipename.c
daemon/pipename.h
daemon/unit_test.c
daemon/unit_test.h
daemon/config/dyncfg.c
daemon/config/dyncfg.h
daemon/config/dyncfg-files.c
daemon/config/dyncfg-unittest.c
daemon/config/dyncfg-inline.c
daemon/config/dyncfg-echo.c
daemon/config/dyncfg-internals.h
daemon/config/dyncfg-intercept.c
daemon/config/dyncfg-tree.c
src/daemon/buildinfo.c
src/daemon/buildinfo.h
src/daemon/common.c
src/daemon/common.h
src/daemon/daemon.c
src/daemon/daemon.h
src/daemon/event_loop.c
src/daemon/event_loop.h
src/daemon/global_statistics.c
src/daemon/global_statistics.h
src/daemon/analytics.c
src/daemon/analytics.h
src/daemon/main.c
src/daemon/main.h
src/daemon/signals.c
src/daemon/signals.h
src/daemon/service.c
src/daemon/static_threads.c
src/daemon/static_threads.h
src/daemon/commands.c
src/daemon/commands.h
src/daemon/pipename.c
src/daemon/pipename.h
src/daemon/unit_test.c
src/daemon/unit_test.h
src/daemon/config/dyncfg.c
src/daemon/config/dyncfg.h
src/daemon/config/dyncfg-files.c
src/daemon/config/dyncfg-unittest.c
src/daemon/config/dyncfg-inline.c
src/daemon/config/dyncfg-echo.c
src/daemon/config/dyncfg-internals.h
src/daemon/config/dyncfg-intercept.c
src/daemon/config/dyncfg-tree.c
)
set(H2O_FILES
@ -1331,7 +1331,7 @@ set(NETDATA_FILES
if(LINUX)
list(APPEND NETDATA_FILES
daemon/static_threads_linux.c
src/daemon/static_threads_linux.c
${CGROUPS_PLUGIN_FILES}
${DISKSPACE_PLUGIN_FILES}
${PROC_PLUGIN_FILES}
@ -1340,17 +1340,17 @@ if(LINUX)
if(ENABLE_SENTRY)
list(APPEND NETDATA_FILES
daemon/sentry-native/sentry-native.c
daemon/sentry-native/sentry-native.h)
src/daemon/sentry-native/sentry-native.c
src/daemon/sentry-native/sentry-native.h)
endif()
elseif(MACOS)
list(APPEND NETDATA_FILES
daemon/static_threads_macos.c
src/daemon/static_threads_macos.c
${MACOS_PLUGIN_FILES}
)
elseif(FREEBSD)
list(APPEND NETDATA_FILES
daemon/static_threads_freebsd.c
src/daemon/static_threads_freebsd.c
${FREEBSD_PLUGIN_FILES}
)
endif()
@ -2179,9 +2179,9 @@ endif()
#
set(NETDATACLI_FILES
daemon/commands.h
daemon/pipename.c
daemon/pipename.h
src/daemon/commands.h
src/daemon/pipename.c
src/daemon/pipename.h
src/cli/cli.c
)
@ -2432,18 +2432,18 @@ install(PROGRAMS
#
# TODO: check the following files for correct substitutions
#
configure_file(daemon/anonymous-statistics.sh.in daemon/anonymous-statistics.sh @ONLY)
configure_file(src/daemon/anonymous-statistics.sh.in src/daemon/anonymous-statistics.sh @ONLY)
install(PROGRAMS
${CMAKE_BINARY_DIR}/daemon/anonymous-statistics.sh
${CMAKE_BINARY_DIR}/src/daemon/anonymous-statistics.sh
DESTINATION usr/libexec/netdata/plugins.d)
configure_file(daemon/get-kubernetes-labels.sh.in daemon/get-kubernetes-labels.sh @ONLY)
configure_file(src/daemon/get-kubernetes-labels.sh.in src/daemon/get-kubernetes-labels.sh @ONLY)
install(PROGRAMS
${CMAKE_BINARY_DIR}/daemon/get-kubernetes-labels.sh
${CMAKE_BINARY_DIR}/src/daemon/get-kubernetes-labels.sh
DESTINATION usr/libexec/netdata/plugins.d)
install(PROGRAMS
daemon/system-info.sh
src/daemon/system-info.sh
DESTINATION usr/libexec/netdata/plugins.d)
#

View file

@ -39,7 +39,7 @@ You are expected to use this method in all following configuration changes.
## Metrics collection & retention
You can tweak your settings in the netdata.conf file.
📄 [Find your netdata.conf file](https://github.com/netdata/netdata/blob/master/daemon/config/README.md)
📄 [Find your netdata.conf file](https://github.com/netdata/netdata/blob/master/src/daemon/config/README.md)
Open a new terminal and navigate to the netdata.conf file. Use the edit-config script to make changes: `sudo ./edit-config netdata.conf`

View file

@ -38,7 +38,7 @@ to help you determine the exact settings for your desired retention period.
### Reduce the data collection frequency
Change `update every` in
the [`[global]` section](https://github.com/netdata/netdata/blob/master/daemon/config/README.md#global-section-options)
the [`[global]` section](https://github.com/netdata/netdata/blob/master/src/daemon/config/README.md#global-section-options)
of `netdata.conf` so
that it is greater than `1`. An `update every` of `5` means the Netdata Agent enforces a _minimum_ collection frequency
of 5 seconds.
@ -57,7 +57,7 @@ doc for details.
### Disable a collector or plugin
Turn off entire plugins in
the [`[plugins]` section](https://github.com/netdata/netdata/blob/master/daemon/config/README.md#plugins-section-options)
the [`[plugins]` section](https://github.com/netdata/netdata/blob/master/src/daemon/config/README.md#plugins-section-options)
of
`netdata.conf`.
@ -116,7 +116,7 @@ template: disk_fill_rate
### Turn of all alerts and notifications
Set `enabled` to `no` in
the [`[health]`](https://github.com/netdata/netdata/blob/master/daemon/config/README.md#health-section-options)
the [`[health]`](https://github.com/netdata/netdata/blob/master/src/daemon/config/README.md#health-section-options)
section of `netdata.conf`.
### Enable alert notifications

View file

@ -31,7 +31,7 @@ these files in your own Netdata config directory, as the next section describes
exist.
- `netdata.conf` is the main configuration file. This is where you'll find most configuration options. Read descriptions
for each in the [daemon config](https://github.com/netdata/netdata/blob/master/daemon/config/README.md) doc.
for each in the [daemon config](https://github.com/netdata/netdata/blob/master/src/daemon/config/README.md) doc.
- `edit-config` is a shell script used for [editing configuration files](#use-edit-config-to-edit-configuration-files).
- Various configuration files ending in `.conf` for [configuring plugins or
collectors](https://github.com/netdata/netdata/blob/master/collectors/REFERENCE.md) behave. Examples: `go.d.conf`,

View file

@ -1,6 +1,6 @@
# Start, stop, or restart the Netdata Agent
When you install the Netdata Agent, the [daemon](https://github.com/netdata/netdata/blob/master/daemon/README.md) is
When you install the Netdata Agent, the [daemon](https://github.com/netdata/netdata/blob/master/src/daemon/README.md) is
configured to start at boot and stop and restart/shutdown.
You will most often need to _restart_ the Agent to load new or editing configuration files.

View file

@ -50,7 +50,7 @@ including all its components, should be below 5 - 15% of a single core. For exam
0.6% - 1.8% of a total CPU capacity, depending on the CPU characteristics.
The Netdata Agent runs with the lowest
possible [process scheduling policy](https://github.com/netdata/netdata/blob/master/daemon/README.md#netdata-process-scheduling-policy),
possible [process scheduling policy](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#netdata-process-scheduling-policy),
which is `nice 19`, and uses the `idle` process scheduler. Together, these settings ensure that the Agent only gets CPU
resources when the node has CPU resources to space. If the node reaches 100% CPU utilization, the Agent is stopped first
to ensure your applications get any available resources.

View file

@ -19,7 +19,7 @@ You can configure the Agent's health watchdog service by editing files in two lo
- The `[health]` section in `netdata.conf`. By editing the daemon's behavior, you can disable health monitoring
altogether, run health checks more or less often, and more. See
[daemon configuration](https://github.com/netdata/netdata/blob/master/daemon/config/README.md#health-section-options) for a table of
[daemon configuration](https://github.com/netdata/netdata/blob/master/src/daemon/config/README.md#health-section-options) for a table of
all the available settings, their default values, and what they control.
- The individual `.conf` files in `health.d/`. These health entity files are organized by the type of metric they are
@ -1368,7 +1368,7 @@ health configuration files!
## Troubleshooting
You can compile Netdata with [debugging](https://github.com/netdata/netdata/blob/master/daemon/README.md#debugging) and then set in `netdata.conf`:
You can compile Netdata with [debugging](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#debugging) and then set in `netdata.conf`:
```yaml
[global]

View file

@ -33,6 +33,6 @@ dumpconfig
Returns the current netdata.conf on stdout.
```
See also the Netdata daemon [command line options](https://github.com/netdata/netdata/blob/master/daemon/README.md#command-line-options).
See also the Netdata daemon [command line options](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#command-line-options).

View file

@ -143,7 +143,7 @@ For most Netdata programs (including standard external plugins shipped by netdat
| `ERROR` | Something that might disable a part of netdata.<br/>The log line includes `errno` (if it is not zero). |
| `FATAL` | Something prevented a program from running.<br/>The log line includes `errno` (if it is not zero) and the program exited. |
The `FATAL` and `ERROR` messages will always appear in the logs, and `INFO`can be filtered using [severity level](https://github.com/netdata/netdata/tree/master/daemon/config#logs-section-options) option.
The `FATAL` and `ERROR` messages will always appear in the logs, and `INFO`can be filtered using [severity level](https://github.com/netdata/netdata/tree/master/src/daemon/config#logs-section-options) option.
So, when auto-detection of data collection fail, `ERROR` lines are logged and the relevant modules are disabled, but the
program continues to run.

View file

@ -1,7 +1,7 @@
<!--
title: "Daemon configuration"
description: "The Netdata Agent's daemon is installed preconfigured to collect thousands of metrics every second, but is highly configurable for real-world workloads."
custom_edit_url: "https://github.com/netdata/netdata/edit/master/daemon/config/README.md"
custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/daemon/config/README.md"
sidebar_label: "Daemon"
learn_status: "Published"
learn_rel_path: "Configuration"
@ -29,13 +29,13 @@ the [web server access lists](https://github.com/netdata/netdata/blob/master/web
`netdata.conf` has sections stated with `[section]`. You will see the following sections:
1. `[global]` to [configure](#global-section-options) the [Netdata daemon](https://github.com/netdata/netdata/blob/master/daemon/README.md).
1. `[global]` to [configure](#global-section-options) the [Netdata daemon](https://github.com/netdata/netdata/blob/master/src/daemon/README.md).
2. `[db]` to [configure](#db-section-options) the database of Netdata.
3. `[directories]` to [configure](#directories-section-options) the directories used by Netdata.
4. `[logs]` to [configure](#logs-section-options) the Netdata logging.
5. `[environment variables]` to [configure](#environment-variables-section-options) the environment variables used
Netdata.
6. `[sqlite]` to [configure](#sqlite-section-options) the [Netdata daemon](https://github.com/netdata/netdata/blob/master/daemon/README.md) SQLite settings.
6. `[sqlite]` to [configure](#sqlite-section-options) the [Netdata daemon](https://github.com/netdata/netdata/blob/master/src/daemon/README.md) SQLite settings.
7. `[ml]` to configure settings for [machine learning](https://github.com/netdata/netdata/blob/master/src/ml/README.md).
8. `[health]` to [configure](#health-section-options) general settings for [health monitoring](https://github.com/netdata/netdata/blob/master/health/README.md).
9. `[web]` to [configure the web server](https://github.com/netdata/netdata/blob/master/web/server/README.md).
@ -74,10 +74,10 @@ Please note that your data history will be lost if you have modified `history` p
| setting | default | info |
|:----------------------------------:|:-------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| process scheduling policy | `keep` | See [Netdata process scheduling policy](https://github.com/netdata/netdata/blob/master/daemon/README.md#netdata-process-scheduling-policy) |
| process scheduling policy | `keep` | See [Netdata process scheduling policy](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#netdata-process-scheduling-policy) |
| OOM score | `0` | |
| glibc malloc arena max for plugins | `1` | See [Virtual memory](https://github.com/netdata/netdata/blob/master/daemon/README.md#virtual-memory). |
| glibc malloc arena max for Netdata | `1` | See [Virtual memory](https://github.com/netdata/netdata/blob/master/daemon/README.md#virtual-memory). |
| glibc malloc arena max for plugins | `1` | See [Virtual memory](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#virtual-memory). |
| glibc malloc arena max for Netdata | `1` | See [Virtual memory](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#virtual-memory). |
| hostname | auto-detected | The hostname of the computer running Netdata. |
| host access prefix | empty | This is used in docker environments where /proc, /sys, etc have to be accessed via another path. You may also have to set SYS_PTRACE capability on the docker for this work. Check [issue 43](https://github.com/netdata/netdata/issues/43). |
| timezone | auto-detected | The timezone retrieved from the environment variable |
@ -117,7 +117,7 @@ Please note that your data history will be lost if you have modified `history` p
|:-------------------:|:------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| config | `/etc/netdata` | The directory configuration files are kept. |
| stock config | `/usr/lib/netdata/conf.d` | |
| log | `/var/log/netdata` | The directory in which the [log files](https://github.com/netdata/netdata/blob/master/daemon/README.md#log-files) are kept. |
| log | `/var/log/netdata` | The directory in which the [log files](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#log-files) are kept. |
| web | `/usr/share/netdata/web` | The directory the web static files are kept. |
| cache | `/var/cache/netdata` | The directory the memory database will be stored if and when Netdata exits. Netdata will re-read the database when it will start again, to continue from the same point. |
| lib | `/var/lib/netdata` | Contains the alert log and the Netdata instance GUID. |
@ -132,8 +132,8 @@ Please note that your data history will be lost if you have modified `history` p
| setting | default | info |
|:----------------------------------:|:-----------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| debug flags | `0x0000000000000000` | Bitmap of debug options to enable. For more information check [Tracing Options](https://github.com/netdata/netdata/blob/master/daemon/README.md#debugging). |
| debug | `/var/log/netdata/debug.log` | The filename to save debug information. This file will not be created if debugging is not enabled. You can also set it to `syslog` to send the debug messages to syslog, or `none` to disable this log. For more information check [Tracing Options](https://github.com/netdata/netdata/blob/master/daemon/README.md#debugging). |
| debug flags | `0x0000000000000000` | Bitmap of debug options to enable. For more information check [Tracing Options](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#debugging). |
| debug | `/var/log/netdata/debug.log` | The filename to save debug information. This file will not be created if debugging is not enabled. You can also set it to `syslog` to send the debug messages to syslog, or `none` to disable this log. For more information check [Tracing Options](https://github.com/netdata/netdata/blob/master/src/daemon/README.md#debugging). |
| error | `/var/log/netdata/error.log` | The filename to save error messages for Netdata daemon and all plugins (`stderr` is sent here for all Netdata programs, including the plugins). You can also set it to `syslog` to send the errors to syslog, or `none` to disable this log. |
| access | `/var/log/netdata/access.log` | The filename to save the log of web clients accessing Netdata charts. You can also set it to `syslog` to send the access log to syslog, or `none` to disable this log. |
| facility | `daemon` | A facility keyword is used to specify the type of system that is logging the message. |

View file

@ -2840,13 +2840,13 @@ netdataDashboard.context = {
'apps.vmem': {
info: 'Virtual memory allocated by applications. '+
'Check <a href="https://github.com/netdata/netdata/tree/master/daemon#virtual-memory" target="_blank">this article</a> for more information.'
'Check <a href="https://github.com/netdata/netdata/tree/master/src/daemon#virtual-memory" target="_blank">this article</a> for more information.'
},
'groups.vmem': {
info: 'Virtual memory allocated per user group since the Netdata restart. Please check <a href="https://github.com/netdata/netdata/tree/master/daemon#virtual-memory" target="_blank">this article</a> for more information.'
info: 'Virtual memory allocated per user group since the Netdata restart. Please check <a href="https://github.com/netdata/netdata/tree/master/src/daemon#virtual-memory" target="_blank">this article</a> for more information.'
},
'users.vmem': {
info: 'Virtual memory allocated per user since the Netdata restart. Please check <a href="https://github.com/netdata/netdata/tree/master/daemon#virtual-memory" target="_blank">this article</a> for more information.'
info: 'Virtual memory allocated per user since the Netdata restart. Please check <a href="https://github.com/netdata/netdata/tree/master/src/daemon#virtual-memory" target="_blank">this article</a> for more information.'
},
'apps.minor_faults': {