Skip to content

Commit

Permalink
Fix metrics query (#1375)
Browse files Browse the repository at this point in the history
* fix: metrics query

* update rate interval
  • Loading branch information
YiniXu9506 authored Jul 27, 2022
1 parent 01b5b58 commit acf3146
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const monitoringItems = [
queries: [
{
query:
'sum(rate(tidb_server_get_token_duration_seconds_sum{sql_type="general"}[$__rate_interval])) / sum(rate(tidb_server_get_token_duration_seconds_count{sql_type="general"}[$__rate_interval]))',
'sum(rate(tidb_server_get_token_duration_seconds_sum[$__rate_interval])) / sum(rate(tidb_server_get_token_duration_seconds_count[$__rate_interval]))',
name: 'avg'
},
{
Expand Down

0 comments on commit acf3146

Please sign in to comment.