Added missing already defined metric to map and added new one

pull/2676/head
Javier Jaramago Fernández 6 years ago
parent d511d6adcf
commit f3c4fb648e

@ -291,6 +291,7 @@ struct p_hg_counter {
access_denied_max_user_connections,
myhgm_myconnpool_get,
myhgm_myconnpool_get_ok,
myhgm_myconnpool_get_ping,
myhgm_myconnpool_push,
myhgm_myconnpool_reset,
myhgm_myconnpool_destroy,

@ -1083,6 +1083,12 @@ hg_metrics_map = std::make_tuple(
"Total queries backend INIT DB.",
metric_tags {}
),
std::make_tuple (
p_hg_counter::com_backend_set_names,
"proxysql_com_backend_set_names",
"Total queries backend SET NAMES.",
metric_tags {}
),
std::make_tuple (
p_hg_counter::com_frontend_init_db,
"proxysql_com_frontend_init_db",
@ -1149,6 +1155,12 @@ hg_metrics_map = std::make_tuple(
"The number of successful requests to the connection pool (i.e. where a connection was available).",
metric_tags {}
),
std::make_tuple (
p_hg_counter::myhgm_myconnpool_get_ping,
"proxysql_myhgm_myconnpool_get_ping",
"The number of connections that were taken from the pool to run a ping to keep them alive.",
metric_tags {}
),
std::make_tuple (
p_hg_counter::myhgm_myconnpool_push,
"proxysql_myhgm_myconnpool_push",

Loading…
Cancel
Save