summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2023-04-25 12:44:18 -0700
committerGitHub <[email protected]>2023-04-25 12:44:18 -0700
commite4cb74896b01e96b5feb09b9bc906ae818b6ff5d (patch)
tree89967a72584361aa31111f729f545b59f9feadfe /node
parent8e6e4ede6d17d1cf3c012269ab29e1c58568476e (diff)
Central startup update (#1973)
* allow specifying authtoken in central startup * set allowManagedFrom * move redis_mem_notification to the correct place * add node checkins metric * wire up min/max connection pool size metrics
Diffstat (limited to 'node')
-rw-r--r--node/Metrics.cpp4
-rw-r--r--node/Metrics.hpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/node/Metrics.cpp b/node/Metrics.cpp
index 0fc4d176..a89954f5 100644
--- a/node/Metrics.cpp
+++ b/node/Metrics.cpp
@@ -52,10 +52,14 @@ namespace ZeroTier {
{ "controller_pgsql_member_notifications_received", "number of member change notifications received via pgsql NOTIFY" };
prometheus::simpleapi::counter_metric_t pgsql_net_notification
{ "controller_pgsql_network_notifications_received", "number of network change notifications received via pgsql NOTIFY" };
+ prometheus::simpleapi::counter_metric_t pgsql_node_checkin
+ { "controller_pgsql_node_checkin_count", "number of node check-ins (pgsql)" };
prometheus::simpleapi::counter_metric_t redis_mem_notification
{ "controller_redis_member_notifications_received", "number of member change notifications received via redis" };
prometheus::simpleapi::counter_metric_t redis_net_notification
{ "controller_redis_network_notifications_received", "number of network change notifications received via redis" };
+ prometheus::simpleapi::counter_metric_t redis_node_checkin
+ { "controller_redis_node_checkin_count", "number of node check-ins (redis)" };
// Central DB Pool Metrics
prometheus::simpleapi::counter_metric_t conn_counter
diff --git a/node/Metrics.hpp b/node/Metrics.hpp
index 28cbd599..9dd77017 100644
--- a/node/Metrics.hpp
+++ b/node/Metrics.hpp
@@ -40,8 +40,10 @@ namespace ZeroTier {
// Central Controller Metrics
extern prometheus::simpleapi::counter_metric_t pgsql_mem_notification;
extern prometheus::simpleapi::counter_metric_t pgsql_net_notification;
+ extern prometheus::simpleapi::counter_metric_t pgsql_node_checkin;
extern prometheus::simpleapi::counter_metric_t redis_mem_notification;
extern prometheus::simpleapi::counter_metric_t redis_net_notification;
+ extern prometheus::simpleapi::counter_metric_t redis_node_checkin;
// Central DB Pool Metrics
extern prometheus::simpleapi::counter_metric_t conn_counter;