|
| 1 | +{ |
| 2 | + "title": "StellarEscrow Cost Overview", |
| 3 | + "uid": "stellar-escrow-cost", |
| 4 | + "schemaVersion": 38, |
| 5 | + "version": 1, |
| 6 | + "refresh": "1h", |
| 7 | + "time": { "from": "now-30d", "to": "now" }, |
| 8 | + "panels": [ |
| 9 | + { |
| 10 | + "id": 1, |
| 11 | + "title": "Estimated Monthly Spend (USD)", |
| 12 | + "type": "stat", |
| 13 | + "gridPos": { "x": 0, "y": 0, "w": 6, "h": 4 }, |
| 14 | + "targets": [{ "expr": "stellar_escrow_estimated_monthly_cost_usd", "legendFormat": "USD" }], |
| 15 | + "fieldConfig": { |
| 16 | + "defaults": { |
| 17 | + "unit": "currencyUSD", |
| 18 | + "thresholds": { |
| 19 | + "steps": [ |
| 20 | + { "color": "green", "value": 0 }, |
| 21 | + { "color": "yellow", "value": 120 }, |
| 22 | + { "color": "red", "value": 150 } |
| 23 | + ] |
| 24 | + } |
| 25 | + } |
| 26 | + } |
| 27 | + }, |
| 28 | + { |
| 29 | + "id": 2, |
| 30 | + "title": "Budget Utilisation (%)", |
| 31 | + "type": "gauge", |
| 32 | + "gridPos": { "x": 6, "y": 0, "w": 6, "h": 4 }, |
| 33 | + "targets": [{ |
| 34 | + "expr": "stellar_escrow_estimated_monthly_cost_usd / stellar_escrow_monthly_budget_usd * 100", |
| 35 | + "legendFormat": "% of budget" |
| 36 | + }], |
| 37 | + "fieldConfig": { |
| 38 | + "defaults": { |
| 39 | + "unit": "percent", "min": 0, "max": 100, |
| 40 | + "thresholds": { |
| 41 | + "steps": [ |
| 42 | + { "color": "green", "value": 0 }, |
| 43 | + { "color": "yellow", "value": 80 }, |
| 44 | + { "color": "red", "value": 100 } |
| 45 | + ] |
| 46 | + } |
| 47 | + } |
| 48 | + } |
| 49 | + }, |
| 50 | + { |
| 51 | + "id": 3, |
| 52 | + "title": "Compute Cost (USD)", |
| 53 | + "type": "stat", |
| 54 | + "gridPos": { "x": 12, "y": 0, "w": 4, "h": 4 }, |
| 55 | + "targets": [{ "expr": "stellar_escrow_compute_cost_usd", "legendFormat": "Compute" }], |
| 56 | + "fieldConfig": { "defaults": { "unit": "currencyUSD" } } |
| 57 | + }, |
| 58 | + { |
| 59 | + "id": 4, |
| 60 | + "title": "Database Cost (USD)", |
| 61 | + "type": "stat", |
| 62 | + "gridPos": { "x": 16, "y": 0, "w": 4, "h": 4 }, |
| 63 | + "targets": [{ "expr": "stellar_escrow_database_cost_usd", "legendFormat": "Database" }], |
| 64 | + "fieldConfig": { "defaults": { "unit": "currencyUSD" } } |
| 65 | + }, |
| 66 | + { |
| 67 | + "id": 5, |
| 68 | + "title": "Networking Cost (USD)", |
| 69 | + "type": "stat", |
| 70 | + "gridPos": { "x": 20, "y": 0, "w": 4, "h": 4 }, |
| 71 | + "targets": [{ "expr": "stellar_escrow_networking_cost_usd", "legendFormat": "Networking" }], |
| 72 | + "fieldConfig": { "defaults": { "unit": "currencyUSD" } } |
| 73 | + }, |
| 74 | + { |
| 75 | + "id": 6, |
| 76 | + "title": "Cost Breakdown by Service", |
| 77 | + "type": "piechart", |
| 78 | + "gridPos": { "x": 0, "y": 4, "w": 10, "h": 8 }, |
| 79 | + "targets": [ |
| 80 | + { "expr": "stellar_escrow_compute_cost_usd", "legendFormat": "Compute" }, |
| 81 | + { "expr": "stellar_escrow_database_cost_usd", "legendFormat": "Database" }, |
| 82 | + { "expr": "stellar_escrow_networking_cost_usd", "legendFormat": "Networking" }, |
| 83 | + { "expr": "stellar_escrow_storage_cost_usd", "legendFormat": "Storage" } |
| 84 | + ] |
| 85 | + }, |
| 86 | + { |
| 87 | + "id": 7, |
| 88 | + "title": "Estimated Spend Over Time", |
| 89 | + "type": "timeseries", |
| 90 | + "gridPos": { "x": 10, "y": 4, "w": 14, "h": 8 }, |
| 91 | + "targets": [ |
| 92 | + { "expr": "stellar_escrow_estimated_monthly_cost_usd", "legendFormat": "Total" }, |
| 93 | + { "expr": "stellar_escrow_monthly_budget_usd", "legendFormat": "Budget" } |
| 94 | + ], |
| 95 | + "fieldConfig": { "defaults": { "unit": "currencyUSD" } } |
| 96 | + }, |
| 97 | + { |
| 98 | + "id": 8, |
| 99 | + "title": "Resource Utilisation — CPU (%)", |
| 100 | + "type": "timeseries", |
| 101 | + "gridPos": { "x": 0, "y": 12, "w": 12, "h": 6 }, |
| 102 | + "targets": [{ |
| 103 | + "expr": "100 - (avg by(instance) (rate(node_cpu_seconds_total{mode='idle'}[5m])) * 100)", |
| 104 | + "legendFormat": "CPU {{ instance }}" |
| 105 | + }], |
| 106 | + "fieldConfig": { "defaults": { "unit": "percent" } } |
| 107 | + }, |
| 108 | + { |
| 109 | + "id": 9, |
| 110 | + "title": "Resource Utilisation — Memory (%)", |
| 111 | + "type": "timeseries", |
| 112 | + "gridPos": { "x": 12, "y": 12, "w": 12, "h": 6 }, |
| 113 | + "targets": [{ |
| 114 | + "expr": "(1 - node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) * 100", |
| 115 | + "legendFormat": "Memory {{ instance }}" |
| 116 | + }], |
| 117 | + "fieldConfig": { "defaults": { "unit": "percent" } } |
| 118 | + } |
| 119 | + ] |
| 120 | +} |
0 commit comments