summaryrefslogtreecommitdiffstats
path: root/aclk/aclk_stats.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-01 06:15:11 +0000
commit483926a283e118590da3f9ecfa75a8a4d62143ce (patch)
treecb77052778df9a128a8cd3ff5bf7645322a13bc5 /aclk/aclk_stats.h
parentReleasing debian version 1.31.0-4. (diff)
downloadnetdata-483926a283e118590da3f9ecfa75a8a4d62143ce.tar.xz
netdata-483926a283e118590da3f9ecfa75a8a4d62143ce.zip
Merging upstream version 1.32.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'aclk/aclk_stats.h')
-rw-r--r--aclk/aclk_stats.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/aclk/aclk_stats.h b/aclk/aclk_stats.h
index 33d016965..317a34ba4 100644
--- a/aclk/aclk_stats.h
+++ b/aclk/aclk_stats.h
@@ -3,7 +3,7 @@
#ifndef NETDATA_ACLK_STATS_H
#define NETDATA_ACLK_STATS_H
-#include "../daemon/common.h"
+#include "daemon/common.h"
#include "libnetdata/libnetdata.h"
#define ACLK_STATS_THREAD_NAME "ACLK_Stats"
@@ -13,7 +13,10 @@ extern netdata_mutex_t aclk_stats_mutex;
#define ACLK_STATS_LOCK netdata_mutex_lock(&aclk_stats_mutex)
#define ACLK_STATS_UNLOCK netdata_mutex_unlock(&aclk_stats_mutex)
-extern int aclk_stats_enabled;
+// if you change update `cloud_req_http_type_names`.
+#define ACLK_STATS_CLOUD_HTTP_REQ_TYPE_CNT 7
+
+int aclk_cloud_req_http_type_to_idx(const char *name);
struct aclk_stats_thread {
netdata_thread_t *thread;
@@ -45,6 +48,19 @@ extern struct aclk_metrics_per_sample {
volatile uint32_t cloud_req_recvd;
volatile uint32_t cloud_req_err;
+ // request types.
+ volatile uint32_t cloud_req_type_http;
+ volatile uint32_t cloud_req_type_alarm_upd;
+ volatile uint32_t cloud_req_type_metadata_info;
+ volatile uint32_t cloud_req_type_metadata_alarms;
+ volatile uint32_t cloud_req_type_chart_new;
+ volatile uint32_t cloud_req_type_chart_del;
+ volatile uint32_t cloud_req_type_register_node;
+ volatile uint32_t cloud_req_type_node_upd;
+
+ // HTTP-specific request types.
+ volatile uint32_t cloud_req_http_by_type[ACLK_STATS_CLOUD_HTTP_REQ_TYPE_CNT];
+
volatile uint32_t cloud_q_process_total;
volatile uint32_t cloud_q_process_count;
volatile uint32_t cloud_q_process_max;