diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-01-12 15:23:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-12 15:23:46 +0300 |
commit | 1671c8ea9404f358f58e48645b9f722d7c93e1c3 (patch) | |
tree | 6a7747ccb5cbece5eba7724191836bdc4cea34d9 | |
parent | bd1eaca48699e37ab5cb1ca594b49d79a8c8e98d (diff) |
fix(nfacct.plugin): Netfilter accounting charts priority (#11952)
-rw-r--r-- | collectors/nfacct.plugin/plugin_nfacct.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/collectors/nfacct.plugin/plugin_nfacct.c b/collectors/nfacct.plugin/plugin_nfacct.c index 7876c231f2..da0d1dfd6d 100644 --- a/collectors/nfacct.plugin/plugin_nfacct.c +++ b/collectors/nfacct.plugin/plugin_nfacct.c @@ -690,7 +690,11 @@ static void nfacct_send_metrics() { if(likely(d->updated)) { if(unlikely(!d->packets_dimension_added)) { d->packets_dimension_added = 1; - printf("CHART netfilter.nfacct_packets '' 'Netfilter Accounting Packets' 'packets/s'\n"); + printf( + "CHART netfilter.nfacct_packets '' 'Netfilter Accounting Packets' 'packets/s' 'nfacct' '' stacked %d %d %s\n", + NETDATA_CHART_PRIO_NETFILTER_PACKETS, + nfacct_root.update_every, + PLUGIN_NFACCT_NAME); printf("DIMENSION %s '' incremental 1 %d\n", d->name, nfacct_root.update_every); } } @@ -721,7 +725,11 @@ static void nfacct_send_metrics() { if(likely(d->updated)) { if(unlikely(!d->bytes_dimension_added)) { d->bytes_dimension_added = 1; - printf("CHART netfilter.nfacct_bytes '' 'Netfilter Accounting Bandwidth' 'kilobytes/s'\n"); + printf( + "CHART netfilter.nfacct_bytes '' 'Netfilter Accounting Bandwidth' 'kilobytes/s' 'nfacct' '' stacked %d %d %s\n", + NETDATA_CHART_PRIO_NETFILTER_BYTES, + nfacct_root.update_every, + PLUGIN_NFACCT_NAME); printf("DIMENSION %s '' incremental 1 %d\n", d->name, 1000 * nfacct_root.update_every); } } |