forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquota-dashboard.json
More file actions
92 lines (92 loc) · 2.26 KB
/
Copy pathquota-dashboard.json
File metadata and controls
92 lines (92 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"id": 1,
"title": "Kubernetes Resource Quota Enforcement Dashboard",
"panels": [
{
"id": 1,
"title": "CPU Request Quota Usage by Namespace",
"type": "bargauge",
"targets": [
{
"expr": "sort_desc(namespace:cpu_request_quota_used_pct)",
"legendFormat": "{{ namespace }}"
}
],
"thresholds": [
{ "value": 70, "color": "yellow" },
{ "value": 90, "color": "red" }
]
},
{
"id": 2,
"title": "Memory Request Quota Usage by Namespace",
"type": "bargauge",
"targets": [
{
"expr": "sort_desc(namespace:memory_request_quota_used_pct)",
"legendFormat": "{{ namespace }}"
}
],
"thresholds": [
{ "value": 70, "color": "yellow" },
{ "value": 90, "color": "red" }
]
},
{
"id": 3,
"title": "Pod Count Quota Usage by Namespace",
"type": "bargauge",
"targets": [
{
"expr": "sort_desc(namespace:pod_count_quota_used_pct)",
"legendFormat": "{{ namespace }}"
}
],
"thresholds": [
{ "value": 70, "color": "yellow" },
{ "value": 90, "color": "red" }
]
},
{
"id": 4,
"title": "Storage Quota Usage by Namespace",
"type": "bargauge",
"targets": [
{
"expr": "sort_desc(namespace:storage_quota_used_pct)",
"legendFormat": "{{ namespace }}"
}
],
"thresholds": [
{ "value": 70, "color": "yellow" },
{ "value": 90, "color": "red" }
]
},
{
"id": 5,
"title": "Quota Utilization Over Time",
"type": "timeseries",
"targets": [
{
"expr": "namespace:cpu_request_quota_used_pct",
"legendFormat": "CPU — {{ namespace }}"
},
{
"expr": "namespace:memory_request_quota_used_pct",
"legendFormat": "Memory — {{ namespace }}"
}
]
},
{
"id": 6,
"title": "Quota Violation Events",
"type": "table",
"targets": [
{
"expr": "kube_resourcequota{type=\"used\"} > kube_resourcequota{type=\"hard\"}",
"legendFormat": "{{ namespace }}: {{ resource }}"
}
]
}
]
}