|
1741 | 1741 | "viz": false |
1742 | 1742 | }, |
1743 | 1743 | "insertNulls": false, |
1744 | | - "lineInterpolation": "smooth", |
| 1744 | + "lineInterpolation": "linear", |
1745 | 1745 | "lineWidth": 1, |
1746 | 1746 | "pointSize": 5, |
1747 | 1747 | "scaleDistribution": { |
|
1790 | 1790 | "showLegend": true |
1791 | 1791 | }, |
1792 | 1792 | "tooltip": { |
1793 | | - "hideZeros": false, |
1794 | 1793 | "mode": "single", |
1795 | 1794 | "sort": "none" |
1796 | 1795 | } |
1797 | 1796 | }, |
1798 | | - "pluginVersion": "11.6.0-83314", |
| 1797 | + "pluginVersion": "10.1.1", |
1799 | 1798 | "targets": [ |
1800 | 1799 | { |
1801 | 1800 | "datasource": { |
1802 | 1801 | "type": "prometheus", |
1803 | 1802 | "uid": "prometheus" |
1804 | 1803 | }, |
1805 | | - "disableTextWrap": false, |
1806 | 1804 | "editorMode": "code", |
1807 | | - "expr": "sum(rate(kube_pod_container_status_last_terminated_reason{pod=~\"(proxy|shards)-.*\"}[1m])) by (pod, reason)", |
1808 | | - "fullMetaSearch": false, |
1809 | | - "includeNullMetadata": true, |
| 1805 | + "expr": "sum(rate(kube_pod_container_status_last_terminated_reason[1m])) by (pod, reason)", |
| 1806 | + "hide": false, |
1810 | 1807 | "instant": false, |
1811 | | - "legendFormat": "__auto", |
| 1808 | + "legendFormat": "{{pod}} - {{reason}}", |
1812 | 1809 | "range": true, |
1813 | | - "refId": "A", |
1814 | | - "useBackend": false |
| 1810 | + "refId": "B" |
1815 | 1811 | } |
1816 | 1812 | ], |
1817 | 1813 | "title": "Container termination", |
| 1814 | + "transformations": [], |
1818 | 1815 | "type": "timeseries" |
1819 | 1816 | }, |
1820 | 1817 | { |
|
1907 | 1904 | }, |
1908 | 1905 | "disableTextWrap": false, |
1909 | 1906 | "editorMode": "code", |
1910 | | - "expr": "sum(rate(container_memory_failures_total{pod=~\"(proxy|shards)-.*\"}[60s])) by (pod, failure_type)", |
| 1907 | + "expr": "sum by(pod, failure_type) (rate(container_memory_failures_total{pod=~\"(proxy|shards)-.*\", failure_type!=\"pgfault\"}[60s]))", |
1911 | 1908 | "fullMetaSearch": false, |
1912 | 1909 | "includeNullMetadata": true, |
1913 | 1910 | "instant": false, |
|
1925 | 1922 | "type": "prometheus", |
1926 | 1923 | "uid": "prometheus" |
1927 | 1924 | }, |
| 1925 | + "description": "Some useful codes to remember:\n137 - SIGKILL - can happen on OOMs\n143 - SIGTERM", |
1928 | 1926 | "fieldConfig": { |
1929 | 1927 | "defaults": { |
1930 | 1928 | "color": { |
|
1974 | 1972 | "value": 80 |
1975 | 1973 | } |
1976 | 1974 | ] |
1977 | | - }, |
1978 | | - "unit": "none" |
| 1975 | + } |
1979 | 1976 | }, |
1980 | 1977 | "overrides": [] |
1981 | 1978 | }, |
|
1985 | 1982 | "x": 12, |
1986 | 1983 | "y": 75 |
1987 | 1984 | }, |
1988 | | - "id": 41, |
| 1985 | + "id": 46, |
1989 | 1986 | "options": { |
1990 | 1987 | "legend": { |
1991 | 1988 | "calcs": [], |
|
1999 | 1996 | "sort": "none" |
2000 | 1997 | } |
2001 | 1998 | }, |
2002 | | - "pluginVersion": "11.6.0-83314", |
| 1999 | + "pluginVersion": "10.1.1", |
2003 | 2000 | "targets": [ |
2004 | 2001 | { |
2005 | 2002 | "datasource": { |
2006 | 2003 | "type": "prometheus", |
2007 | 2004 | "uid": "prometheus" |
2008 | 2005 | }, |
2009 | | - "editorMode": "code", |
2010 | | - "expr": "sum(rate(container_fs_reads_total{container=\"linera-server\"}[60s])) by (pod)", |
| 2006 | + "disableTextWrap": false, |
| 2007 | + "editorMode": "builder", |
| 2008 | + "expr": "kube_pod_container_status_last_terminated_exitcode", |
| 2009 | + "fullMetaSearch": false, |
| 2010 | + "includeNullMetadata": true, |
2011 | 2011 | "instant": false, |
2012 | 2012 | "legendFormat": "{{pod}}", |
2013 | 2013 | "range": true, |
2014 | | - "refId": "A" |
2015 | | - }, |
2016 | | - { |
2017 | | - "datasource": { |
2018 | | - "type": "prometheus", |
2019 | | - "uid": "prometheus" |
2020 | | - }, |
2021 | | - "editorMode": "code", |
2022 | | - "expr": "sum(rate(container_fs_reads_total{container=\"linera-server\"}[60s]))", |
2023 | | - "hide": false, |
2024 | | - "instant": false, |
2025 | | - "legendFormat": "Total", |
2026 | | - "range": true, |
2027 | | - "refId": "B" |
| 2014 | + "refId": "A", |
| 2015 | + "useBackend": false |
2028 | 2016 | } |
2029 | 2017 | ], |
2030 | | - "title": "Shards FS reads per second", |
| 2018 | + "title": "Container termination exit code", |
2031 | 2019 | "type": "timeseries" |
2032 | 2020 | }, |
2033 | 2021 | { |
|
2205 | 2193 | "x": 12, |
2206 | 2194 | "y": 83 |
2207 | 2195 | }, |
2208 | | - "id": 31, |
| 2196 | + "id": 41, |
2209 | 2197 | "options": { |
2210 | 2198 | "legend": { |
2211 | 2199 | "calcs": [], |
|
2227 | 2215 | "uid": "prometheus" |
2228 | 2216 | }, |
2229 | 2217 | "editorMode": "code", |
2230 | | - "expr": "sum(rate(container_fs_writes_total{container=\"linera-server\"}[60s])) by (pod)", |
| 2218 | + "expr": "sum(rate(container_fs_reads_total{container=\"linera-server\"}[60s])) by (pod)", |
2231 | 2219 | "instant": false, |
2232 | 2220 | "legendFormat": "{{pod}}", |
2233 | 2221 | "range": true, |
|
2239 | 2227 | "uid": "prometheus" |
2240 | 2228 | }, |
2241 | 2229 | "editorMode": "code", |
2242 | | - "expr": "sum(rate(container_fs_writes_total{container=\"linera-server\"}[60s]))", |
| 2230 | + "expr": "sum(rate(container_fs_reads_total{container=\"linera-server\"}[60s]))", |
2243 | 2231 | "hide": false, |
2244 | 2232 | "instant": false, |
2245 | 2233 | "legendFormat": "Total", |
2246 | 2234 | "range": true, |
2247 | 2235 | "refId": "B" |
2248 | 2236 | } |
2249 | 2237 | ], |
2250 | | - "title": "Shards FS writes per second", |
| 2238 | + "title": "Shards FS reads per second", |
2251 | 2239 | "type": "timeseries" |
2252 | 2240 | }, |
2253 | 2241 | { |
|
2360 | 2348 | "title": "Shards FS written bytes per second", |
2361 | 2349 | "type": "timeseries" |
2362 | 2350 | }, |
| 2351 | + { |
| 2352 | + "datasource": { |
| 2353 | + "type": "prometheus", |
| 2354 | + "uid": "prometheus" |
| 2355 | + }, |
| 2356 | + "fieldConfig": { |
| 2357 | + "defaults": { |
| 2358 | + "color": { |
| 2359 | + "mode": "palette-classic" |
| 2360 | + }, |
| 2361 | + "custom": { |
| 2362 | + "axisCenteredZero": false, |
| 2363 | + "axisColorMode": "text", |
| 2364 | + "axisLabel": "", |
| 2365 | + "axisPlacement": "auto", |
| 2366 | + "barAlignment": 0, |
| 2367 | + "drawStyle": "line", |
| 2368 | + "fillOpacity": 0, |
| 2369 | + "gradientMode": "none", |
| 2370 | + "hideFrom": { |
| 2371 | + "legend": false, |
| 2372 | + "tooltip": false, |
| 2373 | + "viz": false |
| 2374 | + }, |
| 2375 | + "insertNulls": false, |
| 2376 | + "lineInterpolation": "smooth", |
| 2377 | + "lineWidth": 1, |
| 2378 | + "pointSize": 5, |
| 2379 | + "scaleDistribution": { |
| 2380 | + "type": "linear" |
| 2381 | + }, |
| 2382 | + "showPoints": "auto", |
| 2383 | + "spanNulls": false, |
| 2384 | + "stacking": { |
| 2385 | + "group": "A", |
| 2386 | + "mode": "none" |
| 2387 | + }, |
| 2388 | + "thresholdsStyle": { |
| 2389 | + "mode": "off" |
| 2390 | + } |
| 2391 | + }, |
| 2392 | + "mappings": [], |
| 2393 | + "thresholds": { |
| 2394 | + "mode": "absolute", |
| 2395 | + "steps": [ |
| 2396 | + { |
| 2397 | + "color": "green", |
| 2398 | + "value": null |
| 2399 | + }, |
| 2400 | + { |
| 2401 | + "color": "red", |
| 2402 | + "value": 80 |
| 2403 | + } |
| 2404 | + ] |
| 2405 | + }, |
| 2406 | + "unit": "none" |
| 2407 | + }, |
| 2408 | + "overrides": [] |
| 2409 | + }, |
| 2410 | + "gridPos": { |
| 2411 | + "h": 8, |
| 2412 | + "w": 12, |
| 2413 | + "x": 12, |
| 2414 | + "y": 91 |
| 2415 | + }, |
| 2416 | + "id": 31, |
| 2417 | + "options": { |
| 2418 | + "legend": { |
| 2419 | + "calcs": [], |
| 2420 | + "displayMode": "list", |
| 2421 | + "placement": "bottom", |
| 2422 | + "showLegend": true |
| 2423 | + }, |
| 2424 | + "tooltip": { |
| 2425 | + "hideZeros": false, |
| 2426 | + "mode": "single", |
| 2427 | + "sort": "none" |
| 2428 | + } |
| 2429 | + }, |
| 2430 | + "pluginVersion": "11.6.0-83314", |
| 2431 | + "targets": [ |
| 2432 | + { |
| 2433 | + "datasource": { |
| 2434 | + "type": "prometheus", |
| 2435 | + "uid": "prometheus" |
| 2436 | + }, |
| 2437 | + "editorMode": "code", |
| 2438 | + "expr": "sum(rate(container_fs_writes_total{container=\"linera-server\"}[60s])) by (pod)", |
| 2439 | + "instant": false, |
| 2440 | + "legendFormat": "{{pod}}", |
| 2441 | + "range": true, |
| 2442 | + "refId": "A" |
| 2443 | + }, |
| 2444 | + { |
| 2445 | + "datasource": { |
| 2446 | + "type": "prometheus", |
| 2447 | + "uid": "prometheus" |
| 2448 | + }, |
| 2449 | + "editorMode": "code", |
| 2450 | + "expr": "sum(rate(container_fs_writes_total{container=\"linera-server\"}[60s]))", |
| 2451 | + "hide": false, |
| 2452 | + "instant": false, |
| 2453 | + "legendFormat": "Total", |
| 2454 | + "range": true, |
| 2455 | + "refId": "B" |
| 2456 | + } |
| 2457 | + ], |
| 2458 | + "title": "Shards FS writes per second", |
| 2459 | + "type": "timeseries" |
| 2460 | + }, |
2363 | 2461 | { |
2364 | 2462 | "collapsed": false, |
2365 | 2463 | "gridPos": { |
|
0 commit comments