diff options
author | Vladimir Kobal <vlad@prokk.net> | 2022-02-17 13:49:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 14:49:01 +0300 |
commit | cc165dd6d836cd75631d261311bdb668f0f80185 (patch) | |
tree | d02f557f6b280cd4128a00d3d837661c83e68a3d /collectors/apps.plugin | |
parent | f68fa9eed3eec4e1f9ccd9525a22b5de46bf6534 (diff) |
Show the number of processes/threads for empty apps groups (#11834)
Diffstat (limited to 'collectors/apps.plugin')
-rw-r--r-- | collectors/apps.plugin/apps_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/apps.plugin/apps_plugin.c b/collectors/apps.plugin/apps_plugin.c index 5555f157bf..cf6770648a 100644 --- a/collectors/apps.plugin/apps_plugin.c +++ b/collectors/apps.plugin/apps_plugin.c @@ -3470,14 +3470,14 @@ static void send_collected_data_to_netdata(struct target *root, const char *type send_BEGIN(type, "threads", dt); for (w = root; w ; w = w->next) { - if(unlikely(w->exposed && w->processes)) + if(unlikely(w->exposed)) send_SET(w->name, w->num_threads); } send_END(); send_BEGIN(type, "processes", dt); for (w = root; w ; w = w->next) { - if(unlikely(w->exposed && w->processes)) + if(unlikely(w->exposed)) send_SET(w->name, w->processes); } send_END(); |