|
801 | 801 | "disableTextWrap": false,
|
802 | 802 | "editorMode": "code",
|
803 | 803 | "exemplar": false,
|
804 |
| - "expr": "kube_pod_created{pod!~\".*cronjob.*\"} * 1000", |
| 804 | + "expr": "kube_pod_created * 1000", |
805 | 805 | "format": "table",
|
806 | 806 | "fullMetaSearch": false,
|
807 | 807 | "hide": false,
|
|
883 | 883 | ]
|
884 | 884 | }
|
885 | 885 | }
|
| 886 | + }, |
| 887 | + { |
| 888 | + "id": "filterByValue", |
| 889 | + "options": { |
| 890 | + "filters": [ |
| 891 | + { |
| 892 | + "config": { |
| 893 | + "id": "isNull", |
| 894 | + "options": {} |
| 895 | + }, |
| 896 | + "fieldName": "Value #CPU Usage" |
| 897 | + } |
| 898 | + ], |
| 899 | + "match": "any", |
| 900 | + "type": "exclude" |
| 901 | + } |
886 | 902 | }
|
887 | 903 | ],
|
888 | 904 | "type": "table"
|
|
1117 | 1133 | }
|
1118 | 1134 | },
|
1119 | 1135 | "fieldName": "last termination reason"
|
| 1136 | + }, |
| 1137 | + { |
| 1138 | + "config": { |
| 1139 | + "id": "isNotNull", |
| 1140 | + "options": {} |
| 1141 | + }, |
| 1142 | + "fieldName": "last termination reason" |
1120 | 1143 | }
|
1121 | 1144 | ],
|
1122 | 1145 | "match": "all",
|
|
1183 | 1206 | "mode": "absolute",
|
1184 | 1207 | "steps": [
|
1185 | 1208 | {
|
1186 |
| - "color": "green" |
| 1209 | + "color": "green", |
| 1210 | + "value": null |
1187 | 1211 | },
|
1188 | 1212 | {
|
1189 | 1213 | "color": "red",
|
|
1277 | 1301 | "mode": "absolute",
|
1278 | 1302 | "steps": [
|
1279 | 1303 | {
|
1280 |
| - "color": "green" |
| 1304 | + "color": "green", |
| 1305 | + "value": null |
1281 | 1306 | },
|
1282 | 1307 | {
|
1283 | 1308 | "color": "red",
|
|
1371 | 1396 | "mode": "absolute",
|
1372 | 1397 | "steps": [
|
1373 | 1398 | {
|
1374 |
| - "color": "green" |
| 1399 | + "color": "green", |
| 1400 | + "value": null |
1375 | 1401 | },
|
1376 | 1402 | {
|
1377 | 1403 | "color": "red",
|
|
1394 | 1420 | "calcs": [],
|
1395 | 1421 | "displayMode": "list",
|
1396 | 1422 | "placement": "bottom",
|
1397 |
| - "showLegend": true |
| 1423 | + "showLegend": false |
1398 | 1424 | },
|
1399 | 1425 | "tooltip": {
|
1400 | 1426 | "mode": "single",
|
|
1408 | 1434 | "uid": "${datasource}"
|
1409 | 1435 | },
|
1410 | 1436 | "editorMode": "code",
|
1411 |
| - "expr": "(kube_pod_container_status_restarts_total - kube_pod_container_status_restarts_total offset 10m >= 1) and ignoring (reason) min_over_time(kube_pod_container_status_last_terminated_reason{reason=\"OOMKilled\"}[10m]) == 1", |
| 1437 | + "expr": "(kube_pod_container_status_restarts_total - kube_pod_container_status_restarts_total offset 10m >= 1) and ignoring (reason) min_over_time(kube_pod_container_status_last_terminated_reason{reason=\"OOMKilled\"}[10m]) == 1 OR on() vector(0)", |
1412 | 1438 | "instant": false,
|
1413 | 1439 | "legendFormat": "{{pod}}",
|
1414 | 1440 | "range": true,
|
|
1417 | 1443 | ],
|
1418 | 1444 | "title": "OOMKilled events",
|
1419 | 1445 | "type": "timeseries"
|
| 1446 | + }, |
| 1447 | + { |
| 1448 | + "datasource": { |
| 1449 | + "type": "prometheus", |
| 1450 | + "uid": "$datasource" |
| 1451 | + }, |
| 1452 | + "fieldConfig": { |
| 1453 | + "defaults": { |
| 1454 | + "color": { |
| 1455 | + "mode": "palette-classic" |
| 1456 | + }, |
| 1457 | + "custom": { |
| 1458 | + "axisBorderShow": false, |
| 1459 | + "axisCenteredZero": false, |
| 1460 | + "axisColorMode": "text", |
| 1461 | + "axisLabel": "", |
| 1462 | + "axisPlacement": "auto", |
| 1463 | + "barAlignment": 0, |
| 1464 | + "drawStyle": "line", |
| 1465 | + "fillOpacity": 0, |
| 1466 | + "gradientMode": "none", |
| 1467 | + "hideFrom": { |
| 1468 | + "legend": false, |
| 1469 | + "tooltip": false, |
| 1470 | + "viz": false |
| 1471 | + }, |
| 1472 | + "insertNulls": false, |
| 1473 | + "lineInterpolation": "linear", |
| 1474 | + "lineWidth": 1, |
| 1475 | + "pointSize": 5, |
| 1476 | + "scaleDistribution": { |
| 1477 | + "type": "linear" |
| 1478 | + }, |
| 1479 | + "showPoints": "auto", |
| 1480 | + "spanNulls": false, |
| 1481 | + "stacking": { |
| 1482 | + "group": "A", |
| 1483 | + "mode": "none" |
| 1484 | + }, |
| 1485 | + "thresholdsStyle": { |
| 1486 | + "mode": "off" |
| 1487 | + } |
| 1488 | + }, |
| 1489 | + "mappings": [], |
| 1490 | + "thresholds": { |
| 1491 | + "mode": "absolute", |
| 1492 | + "steps": [ |
| 1493 | + { |
| 1494 | + "color": "green", |
| 1495 | + "value": null |
| 1496 | + }, |
| 1497 | + { |
| 1498 | + "color": "red", |
| 1499 | + "value": 80 |
| 1500 | + } |
| 1501 | + ] |
| 1502 | + } |
| 1503 | + }, |
| 1504 | + "overrides": [] |
| 1505 | + }, |
| 1506 | + "gridPos": { |
| 1507 | + "h": 8, |
| 1508 | + "w": 12, |
| 1509 | + "x": 12, |
| 1510 | + "y": 33 |
| 1511 | + }, |
| 1512 | + "id": 53, |
| 1513 | + "options": { |
| 1514 | + "legend": { |
| 1515 | + "calcs": [], |
| 1516 | + "displayMode": "list", |
| 1517 | + "placement": "bottom", |
| 1518 | + "showLegend": false |
| 1519 | + }, |
| 1520 | + "tooltip": { |
| 1521 | + "mode": "single", |
| 1522 | + "sort": "none" |
| 1523 | + } |
| 1524 | + }, |
| 1525 | + "targets": [ |
| 1526 | + { |
| 1527 | + "datasource": { |
| 1528 | + "type": "prometheus", |
| 1529 | + "uid": "${datasource}" |
| 1530 | + }, |
| 1531 | + "editorMode": "code", |
| 1532 | + "expr": "(kube_pod_container_status_restarts_total - kube_pod_container_status_restarts_total offset 10m >= 1) and ignoring (reason) min_over_time(kube_pod_container_status_last_terminated_reason{reason=\"Error\"}[10m]) == 1 OR on() vector(0)", |
| 1533 | + "instant": false, |
| 1534 | + "legendFormat": "{{pod}}", |
| 1535 | + "range": true, |
| 1536 | + "refId": "A" |
| 1537 | + } |
| 1538 | + ], |
| 1539 | + "title": "Error events", |
| 1540 | + "type": "timeseries" |
1420 | 1541 | }
|
1421 | 1542 | ],
|
1422 | 1543 | "title": "Detailed infos",
|
|
0 commit comments