Skip to content

Commit

Permalink
Fix incorrect Grafana CPU Usage panel
Browse files Browse the repository at this point in the history
(cherry picked from commit 719e11c)
  • Loading branch information
brandboat authored and bk201 committed Feb 12, 2025
1 parent 5477a35 commit 422e65f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/config/templates/rancherd-12-monitoring-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resources:
"steppedLine": false,
"targets": [
{
"expr": "topk(${count}, (avg(rate(kubevirt_vmi_vcpu_seconds_total[5m])) by (domain, name))) ",
"expr": "topk(${count}, (avg(rate(kubevirt_vmi_vcpu_seconds_total[5m])) by (domain, name)) / 1000)",
"instant": false,
"interval": "",
"legendFormat": "{{name}}",
Expand Down Expand Up @@ -124,7 +124,7 @@ resources:
"yaxes": [
{
"$$hashKey": "object:370",
"format": "percent",
"format": "percentunit",
"label": null,
"logBase": 1,
"max": null,
Expand Down Expand Up @@ -875,7 +875,7 @@ resources:
}
]
},
"unit": "percent"
"unit": "percentunit"
},
"overrides": []
},
Expand Down Expand Up @@ -903,7 +903,7 @@ resources:
"pluginVersion": "7.5.8",
"targets": [
{
"expr": "sum(avg(rate(kubevirt_vmi_vcpu_seconds_total{namespace=\"$namespace\", name=\"$vm\"}[5m])) by (domain, name))",
"expr": "sum(avg(rate(kubevirt_vmi_vcpu_seconds_total{namespace=\"$namespace\", name=\"$vm\"}[5m])) by (domain, name)) / 1000",
"format": "time_series",
"instant": false,
"interval": "",
Expand Down

0 comments on commit 422e65f

Please sign in to comment.