diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-02-11 13:24:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-11 13:24:24 +0200 |
commit | 2f6f8155dba6951256f5f8e080aafca6e6836dfc (patch) | |
tree | c51efa2bbbc77a8dabc4dbb99ff8725d262b75a1 /web | |
parent | cbe45897dec5d4013c4e8228ddad715f5366d8c6 (diff) |
Add message queue statistics (#5115)
* Add IPC message queue charts
* Add obsolete flag for dimensions
* Delete obsolete dimensions from memory
* Remove files for obsolete dimensions, filter requests
* Make empty charts obsolete
* Minimize obsolete dimension checks
* Limit the number of dimensions in memory
* Remove obsolete dimensions on netdata exit
* Update documentation
* Move flag to the end
* Fix typo
* Fix typo
Diffstat (limited to 'web')
-rw-r--r-- | web/api/exporters/shell/allmetrics_shell.c | 4 | ||||
-rw-r--r-- | web/api/formatters/rrdset2json.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/api/exporters/shell/allmetrics_shell.c b/web/api/exporters/shell/allmetrics_shell.c index e380deec4b..9a18b92dce 100644 --- a/web/api/exporters/shell/allmetrics_shell.c +++ b/web/api/exporters/shell/allmetrics_shell.c @@ -39,7 +39,7 @@ void rrd_stats_api_v1_charts_allmetrics_shell(RRDHOST *host, BUFFER *wb) { // for each dimension RRDDIM *rd; rrddim_foreach_read(rd, st) { - if(rd->collections_counter) { + if(rd->collections_counter && !rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE)) { char dimension[SHELL_ELEMENT_MAX + 1]; shell_name_copy(dimension, rd->name?rd->name:rd->id, SHELL_ELEMENT_MAX); @@ -126,7 +126,7 @@ void rrd_stats_api_v1_charts_allmetrics_json(RRDHOST *host, BUFFER *wb) { // for each dimension RRDDIM *rd; rrddim_foreach_read(rd, st) { - if(rd->collections_counter) { + if(rd->collections_counter && !rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE)) { buffer_sprintf(wb, "%s\n" "\t\t\t\"%s\": {\n" diff --git a/web/api/formatters/rrdset2json.c b/web/api/formatters/rrdset2json.c index 6d57e34cfa..b1971e2a04 100644 --- a/web/api/formatters/rrdset2json.c +++ b/web/api/formatters/rrdset2json.c @@ -51,7 +51,7 @@ void rrdset2json(RRDSET *st, BUFFER *wb, size_t *dimensions_count, size_t *memor size_t dimensions = 0; RRDDIM *rd; rrddim_foreach_read(rd, st) { - if(rrddim_flag_check(rd, RRDDIM_FLAG_HIDDEN)) continue; + if(rrddim_flag_check(rd, RRDDIM_FLAG_HIDDEN) || rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE)) continue; memory += rd->memsize; |