diff --git a/deploy/analytics/provisioning/dashboards/folders/ETL in depth/All Products.json b/deploy/analytics/provisioning/dashboards/folders/ETL in depth/All Products.json new file mode 100644 index 00000000..e4eec67d --- /dev/null +++ b/deploy/analytics/provisioning/dashboards/folders/ETL in depth/All Products.json @@ -0,0 +1,422 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 25, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 5, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.1.4", + "targets": [ + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "editorMode": "code", + "format": "table", + "rawQuery": true, + "rawSql": "select count(*)\nfrom price_feed \nwhere price_feed_id not in (\n select price_feed_1_id from product\n union all\n select price_feed_2_id from product\n)", + "refId": "A", + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + } + } + ], + "title": "Price Feeds Without a Product", + "type": "stat" + }, + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 5, + "x": 5, + "y": 0 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.1.4", + "targets": [ + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "editorMode": "code", + "format": "table", + "rawQuery": true, + "rawSql": "select count(*)\nfrom price_feed", + "refId": "A", + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + } + } + ], + "title": "Price Feeds total", + "type": "stat" + }, + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 5, + "x": 10, + "y": 0 + }, + "id": 4, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.1.4", + "targets": [ + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "editorMode": "code", + "format": "table", + "rawQuery": true, + "rawSql": "select count(*)\nfrom product", + "refId": "A", + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + } + } + ], + "title": "Total products", + "type": "stat" + }, + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": true + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 18, + "w": 24, + "x": 0, + "y": 3 + }, + "id": 1, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": ["sum"], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "10.1.4", + "targets": [ + { + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "editorMode": "code", + "format": "table", + "rawQuery": true, + "rawSql": "select product_id, product_key, price_feed_1_id, price_feed_2_id, jsonb_pretty(product_data)\nfrom product\nwhere \n chain in ($chains)\n and product_key in ($product_keys)", + "refId": "A", + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + } + } + ], + "title": "All Products", + "type": "table" + } + ], + "refresh": "", + "schemaVersion": 38, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": ["ethereum", "optimism"], + "value": ["ethereum", "optimism"] + }, + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "definition": "select distinct chain from product", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "chains", + "options": [], + "query": "select distinct chain from product", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query" + }, + { + "current": { + "selected": false, + "text": [ + "beefy:vault:optimism:0xc55e93c62874d8100dbd2dfe307edc1036ad5434", + "beefy:vault:ethereum:0xbeef8e0982874e0292e6c5751c5a4092b3e1beef" + ], + "value": [ + "beefy:vault:optimism:0xc55e93c62874d8100dbd2dfe307edc1036ad5434", + "beefy:vault:ethereum:0xbeef8e0982874e0292e6c5751c5a4092b3e1beef" + ] + }, + "datasource": { + "type": "postgres", + "uid": "P1A7A05C63CAD1F73" + }, + "definition": "select product_key from product where chain in ($chains)", + "hide": 0, + "includeAll": true, + "multi": true, + "name": "product_keys", + "options": [], + "query": "select product_key from product where chain in ($chains)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "All products", + "uid": "dc77c259-7f76-4dfc-9982-03dc8fb42528", + "version": 5, + "weekStart": "" +} diff --git a/src/protocol/beefy/connector/vault-list.ts b/src/protocol/beefy/connector/vault-list.ts index de75ab46..b2436b4c 100644 --- a/src/protocol/beefy/connector/vault-list.ts +++ b/src/protocol/beefy/connector/vault-list.ts @@ -239,12 +239,6 @@ export function beefyVaultsFromGitHistory$(chain: Chain): Rx.Observable["bridged"]; type V = Required["bridged"][K]; const bridgedVaults = (Object.entries(rawVault.bridged) as [K, V][])