dashboard: plot avg GC duration instead of quantile 1 for better perception (#1229)

This commit is contained in:
Roman Khavronenko 2021-04-19 11:29:31 +01:00 committed by GitHub
parent 55b205ab37
commit 2b1f6b2373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2168,6 +2168,7 @@
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": "$ds", "datasource": "$ds",
"description": "Shows average GC duration by instance",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"links": [] "links": []
@ -2211,7 +2212,7 @@
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "max(go_gc_duration_seconds{job=~\"$job\", instance=~\"$instance\", quantile=\"1\"}) by(instance)", "expr": "sum(rate(go_gc_duration_seconds_sum{job=~\"$job\", instance=~\"$instance\"}[5m])) by(instance)\n/\nsum(rate(go_gc_duration_seconds_count{job=~\"$job\", instance=~\"$instance\"}[5m])) by(instance)",
"format": "time_series", "format": "time_series",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "{{instance}}", "legendFormat": "{{instance}}",