container stats: sample the ci runner's container
This commit is contained in:
parent
530137a7bb
commit
817c222951
1 changed files with 125 additions and 42 deletions
|
|
@ -909,8 +909,8 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "topk(10, sum by (agent) ({__name__=\"container.memory.usage\", hive=~\"$hive\", \"host.name\"=~\"$host\"}))",
|
||||
"legendFormat": "{{agent}}"
|
||||
"expr": "topk(10, sum by (\"container.name\") ({__name__=\"container.memory.usage\", hive=~\"$hive\", \"host.name\"=~\"$host\"}))",
|
||||
"legendFormat": "{{container.name}}"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
|
|
@ -965,8 +965,8 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "topk(10, sum by (agent) (rate({__name__=\"container.cpu.time\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])))",
|
||||
"legendFormat": "{{agent}}"
|
||||
"expr": "topk(10, sum by (\"container.name\") (rate({__name__=\"container.cpu.time\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])))",
|
||||
"legendFormat": "{{container.name}}"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue