From fd204637a5efc13dfc64ea9bb51ac5d989cce5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Fri, 15 May 2020 15:39:12 +0200 Subject: [PATCH] Fixes #2801: Updated prometheus map to contain missing entry 'p_hg_dyn_counter::proxysql_mysql_error' --- lib/MySQL_HostGroups_Manager.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 980664e3c..4c04b0b7c 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -1237,8 +1237,14 @@ hg_metrics_map = std::make_tuple( ), // mysql_error std::make_tuple ( - p_hg_dyn_counter::mysql_error, + p_hg_dyn_counter::proxysql_mysql_error, "proxysql_mysql_error", + "Tracks the mysql errors generated by proxysql, identifying them by: hostgroup + hostname + port + error_code.", + metric_tags {} + ), + std::make_tuple ( + p_hg_dyn_counter::mysql_error, + "mysql_error", "Tracks the mysql errors encountered, identifying them by: hostgroup + hostname + port + error_code.", metric_tags {} )