|
| 1 | +{ |
| 2 | + "uid": "monitor-dashboard", |
| 3 | + "title": "Monitor", |
| 4 | + "timezone": "browser", |
| 5 | + "schemaVersion": 39, |
| 6 | + "version": 1, |
| 7 | + "refresh": "10s", |
| 8 | + "panels": [ |
| 9 | + { |
| 10 | + "id": 1, |
| 11 | + "type": "timeseries", |
| 12 | + "title": "HIBP notify total requests (rate)", |
| 13 | + "gridPos": { "x": 0, "y": 0, "w": 24, "h": 8 }, |
| 14 | + "targets": [ |
| 15 | + { |
| 16 | + "refId": "A", |
| 17 | + "expr": "sum(rate(hibp_notify_requests_total[1m]))", |
| 18 | + "legendFormat": "requests/s" |
| 19 | + } |
| 20 | + ] |
| 21 | + }, |
| 22 | + { |
| 23 | + "id": 2, |
| 24 | + "type": "timeseries", |
| 25 | + "title": "HIBP notify failures (rate)", |
| 26 | + "gridPos": { "x": 0, "y": 8, "w": 24, "h": 8 }, |
| 27 | + "targets": [ |
| 28 | + { |
| 29 | + "refId": "B", |
| 30 | + "expr": "sum(rate(hibp_notify_request_failures_total[1m]))", |
| 31 | + "legendFormat": "failures/s" |
| 32 | + } |
| 33 | + ] |
| 34 | + }, |
| 35 | + { |
| 36 | + "id": 3, |
| 37 | + "type": "timeseries", |
| 38 | + "title": "HIBP notify failures by error (rate)", |
| 39 | + "gridPos": { "x": 0, "y": 16, "w": 24, "h": 10 }, |
| 40 | + "targets": [ |
| 41 | + { |
| 42 | + "refId": "C", |
| 43 | + "expr": "sum by (error) (rate(hibp_notify_request_failures_total[1m]))", |
| 44 | + "legendFormat": "{{error}}" |
| 45 | + } |
| 46 | + ] |
| 47 | + }, |
| 48 | + { |
| 49 | + "id": 4, |
| 50 | + "type": "barchart", |
| 51 | + "title": "Failures by error (increase, last 15m)", |
| 52 | + "gridPos": { "x": 0, "y": 26, "w": 12, "h": 8 }, |
| 53 | + "targets": [ |
| 54 | + { |
| 55 | + "refId": "D", |
| 56 | + "expr": "sum by (error) (increase(hibp_notify_request_failures_total[15m]))", |
| 57 | + "legendFormat": "{{error}}" |
| 58 | + } |
| 59 | + ] |
| 60 | + }, |
| 61 | + { |
| 62 | + "id": 5, |
| 63 | + "type": "stat", |
| 64 | + "title": "Failure rate %", |
| 65 | + "gridPos": { "x": 12, "y": 26, "w": 12, "h": 8 }, |
| 66 | + "targets": [ |
| 67 | + { |
| 68 | + "refId": "E", |
| 69 | + "expr": "100 * (sum(rate(hibp_notify_request_failures_total[5m])) / clamp_min(sum(rate(hibp_notify_requests_total[5m])), 1e-9))" |
| 70 | + } |
| 71 | + ], |
| 72 | + "options": { |
| 73 | + "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, |
| 74 | + "orientation": "horizontal", |
| 75 | + "textMode": "auto" |
| 76 | + } |
| 77 | + } |
| 78 | + ] |
| 79 | +} |
0 commit comments