|
2093 | 2093 | "title": "Container Restarts by container", |
2094 | 2094 | "type": "timeseries" |
2095 | 2095 | }, |
| 2096 | + { |
| 2097 | + "datasource": { |
| 2098 | + "type": "prometheus", |
| 2099 | + "uid": "${datasource}" |
| 2100 | + }, |
| 2101 | + "fieldConfig": { |
| 2102 | + "defaults": { |
| 2103 | + "color": { |
| 2104 | + "mode": "thresholds" |
| 2105 | + }, |
| 2106 | + "custom": { |
| 2107 | + "align": "auto", |
| 2108 | + "cellOptions": { |
| 2109 | + "type": "auto", |
| 2110 | + "wrapText": false |
| 2111 | + }, |
| 2112 | + "filterable": true, |
| 2113 | + "inspect": false |
| 2114 | + }, |
| 2115 | + "mappings": [], |
| 2116 | + "thresholds": { |
| 2117 | + "mode": "absolute", |
| 2118 | + "steps": [ |
| 2119 | + { |
| 2120 | + "color": "green", |
| 2121 | + "value": null |
| 2122 | + }, |
| 2123 | + { |
| 2124 | + "color": "#EAB839", |
| 2125 | + "value": 1 |
| 2126 | + }, |
| 2127 | + { |
| 2128 | + "color": "red", |
| 2129 | + "value": 5 |
| 2130 | + } |
| 2131 | + ] |
| 2132 | + } |
| 2133 | + }, |
| 2134 | + "overrides": [ |
| 2135 | + { |
| 2136 | + "matcher": { |
| 2137 | + "id": "byName", |
| 2138 | + "options": "reason" |
| 2139 | + }, |
| 2140 | + "properties": [ |
| 2141 | + { |
| 2142 | + "id": "custom.cellOptions", |
| 2143 | + "value": { |
| 2144 | + "type": "color-background" |
| 2145 | + } |
| 2146 | + }, |
| 2147 | + { |
| 2148 | + "id": "mappings", |
| 2149 | + "value": [ |
| 2150 | + { |
| 2151 | + "options": { |
| 2152 | + "CrashLoopBackOff": { |
| 2153 | + "color": "light-red", |
| 2154 | + "index": 0, |
| 2155 | + "text": "CrashLoopBackOff" |
| 2156 | + }, |
| 2157 | + "ErrImagePull": { |
| 2158 | + "color": "light-orange", |
| 2159 | + "index": 1, |
| 2160 | + "text": "ErrImagePull" |
| 2161 | + }, |
| 2162 | + "ImagePullBackOff": { |
| 2163 | + "color": "light-orange", |
| 2164 | + "index": 2, |
| 2165 | + "text": "ImagePullBackOff" |
| 2166 | + } |
| 2167 | + }, |
| 2168 | + "type": "value" |
| 2169 | + } |
| 2170 | + ] |
| 2171 | + } |
| 2172 | + ] |
| 2173 | + } |
| 2174 | + ] |
| 2175 | + }, |
| 2176 | + "gridPos": { |
| 2177 | + "h": 8, |
| 2178 | + "w": 12, |
| 2179 | + "x": 0, |
| 2180 | + "y": 47 |
| 2181 | + }, |
| 2182 | + "id": 63, |
| 2183 | + "options": { |
| 2184 | + "cellHeight": "sm", |
| 2185 | + "footer": { |
| 2186 | + "countRows": false, |
| 2187 | + "fields": "", |
| 2188 | + "reducer": [ |
| 2189 | + "sum" |
| 2190 | + ], |
| 2191 | + "show": false |
| 2192 | + }, |
| 2193 | + "showHeader": true |
| 2194 | + }, |
| 2195 | + "pluginVersion": "11.3.1", |
| 2196 | + "targets": [ |
| 2197 | + { |
| 2198 | + "datasource": { |
| 2199 | + "type": "prometheus", |
| 2200 | + "uid": "${datasource}" |
| 2201 | + }, |
| 2202 | + "editorMode": "code", |
| 2203 | + "exemplar": false, |
| 2204 | + "expr": "kube_pod_container_status_waiting_reason{reason=~\"ErrImagePull|ImagePullBackOff|CrashLoopBackOff\"} == 1", |
| 2205 | + "format": "table", |
| 2206 | + "instant": true, |
| 2207 | + "legendFormat": "__auto", |
| 2208 | + "range": false, |
| 2209 | + "refId": "A" |
| 2210 | + } |
| 2211 | + ], |
| 2212 | + "title": "Pods with Container Issues", |
| 2213 | + "transformations": [ |
| 2214 | + { |
| 2215 | + "id": "labelsToFields", |
| 2216 | + "options": { |
| 2217 | + "keepLabels": [ |
| 2218 | + "namespace", |
| 2219 | + "pod", |
| 2220 | + "reason", |
| 2221 | + "container" |
| 2222 | + ], |
| 2223 | + "mode": "columns" |
| 2224 | + } |
| 2225 | + }, |
| 2226 | + { |
| 2227 | + "id": "filterFieldsByName", |
| 2228 | + "options": { |
| 2229 | + "include": { |
| 2230 | + "names": [ |
| 2231 | + "namespace", |
| 2232 | + "pod", |
| 2233 | + "reason", |
| 2234 | + "container" |
| 2235 | + ] |
| 2236 | + } |
| 2237 | + } |
| 2238 | + }, |
| 2239 | + { |
| 2240 | + "id": "organize", |
| 2241 | + "options": { |
| 2242 | + "excludeByName": {}, |
| 2243 | + "includeByName": {}, |
| 2244 | + "indexByName": {}, |
| 2245 | + "renameByName": { |
| 2246 | + "container": "Container", |
| 2247 | + "namespace": "Namespace", |
| 2248 | + "pod": "Pod Name", |
| 2249 | + "reason": "Reason" |
| 2250 | + } |
| 2251 | + } |
| 2252 | + }, |
| 2253 | + { |
| 2254 | + "id": "sortBy", |
| 2255 | + "options": { |
| 2256 | + "fields": {}, |
| 2257 | + "sort": [ |
| 2258 | + { |
| 2259 | + "field": "Pod Name" |
| 2260 | + } |
| 2261 | + ] |
| 2262 | + } |
| 2263 | + } |
| 2264 | + ], |
| 2265 | + "type": "table" |
| 2266 | + }, |
| 2267 | + { |
| 2268 | + "datasource": { |
| 2269 | + "type": "prometheus", |
| 2270 | + "uid": "${datasource}" |
| 2271 | + }, |
| 2272 | + "fieldConfig": { |
| 2273 | + "defaults": { |
| 2274 | + "color": { |
| 2275 | + "mode": "thresholds" |
| 2276 | + }, |
| 2277 | + "custom": { |
| 2278 | + "align": "auto", |
| 2279 | + "cellOptions": { |
| 2280 | + "type": "auto", |
| 2281 | + "wrapText": false |
| 2282 | + }, |
| 2283 | + "filterable": true, |
| 2284 | + "inspect": false |
| 2285 | + }, |
| 2286 | + "mappings": [], |
| 2287 | + "thresholds": { |
| 2288 | + "mode": "absolute", |
| 2289 | + "steps": [ |
| 2290 | + { |
| 2291 | + "color": "green", |
| 2292 | + "value": null |
| 2293 | + }, |
| 2294 | + { |
| 2295 | + "color": "#EAB839", |
| 2296 | + "value": 1 |
| 2297 | + }, |
| 2298 | + { |
| 2299 | + "color": "red", |
| 2300 | + "value": 5 |
| 2301 | + } |
| 2302 | + ] |
| 2303 | + } |
| 2304 | + }, |
| 2305 | + "overrides": [ |
| 2306 | + { |
| 2307 | + "matcher": { |
| 2308 | + "id": "byName", |
| 2309 | + "options": "condition" |
| 2310 | + }, |
| 2311 | + "properties": [ |
| 2312 | + { |
| 2313 | + "id": "custom.cellOptions", |
| 2314 | + "value": { |
| 2315 | + "type": "color-background" |
| 2316 | + } |
| 2317 | + }, |
| 2318 | + { |
| 2319 | + "id": "mappings", |
| 2320 | + "value": [ |
| 2321 | + { |
| 2322 | + "options": { |
| 2323 | + "false": { |
| 2324 | + "color": "light-red", |
| 2325 | + "index": 0, |
| 2326 | + "text": "False" |
| 2327 | + } |
| 2328 | + }, |
| 2329 | + "type": "value" |
| 2330 | + } |
| 2331 | + ] |
| 2332 | + }, |
| 2333 | + { |
| 2334 | + "id": "custom.width", |
| 2335 | + "value": 104 |
| 2336 | + } |
| 2337 | + ] |
| 2338 | + } |
| 2339 | + ] |
| 2340 | + }, |
| 2341 | + "gridPos": { |
| 2342 | + "h": 8, |
| 2343 | + "w": 12, |
| 2344 | + "x": 12, |
| 2345 | + "y": 47 |
| 2346 | + }, |
| 2347 | + "id": 64, |
| 2348 | + "options": { |
| 2349 | + "cellHeight": "sm", |
| 2350 | + "footer": { |
| 2351 | + "countRows": false, |
| 2352 | + "fields": "", |
| 2353 | + "reducer": [ |
| 2354 | + "sum" |
| 2355 | + ], |
| 2356 | + "show": false |
| 2357 | + }, |
| 2358 | + "showHeader": true, |
| 2359 | + "sortBy": [] |
| 2360 | + }, |
| 2361 | + "pluginVersion": "11.3.1", |
| 2362 | + "targets": [ |
| 2363 | + { |
| 2364 | + "datasource": { |
| 2365 | + "type": "prometheus", |
| 2366 | + "uid": "${datasource}" |
| 2367 | + }, |
| 2368 | + "editorMode": "code", |
| 2369 | + "exemplar": false, |
| 2370 | + "expr": "kube_pod_status_scheduled{condition=\"false\"} == 1", |
| 2371 | + "format": "table", |
| 2372 | + "instant": true, |
| 2373 | + "legendFormat": "__auto", |
| 2374 | + "range": false, |
| 2375 | + "refId": "A" |
| 2376 | + } |
| 2377 | + ], |
| 2378 | + "title": "Unscheduled Pods", |
| 2379 | + "transformations": [ |
| 2380 | + { |
| 2381 | + "id": "labelsToFields", |
| 2382 | + "options": { |
| 2383 | + "keepLabels": [ |
| 2384 | + "namespace", |
| 2385 | + "pod", |
| 2386 | + "reason", |
| 2387 | + "container" |
| 2388 | + ], |
| 2389 | + "mode": "columns" |
| 2390 | + } |
| 2391 | + }, |
| 2392 | + { |
| 2393 | + "id": "filterFieldsByName", |
| 2394 | + "options": { |
| 2395 | + "include": { |
| 2396 | + "names": [ |
| 2397 | + "container", |
| 2398 | + "namespace", |
| 2399 | + "pod", |
| 2400 | + "condition" |
| 2401 | + ] |
| 2402 | + } |
| 2403 | + } |
| 2404 | + }, |
| 2405 | + { |
| 2406 | + "id": "organize", |
| 2407 | + "options": { |
| 2408 | + "excludeByName": {}, |
| 2409 | + "includeByName": {}, |
| 2410 | + "indexByName": { |
| 2411 | + "condition": 3, |
| 2412 | + "container": 0, |
| 2413 | + "namespace": 1, |
| 2414 | + "pod": 2 |
| 2415 | + }, |
| 2416 | + "renameByName": { |
| 2417 | + "condition": "Condition", |
| 2418 | + "container": "Container", |
| 2419 | + "namespace": "Namespace", |
| 2420 | + "pod": "Pod Name" |
| 2421 | + } |
| 2422 | + } |
| 2423 | + } |
| 2424 | + ], |
| 2425 | + "type": "table" |
| 2426 | + }, |
2096 | 2427 | { |
2097 | 2428 | "collapsed": false, |
2098 | 2429 | "datasource": { |
|
2103 | 2434 | "h": 1, |
2104 | 2435 | "w": 24, |
2105 | 2436 | "x": 0, |
2106 | | - "y": 47 |
| 2437 | + "y": 55 |
2107 | 2438 | }, |
2108 | 2439 | "id": 45, |
2109 | 2440 | "panels": [], |
|
2184 | 2515 | "h": 8, |
2185 | 2516 | "w": 12, |
2186 | 2517 | "x": 0, |
2187 | | - "y": 48 |
| 2518 | + "y": 56 |
2188 | 2519 | }, |
2189 | 2520 | "id": 31, |
2190 | 2521 | "options": { |
|
2292 | 2623 | "h": 8, |
2293 | 2624 | "w": 12, |
2294 | 2625 | "x": 12, |
2295 | | - "y": 48 |
| 2626 | + "y": 56 |
2296 | 2627 | }, |
2297 | 2628 | "id": 34, |
2298 | 2629 | "options": { |
|
2400 | 2731 | "h": 8, |
2401 | 2732 | "w": 12, |
2402 | 2733 | "x": 0, |
2403 | | - "y": 56 |
| 2734 | + "y": 64 |
2404 | 2735 | }, |
2405 | 2736 | "id": 36, |
2406 | 2737 | "options": { |
|
2508 | 2839 | "h": 8, |
2509 | 2840 | "w": 12, |
2510 | 2841 | "x": 12, |
2511 | | - "y": 56 |
| 2842 | + "y": 64 |
2512 | 2843 | }, |
2513 | 2844 | "id": 37, |
2514 | 2845 | "options": { |
|
0 commit comments