Skip to content

Commit

Permalink
Update queries to use $__rate_interval. Update dashboards to 30m defa…
Browse files Browse the repository at this point in the history
…ult timerange. (grafana#658)
  • Loading branch information
rgeyer authored Oct 1, 2021
1 parent 4e5e244 commit 9ef4764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ruby-mixin/dashboards/ruby-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@
"refId": "B"
},
{
"expr": "sum(rate(http_server_request_duration_seconds_sum{method=~\"$method\", path=~\"$path\"}[1m])) * 1e3 \n/\nsum(rate(http_server_request_duration_seconds_count{method=~\"$method\", path=~\"$path\"}[1m]))",
"interval": "1m",
"expr": "sum(rate(http_server_request_duration_seconds_sum{method=~\"$method\", path=~\"$path\"}[$__rate_interval])) * 1e3 \n/\nsum(rate(http_server_request_duration_seconds_count{method=~\"$method\", path=~\"$path\"}[$__rate_interval]))",
"interval": "",
"intervalFactor": 2,
"legendFormat": "Average",
"refId": "C"
Expand Down Expand Up @@ -419,7 +419,7 @@
]
},
"time": {
"from": "now-6h",
"from": "now-30m",
"to": "now"
},
"timepicker": {},
Expand Down

0 comments on commit 9ef4764

Please sign in to comment.