summaryrefslogtreecommitdiffstats
path: root/backends/backends.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:27 +0000
commit841395dd16f470e3c051a0a4fff5b91efc983c30 (patch)
tree4115f6eedcddda75067130b80acaff9e51612f49 /backends/backends.c
parentAdding upstream version 1.30.1. (diff)
downloadnetdata-841395dd16f470e3c051a0a4fff5b91efc983c30.tar.xz
netdata-841395dd16f470e3c051a0a4fff5b91efc983c30.zip
Adding upstream version 1.31.0.upstream/1.31.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'backends/backends.c')
-rw-r--r--backends/backends.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/backends/backends.c b/backends/backends.c
index bc718cb29..dca21ef1c 100644
--- a/backends/backends.c
+++ b/backends/backends.c
@@ -26,6 +26,7 @@
//
const char *global_backend_prefix = "netdata";
+const char *global_backend_send_charts_matching = "*";
int global_backend_update_every = 10;
BACKEND_OPTIONS global_backend_options = BACKEND_SOURCE_DATA_AVERAGE | BACKEND_OPTION_SEND_NAMES;
const char *global_backend_source = NULL;
@@ -420,7 +421,7 @@ void backend_set_graphite_variables(int *default_port,
/**
* Select Type
*
- * Select the backedn type based in the user input
+ * Select the backend type based in the user input
*
* @param type is the string that defines the backend type
*
@@ -455,7 +456,7 @@ BACKEND_TYPE backend_select_type(const char *type) {
/**
* Backend main
*
- * The main thread used to control the backedns.
+ * The main thread used to control the backends.
*
* @param ptr a pointer to netdata_static_structure.
*
@@ -517,7 +518,10 @@ void *backends_main(void *ptr) {
else
global_backend_options &= ~BACKEND_OPTION_SEND_NAMES;
- charts_pattern = simple_pattern_create(config_get(CONFIG_SECTION_BACKEND, "send charts matching", "*"), NULL, SIMPLE_PATTERN_EXACT);
+ charts_pattern = simple_pattern_create(
+ global_backend_send_charts_matching = config_get(CONFIG_SECTION_BACKEND, "send charts matching", "*"),
+ NULL,
+ SIMPLE_PATTERN_EXACT);
hosts_pattern = simple_pattern_create(config_get(CONFIG_SECTION_BACKEND, "send hosts matching", "localhost *"), NULL, SIMPLE_PATTERN_EXACT);
#if ENABLE_PROMETHEUS_REMOTE_WRITE
@@ -690,7 +694,7 @@ void *backends_main(void *ptr) {
rrddim_add(chart_latency, "latency", NULL, 1, 1000, RRD_ALGORITHM_ABSOLUTE);
*/
- RRDSET *chart_rusage = rrdset_create_localhost("netdata", "backend_thread_cpu", NULL, "backend", NULL, "NetData Backend Thread CPU usage", "milliseconds/s", "backends", NULL, 130630, global_backend_update_every, RRDSET_TYPE_STACKED);
+ RRDSET *chart_rusage = rrdset_create_localhost("netdata", "backend_thread_cpu", NULL, "backend", NULL, "Netdata Backend Thread CPU usage", "milliseconds/s", "backends", NULL, 130630, global_backend_update_every, RRDSET_TYPE_STACKED);
rrddim_add(chart_rusage, "user", NULL, 1, 1000, RRD_ALGORITHM_INCREMENTAL);
rrddim_add(chart_rusage, "system", NULL, 1, 1000, RRD_ALGORITHM_INCREMENTAL);