|
17 | 17 | "editable": true, |
18 | 18 | "gnetId": null, |
19 | 19 | "graphTooltip": 0, |
20 | | - "id": 3, |
21 | | - "iteration": 1529658438657, |
| 20 | + "id": 2, |
| 21 | + "iteration": 1531746409662, |
22 | 22 | "links": [], |
23 | 23 | "panels": [ |
24 | 24 | { |
|
32 | 32 | "title": "Basic Information", |
33 | 33 | "type": "row" |
34 | 34 | }, |
| 35 | + { |
| 36 | + "aliasColors": {}, |
| 37 | + "bars": false, |
| 38 | + "dashLength": 10, |
| 39 | + "dashes": false, |
| 40 | + "datasource": "prometheus", |
| 41 | + "decimals": null, |
| 42 | + "description": "Amount of jobs of different states over time among the inspected cluster.", |
| 43 | + "fill": 1, |
| 44 | + "gridPos": { |
| 45 | + "h": 7, |
| 46 | + "w": 16, |
| 47 | + "x": 0, |
| 48 | + "y": 1 |
| 49 | + }, |
| 50 | + "id": 23, |
| 51 | + "interval": "5s", |
| 52 | + "legend": { |
| 53 | + "alignAsTable": true, |
| 54 | + "avg": true, |
| 55 | + "current": true, |
| 56 | + "max": true, |
| 57 | + "min": true, |
| 58 | + "rightSide": true, |
| 59 | + "show": true, |
| 60 | + "total": false, |
| 61 | + "values": true |
| 62 | + }, |
| 63 | + "lines": true, |
| 64 | + "linewidth": 1, |
| 65 | + "links": [], |
| 66 | + "nullPointMode": "null", |
| 67 | + "percentage": false, |
| 68 | + "pointradius": 5, |
| 69 | + "points": false, |
| 70 | + "renderer": "flot", |
| 71 | + "seriesOverrides": [], |
| 72 | + "spaceLength": 10, |
| 73 | + "stack": false, |
| 74 | + "steppedLine": false, |
| 75 | + "targets": [ |
| 76 | + { |
| 77 | + "$$hashKey": "object:3933", |
| 78 | + "expr": "job_active_current_count{cluster='[[cluster]]'}", |
| 79 | + "format": "time_series", |
| 80 | + "hide": false, |
| 81 | + "instant": false, |
| 82 | + "interval": "5s", |
| 83 | + "intervalFactor": 1, |
| 84 | + "legendFormat": "{{state}}", |
| 85 | + "refId": "B" |
| 86 | + } |
| 87 | + ], |
| 88 | + "thresholds": [], |
| 89 | + "timeFrom": null, |
| 90 | + "timeShift": null, |
| 91 | + "title": "Job Count", |
| 92 | + "tooltip": { |
| 93 | + "shared": true, |
| 94 | + "sort": 0, |
| 95 | + "value_type": "individual" |
| 96 | + }, |
| 97 | + "type": "graph", |
| 98 | + "xaxis": { |
| 99 | + "buckets": null, |
| 100 | + "mode": "time", |
| 101 | + "name": null, |
| 102 | + "show": true, |
| 103 | + "values": [] |
| 104 | + }, |
| 105 | + "yaxes": [ |
| 106 | + { |
| 107 | + "$$hashKey": "object:3961", |
| 108 | + "decimals": 0, |
| 109 | + "format": "short", |
| 110 | + "label": "Jobs", |
| 111 | + "logBase": 1, |
| 112 | + "max": null, |
| 113 | + "min": null, |
| 114 | + "show": true |
| 115 | + }, |
| 116 | + { |
| 117 | + "$$hashKey": "object:3962", |
| 118 | + "format": "short", |
| 119 | + "label": null, |
| 120 | + "logBase": 1, |
| 121 | + "max": null, |
| 122 | + "min": null, |
| 123 | + "show": true |
| 124 | + } |
| 125 | + ], |
| 126 | + "yaxis": { |
| 127 | + "align": false, |
| 128 | + "alignLevel": null |
| 129 | + } |
| 130 | + }, |
35 | 131 | { |
36 | 132 | "cacheTimeout": null, |
37 | 133 | "colorBackground": false, |
|
53 | 149 | }, |
54 | 150 | "gridPos": { |
55 | 151 | "h": 7, |
56 | | - "w": 3, |
57 | | - "x": 0, |
| 152 | + "w": 2, |
| 153 | + "x": 16, |
58 | 154 | "y": 1 |
59 | 155 | }, |
60 | 156 | "id": 6, |
|
116 | 212 | "valueName": "avg" |
117 | 213 | }, |
118 | 214 | { |
119 | | - "aliasColors": {}, |
120 | | - "bars": false, |
121 | | - "dashLength": 10, |
122 | | - "dashes": false, |
123 | | - "datasource": "prometheus", |
124 | | - "decimals": null, |
125 | | - "description": "Amount of jobs of different states over time among the inspected cluster.", |
126 | | - "fill": 1, |
| 215 | + "columns": [], |
| 216 | + "datasource": "infrabox", |
| 217 | + "description": "List of the node_name referenced by the job table for this cluster.\n\nIf the Node has never been associated to any job, it can't be seen.", |
| 218 | + "fontSize": "100%", |
127 | 219 | "gridPos": { |
128 | 220 | "h": 7, |
129 | | - "w": 21, |
130 | | - "x": 3, |
| 221 | + "w": 6, |
| 222 | + "x": 18, |
131 | 223 | "y": 1 |
132 | 224 | }, |
133 | | - "id": 23, |
134 | | - "interval": "5s", |
135 | | - "legend": { |
136 | | - "alignAsTable": true, |
137 | | - "avg": true, |
138 | | - "current": true, |
139 | | - "max": true, |
140 | | - "min": true, |
141 | | - "rightSide": true, |
142 | | - "show": true, |
143 | | - "total": false, |
144 | | - "values": true |
145 | | - }, |
146 | | - "lines": true, |
147 | | - "linewidth": 1, |
| 225 | + "id": 25, |
148 | 226 | "links": [], |
149 | | - "nullPointMode": "null", |
150 | | - "percentage": false, |
151 | | - "pointradius": 5, |
152 | | - "points": false, |
153 | | - "renderer": "flot", |
154 | | - "seriesOverrides": [], |
155 | | - "spaceLength": 10, |
156 | | - "stack": false, |
157 | | - "steppedLine": false, |
158 | | - "targets": [ |
159 | | - { |
160 | | - "$$hashKey": "object:3933", |
161 | | - "expr": "job_current_count{cluster='[[cluster]]'}", |
162 | | - "format": "time_series", |
163 | | - "hide": false, |
164 | | - "instant": false, |
165 | | - "interval": "5s", |
166 | | - "intervalFactor": 1, |
167 | | - "legendFormat": "{{state}}", |
168 | | - "refId": "B" |
169 | | - } |
170 | | - ], |
171 | | - "thresholds": [], |
172 | | - "timeFrom": null, |
173 | | - "timeShift": null, |
174 | | - "title": "Job Count", |
175 | | - "tooltip": { |
176 | | - "shared": true, |
177 | | - "sort": 0, |
178 | | - "value_type": "individual" |
179 | | - }, |
180 | | - "type": "graph", |
181 | | - "xaxis": { |
182 | | - "buckets": null, |
183 | | - "mode": "time", |
184 | | - "name": null, |
185 | | - "show": true, |
186 | | - "values": [] |
| 227 | + "pageSize": null, |
| 228 | + "scroll": true, |
| 229 | + "showHeader": true, |
| 230 | + "sort": { |
| 231 | + "col": 0, |
| 232 | + "desc": true |
187 | 233 | }, |
188 | | - "yaxes": [ |
| 234 | + "styles": [ |
| 235 | + { |
| 236 | + "$$hashKey": "object:535", |
| 237 | + "alias": "Node", |
| 238 | + "colorMode": null, |
| 239 | + "colors": [ |
| 240 | + "rgba(245, 54, 54, 0.9)", |
| 241 | + "rgba(237, 129, 40, 0.89)", |
| 242 | + "rgba(50, 172, 45, 0.97)" |
| 243 | + ], |
| 244 | + "dateFormat": "YYYY-MM-DD HH:mm:ss", |
| 245 | + "decimals": 2, |
| 246 | + "link": true, |
| 247 | + "linkTooltip": "Inspect", |
| 248 | + "linkUrl": "d/09c0DMdiz/node-inspector?orgId=1&var-node_name=${__cell}", |
| 249 | + "mappingType": 1, |
| 250 | + "pattern": "node_name", |
| 251 | + "thresholds": [], |
| 252 | + "type": "string", |
| 253 | + "unit": "short" |
| 254 | + }, |
189 | 255 | { |
190 | | - "$$hashKey": "object:3961", |
| 256 | + "$$hashKey": "object:565", |
| 257 | + "alias": "Running Jobs", |
| 258 | + "colorMode": null, |
| 259 | + "colors": [ |
| 260 | + "rgba(245, 54, 54, 0.9)", |
| 261 | + "rgba(237, 129, 40, 0.89)", |
| 262 | + "rgba(50, 172, 45, 0.97)" |
| 263 | + ], |
| 264 | + "dateFormat": "YYYY-MM-DD HH:mm:ss", |
191 | 265 | "decimals": 0, |
192 | | - "format": "short", |
193 | | - "label": "Jobs", |
194 | | - "logBase": 1, |
195 | | - "max": null, |
196 | | - "min": null, |
197 | | - "show": true |
198 | | - }, |
| 266 | + "mappingType": 1, |
| 267 | + "pattern": "count", |
| 268 | + "thresholds": [], |
| 269 | + "type": "number", |
| 270 | + "unit": "short" |
| 271 | + } |
| 272 | + ], |
| 273 | + "targets": [ |
199 | 274 | { |
200 | | - "$$hashKey": "object:3962", |
201 | | - "format": "short", |
202 | | - "label": null, |
203 | | - "logBase": 1, |
204 | | - "max": null, |
205 | | - "min": null, |
206 | | - "show": true |
| 275 | + "$$hashKey": "object:282", |
| 276 | + "alias": "", |
| 277 | + "format": "table", |
| 278 | + "hide": false, |
| 279 | + "rawSql": "SELECT node_name, count(id) FILTER(WHERE state = 'running') FROM job WHERE node_name is not null AND cluster_name = '[[cluster]]' GROUP BY node_name", |
| 280 | + "refId": "A" |
207 | 281 | } |
208 | 282 | ], |
209 | | - "yaxis": { |
210 | | - "align": false, |
211 | | - "alignLevel": null |
212 | | - } |
| 283 | + "title": "Node List", |
| 284 | + "transform": "table", |
| 285 | + "type": "table" |
213 | 286 | }, |
214 | 287 | { |
215 | 288 | "collapsed": false, |
|
753 | 826 | "list": [ |
754 | 827 | { |
755 | 828 | "allValue": null, |
756 | | - "current": { |
757 | | - "tags": [], |
758 | | - "text": "calico", |
759 | | - "value": "calico" |
760 | | - }, |
761 | 829 | "datasource": "infrabox", |
762 | 830 | "hide": 0, |
763 | 831 | "includeAll": false, |
764 | 832 | "label": "Inspected Cluster", |
765 | 833 | "multi": false, |
766 | 834 | "name": "cluster", |
767 | | - "options": [ |
768 | | - { |
769 | | - "$$hashKey": "object:3892", |
770 | | - "selected": true, |
771 | | - "text": "calico", |
772 | | - "value": "calico" |
773 | | - }, |
774 | | - { |
775 | | - "$$hashKey": "object:3893", |
776 | | - "selected": false, |
777 | | - "text": "master", |
778 | | - "value": "master" |
779 | | - } |
780 | | - ], |
| 835 | + "options": [], |
781 | 836 | "query": "select distinct name from cluster", |
782 | | - "refresh": 0, |
| 837 | + "refresh": 1, |
783 | 838 | "regex": "", |
784 | 839 | "sort": 0, |
785 | 840 | "tagValuesQuery": "", |
|
0 commit comments