diff --git a/include/MySQL_HostGroups_Manager.h b/include/MySQL_HostGroups_Manager.h index 5279dad7e..854198ed9 100644 --- a/include/MySQL_HostGroups_Manager.h +++ b/include/MySQL_HostGroups_Manager.h @@ -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, diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index dd983039f..5924b8232 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -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",