From 0ef36aec363172642d96915b325fc876d614ccb1 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 2 May 2026 20:20:18 +0000 Subject: [PATCH] Revert "monitoring(wealth): milestone annotations on every timeseries chart" This reverts commit 5a00b9c096724ed9ed63ee4e9f49af6a0e05395d. --- .../modules/monitoring/dashboards/wealth.json | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/stacks/monitoring/modules/monitoring/dashboards/wealth.json b/stacks/monitoring/modules/monitoring/dashboards/wealth.json index 8c165b88..f9a22e19 100644 --- a/stacks/monitoring/modules/monitoring/dashboards/wealth.json +++ b/stacks/monitoring/modules/monitoring/dashboards/wealth.json @@ -9,20 +9,6 @@ "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" - }, - { - "datasource": {"type": "grafana-postgresql-datasource", "uid": "wealth-pg"}, - "enable": true, - "hide": false, - "iconColor": "purple", - "name": "Milestones", - "target": { - "rawQuery": true, - "editorMode": "code", - "format": "table", - "refId": "Anno", - "rawSql": "WITH daily AS (SELECT d.valuation_date, SUM(d.total_value) AS nw FROM daily_account_valuation d JOIN accounts a ON a.id = d.account_id GROUP BY d.valuation_date), crossings AS (SELECT t, (SELECT MIN(valuation_date) FROM daily WHERE nw >= t::numeric) AS d FROM unnest(ARRAY[100000, 250000, 500000, 750000, 1000000]) AS t) SELECT d::timestamp AS \"time\", '£' || CASE WHEN t >= 1000000 THEN (t/1000000)::int::text || 'M 🎉' ELSE (t/1000)::int::text || 'k' END AS text FROM crossings WHERE d IS NOT NULL ORDER BY d" - } } ] },