dashboard: fix avg GC duration expression (#1228)

Previous expression was not correct.
This commit is contained in:
Roman Khavronenko 2021-04-19 11:28:41 +01:00 committed by GitHub
parent 90bba22c25
commit f80156d9df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3399,6 +3399,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$ds",
"description": "Shows avg GC duration",
"fieldConfig": {
"defaults": {
"custom": {},
@ -3440,10 +3441,10 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(go_gc_duration_seconds_sum{job=\"$job\", instance=\"$instance\"}[2m]))",
"expr": "sum(rate(go_gc_duration_seconds_sum{job=\"$job\", instance=\"$instance\"}[5m]))\n/\nsum(rate(go_gc_duration_seconds_count{job=\"$job\", instance=\"$instance\"}[5m]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "gc duration",
"legendFormat": "avg gc duration",
"refId": "A"
}
],