Skip to content

Commit

Permalink
Merge pull request #3243 from sysown/v2.1.0-3242
Browse files Browse the repository at this point in the history
Closes #3242: Make all Prometheus metrics 'promtool' complaint
  • Loading branch information
JavierJF authored Jan 11, 2021
2 parents da8979d + 6b873cb commit 718298f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions lib/MySQL_Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,19 +792,19 @@ th_metrics_map = std::make_tuple(
),
std::make_tuple (
p_th_counter::queries_with_max_lag_ms,
"proxysql_queries_with_max_lag_ms_total",
"proxysql_queries_with_max_lag_total",
"Received queries that have a 'max_lag' attribute.",
metric_tags {}
),
std::make_tuple (
p_th_counter::queries_with_max_lag_ms__delayed,
"proxysql_queries_with_max_lag_ms__delayed_total",
"proxysql_queries_with_max_lag__delayed_total",
"Query delayed because no connection was selected due to 'max_lag' annotation.",
metric_tags {}
),
std::make_tuple (
p_th_counter::queries_with_max_lag_ms__total_wait_time_us,
"proxysql_queries_with_max_lag_ms__total_wait_time_us_total",
"proxysql_queries_with_max_lag__total_wait_time_total",
"Total waited time due to connection selection because of 'max_lag' annotation.",
metric_tags {}
),
Expand All @@ -815,10 +815,9 @@ th_metrics_map = std::make_tuple(
metric_tags {}
),
std::make_tuple (
// TODO: Add meaningful HELP
p_th_counter::hostgroup_locked_set_cmds,
"proxysql_hostgroup_locked_set_cmds",
"",
"proxysql_hostgroup_locked_set_cmds_total",
"Total number of connections that have been locked in a hostgroup.",
metric_tags {}
),
std::make_tuple (
Expand Down
4 changes: 2 additions & 2 deletions lib/ProxySQL_Admin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ admin_metrics_map = std::make_tuple(
// stmt metrics
std::make_tuple (
p_admin_gauge::stmt_client_active_total,
"proxysql_stmt_client_active_total",
"proxysql_stmt_client_active",
"The total number of prepared statements that are in use by clients.",
metric_tags {}
),
Expand All @@ -740,7 +740,7 @@ admin_metrics_map = std::make_tuple(
),
std::make_tuple (
p_admin_gauge::stmt_server_active_total,
"proxysql_stmt_server_active_total",
"proxysql_stmt_server_active",
"The total number of prepared statements currently available across all backend connections.",
metric_tags {}
),
Expand Down

0 comments on commit 718298f

Please sign in to comment.