Skip to content

Commit

Permalink
fix dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Jan 7, 2025
1 parent 2cf4fda commit 0c7446b
Showing 1 changed file with 30 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,9 @@ providers:
"exemplar": true,
"expr": "sum(\n agent_host_monitoring_cpu{cpuUsage=\"cpuUsage\", cluster=\"$cluster\"}\n) / count(\n count by (instance) (\n agent_host_monitoring_cpu{cpuUsage=\"cpuUsage\", cluster=\"$cluster\"}\n )\n)",
"interval": "",
"legendFormat": "Real-Time",
"legendFormat": "CPU Usage",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_15\", cluster=\"$cluster\"}\n) / count(\n count by (instance) (\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_15\", cluster=\"$cluster\"}\n )\n)",
"hide": false,
"legendFormat": "Per 15 Min",
"range": true,
"refId": "B"
}
],
"title": "Global CPU Usage",
Expand Down Expand Up @@ -346,14 +334,40 @@ providers:
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(\n agent_host_monitoring_cpu{cpuUsage=\"cpuUsage\", cluster=\"$cluster\"}\n) / count(\n count by (instance) (\n agent_host_monitoring_cpu{cpuUsage=\"cpuUsage\", cluster=\"$cluster\"}\n )\n)",
"expr": "sum(\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_1\", cluster=\"$cluster\"}\n) / count(\n count by (instance) (\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_1\", cluster=\"$cluster\"}\n )\n)",
"interval": "",
"legendFormat": "Average",
"legendFormat": "Min_1",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "uid4prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_5\", cluster=\"$cluster\"}\n) / count(\n count by (instance) (\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_5\", cluster=\"$cluster\"}\n )\n)",
"interval": "",
"legendFormat": "Min_5",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "uid4prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_15\", cluster=\"$cluster\"}\n) / count(\n count by (instance) (\n agent_host_monitoring_cpu{cpuUsage=\"cpuLoadAvgMin_15\", cluster=\"$cluster\"}\n )\n)",
"interval": "",
"legendFormat": "Min_15",
"range": true,
"refId": "C"
}
],
"title": "CPU Usage",
"title": "CPU LoadAvg",
"type": "stat"
},
{
Expand Down

0 comments on commit 0c7446b

Please sign in to comment.