update netdata internal metrics ctx (#19239)
Ilya Mashchenko committed
Dec 17, 2024 at 17:04 UTC
9f6ab18301bb9c510e50148ae9a2264c11b210f3
4 files changed
+16
-16
src/collectors/statsd.plugin/statsd.c
+3
-3
@@ -2770,7 +2770,7 @@ void *statsd_main(void *ptr) {
2770
"tcp_connects",
2771
NULL,
2772
"statsd",
2773
- NULL,
2773
+ "netdata.statsd_tcp_connects",
2774
"statsd server TCP connects and disconnects",
2775
"events",
2776
PLUGIN_STATSD_NAME,
@@ -2786,7 +2786,7 @@ void *statsd_main(void *ptr) {
2786
"tcp_connected",
2787
NULL,
2788
"statsd",
2789
- NULL,
2789
+ "netdata.statsd_tcp_connected",
2790
"statsd server TCP connected sockets",
2791
"sockets",
2792
PLUGIN_STATSD_NAME,
@@ -2801,7 +2801,7 @@ void *statsd_main(void *ptr) {
2801
"private_charts",
2802
NULL,
2803
"statsd",
2804
- NULL,
2804
+ "netdata.statsd_private_charts",
2805
"Private metric charts created by the netdata statsd server",
2806
"charts",
2807
PLUGIN_STATSD_NAME,
src/daemon/pulse/pulse-http-api.c
+5
-5
@@ -89,7 +89,7 @@ void pulse_web_do(bool extended) {
89
, "clients"
90
, NULL
91
, "HTTP API"
92
- , NULL
92
+ , "netdata.http_api_clients"
93
, "Netdata Web API Clients"
94
, "connected clients"
95
, "netdata"
@@ -118,7 +118,7 @@ void pulse_web_do(bool extended) {
118
, "requests"
119
, NULL
120
, "HTTP API"
121
- , NULL
121
+ , "netdata.http_api_requests"
122
, "Netdata Web API Requests Received"
123
, "requests/s"
124
, "netdata"
@@ -148,7 +148,7 @@ void pulse_web_do(bool extended) {
148
, "net"
149
, NULL
150
, "HTTP API"
151
- , NULL
151
+ , "netdata.http_api_traffic"
152
, "Netdata Web API Network Traffic"
153
, "kilobits/s"
154
, "netdata"
@@ -183,7 +183,7 @@ void pulse_web_do(bool extended) {
183
, "response_time"
184
, NULL
185
, "HTTP API"
186
- , NULL
186
+ , "netdata.http_api_response_time"
187
, "Netdata Web API Response Time"
188
, "milliseconds/request"
189
, "netdata"
@@ -237,7 +237,7 @@ void pulse_web_do(bool extended) {
237
, "compression_ratio"
238
, NULL
239
, "HTTP API"
240
- , NULL
240
+ , "netdata.http_api_compression_ratio"
241
, "Netdata Web API Responses Compression Savings Ratio"
242
, "percentage"
243
, "netdata"
src/daemon/pulse/pulse-queries.c
+1
-1
@@ -155,7 +155,7 @@ void pulse_queries_do(bool extended __maybe_unused) {
155
, "queries"
156
, NULL
157
, "Time-Series Queries"
158
- , NULL
158
+ , "netdata.db_queries"
159
, "Netdata Time-Series DB Queries"
160
, "queries/s"
161
, "netdata"
src/ml/ad_charts.cc
+7
-7
@@ -21,7 +21,7 @@ void ml_update_dimensions_chart(ml_host_t *host, const ml_machine_learning_stats
21
id_buf,
22
name_buf, // name
23
NETDATA_ML_CHART_FAMILY, // family
24
- "netdata.machine_learning_status", // ctx
24
+ "netdata.ml_status", // ctx
25
"Machine learning status", // title
26
"dimensions", // units
27
NETDATA_ML_PLUGIN, // plugin
@@ -63,7 +63,7 @@ void ml_update_dimensions_chart(ml_host_t *host, const ml_machine_learning_stats
63
id_buf, // id
64
name_buf, // name
65
NETDATA_ML_CHART_FAMILY, // family
66
- "netdata.metric_types", // ctx
66
+ "netdata.ml_metric_types", // ctx
67
"Dimensions by metric type", // title
68
"dimensions", // units
69
NETDATA_ML_PLUGIN, // plugin
@@ -105,7 +105,7 @@ void ml_update_dimensions_chart(ml_host_t *host, const ml_machine_learning_stats
105
id_buf, // id
106
name_buf, // name
107
NETDATA_ML_CHART_FAMILY, // family
108
- "netdata.training_status", // ctx
108
+ "netdata.ml_training_status", // ctx
109
"Training status of dimensions", // title
110
"dimensions", // units
111
NETDATA_ML_PLUGIN, // plugin
@@ -418,7 +418,7 @@ void ml_update_training_statistics_chart(ml_worker_t *worker, const ml_queue_sta
418
id_buf, // id
419
name_buf, // name
420
NETDATA_ML_CHART_FAMILY, // family
421
- "netdata.queue_ops", // ctx
421
+ "netdata.ml_queue_ops", // ctx
422
"Training queue operations", // title
423
"count", // units
424
NETDATA_ML_PLUGIN, // plugin
@@ -468,7 +468,7 @@ void ml_update_training_statistics_chart(ml_worker_t *worker, const ml_queue_sta
468
id_buf, // id
469
name_buf, // name
470
NETDATA_ML_CHART_FAMILY, // family
471
- "netdata.queue_size", // ctx
471
+ "netdata.ml_queue_size", // ctx
472
"Training queue size", // title
473
"count", // units
474
NETDATA_ML_PLUGIN, // plugin
@@ -507,7 +507,7 @@ void ml_update_training_statistics_chart(ml_worker_t *worker, const ml_queue_sta
507
id_buf, // id
508
name_buf, // name
509
NETDATA_ML_CHART_FAMILY, // family
510
- "netdata.training_time_stats", // ctx
510
+ "netdata.ml_training_time_stats", // ctx
511
"Training time stats", // title
512
"microseconds", // units
513
NETDATA_ML_PLUGIN, // plugin
@@ -553,7 +553,7 @@ void ml_update_training_statistics_chart(ml_worker_t *worker, const ml_queue_sta
553
id_buf, // id
554
name_buf, // name
555
NETDATA_ML_CHART_FAMILY, // family
556
- "netdata.training_results", // ctx
556
+ "netdata.ml_training_results", // ctx
557
"Training results", // title
558
"events", // units
559
NETDATA_ML_PLUGIN, // plugin