From 4eb7923253f134b4334bf3bcdf49941ab79021d7 Mon Sep 17 00:00:00 2001 From: Maximiliano Duthey Date: Wed, 22 Oct 2025 17:57:32 -0300 Subject: [PATCH 1/4] feat: new dashboards setup --- config.yaml | 6 +- grafana-dashboards.tf | 4 +- grafana/dashboards/shared/blockfrost.json | 1302 ++++++++++++ grafana/dashboards/shared/dbsync.json | 1893 +++++++++++++++++ .../dashboards/{demeter => shared}/kupo.json | 476 +---- .../dashboards/{demeter => shared}/node.json | 105 +- .../{demeter => shared}/ogmios.json | 779 ++++--- grafana/dashboards/shared/submit-api.json | 442 ++++ grafana/dashboards/shared/trp.json | 255 +++ grafana/dashboards/shared/utxorpc.json | 585 +++++ grafana/dashboards/txpipe/kupo-proxy.json | 501 +++++ 11 files changed, 5544 insertions(+), 804 deletions(-) create mode 100644 grafana/dashboards/shared/blockfrost.json create mode 100644 grafana/dashboards/shared/dbsync.json rename grafana/dashboards/{demeter => shared}/kupo.json (59%) rename grafana/dashboards/{demeter => shared}/node.json (95%) rename grafana/dashboards/{demeter => shared}/ogmios.json (70%) create mode 100644 grafana/dashboards/shared/submit-api.json create mode 100644 grafana/dashboards/shared/trp.json create mode 100644 grafana/dashboards/shared/utxorpc.json create mode 100644 grafana/dashboards/txpipe/kupo-proxy.json diff --git a/config.yaml b/config.yaml index 7723b6e..522eded 100644 --- a/config.yaml +++ b/config.yaml @@ -3,14 +3,16 @@ grafana: url: https://dmtrglobal.grafana.net auth: ENC[AES256_GCM,data:7Wbq1IRDNeIXPA3X8EwMABCZePLKKMClf0OD7W3TxzqwH27m7B5EyqSVE5/8hw==,iv:Hj7Ppns3XYnU4cxEvNW5MvhcHBmYv800j+BPXGeC3t4=,tag:E/MBlYplPHjPUoH0E0bVeQ==,type:str] folders: - - local_directory: grafana/dashboards/demeter + - local_directory: grafana/dashboards/blinklabs grafana_title: Demeter Blink Labs datasource_uids: datasource_uid: gke_blinklabs-demeter_us-central1_dmtr-cluster-prometheus - - local_directory: grafana/dashboards/demeter + - local_directory: grafana/dashboards/txpipe grafana_title: Demeter TxPipe datasource_uids: datasource_uid: aws_txpipe-demeter_us-west-2_m2-prometheus + - local_directory: grafana/dashboards/shared + grafana_title: Demeter Shared data_sources: gke_blinklabs-demeter_us-central1_dmtr-cluster-prometheus: type: prometheus diff --git a/grafana-dashboards.tf b/grafana-dashboards.tf index 1098195..2927b10 100644 --- a/grafana-dashboards.tf +++ b/grafana-dashboards.tf @@ -6,8 +6,8 @@ module "grafana_dashboard" { source = "./modules/grafana_dashboard" local_directory = each.value.local_directory grafana_title = each.value.grafana_title - datasource_uids = { + datasource_uids = try(each.value.datasource_uids, null) != null ? { # This is a template variable used in Demeter dashboards datasource_uid = module.grafana_data_sources.uids[each.value.datasource_uids.datasource_uid] - } + } : {} } diff --git a/grafana/dashboards/shared/blockfrost.json b/grafana/dashboards/shared/blockfrost.json new file mode 100644 index 0000000..4339a7e --- /dev/null +++ b/grafana/dashboards/shared/blockfrost.json @@ -0,0 +1,1302 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 64, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 7, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum(rate(blockfrost_proxy_http_cache_hits{network=~\".*$network\",resolved_by=\"blockfrost\"}[5m])) / (sum(rate(blockfrost_proxy_http_cache_hits{network=~\".*$network\",resolved_by=\"blockfrost\"}[5m])) + sum(rate(blockfrost_proxy_http_cache_miss{network=~\".*$network\",resolved_by=\"blockfrost\"}[5m])))", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Cache hit rate (Blockfrost)", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 9, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (exported_instance) (rate(blockfrost_proxy_http_total_request{network=~\".*$network\"}[$__rate_interval]))", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "RPS", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*\\.($namespace).*", + "renamePattern": "blockfrost" + } + }, + { + "id": "renameByRegex", + "options": { + "regex": ".*\\.(ext-utxorpc-m1).*", + "renamePattern": "dolos" + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 10, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 23, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.99, sum by (le) (rate(blockfrost_proxy_http_request_duration_seconds_bucket{network=~\".*$network\", proxied=\"true\", resolved_by=\"blockfrost\"}[10m])))", + "legendFormat": "99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.90, sum by (le) (rate(blockfrost_proxy_http_request_duration_seconds_bucket{network=\"$network\", proxied=\"true\", resolved_by=\"blockfrost\"}[10m])))", + "hide": false, + "legendFormat": "90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.50, sum by (le) (rate(blockfrost_proxy_http_request_duration_seconds_bucket{network=\"$network\", proxied=\"true\", resolved_by=\"blockfrost\"}[10m])))", + "hide": false, + "legendFormat": "50", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "histogram_quantile(1, sum by (le) (rate(blockfrost_proxy_http_request_duration_seconds_bucket{network=\"$network\", proxied=\"true\", resolved_by=\"blockfrost\"}[10m])))", + "hide": false, + "legendFormat": "p100", + "range": true, + "refId": "D" + } + ], + "title": "Latency (Blockfrost)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 22, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.99, sum by (le) (rate(blockfrost_proxy_http_request_duration_seconds_bucket{network=~\".*$network\", resolved_by=\"dolos\"}[10m])))", + "legendFormat": "99", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.90, sum by (le) (rate(blockfrost_proxy_http_request_duration_seconds_bucket{network=\"$network\",resolved_by=\"dolos\"}[10m])))", + "hide": false, + "legendFormat": "90", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.50, sum by (le) (rate(blockfrost_proxy_http_request_duration_seconds_bucket{network=\"$network\", resolved_by=\"dolos\"}[10m])))", + "hide": false, + "legendFormat": "50", + "range": true, + "refId": "C" + } + ], + "title": "Latency (Dolos)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 26 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (exported_endpoint) (rate(blockfrost_proxy_http_cache_hits{network=~\".*$network\"}[1m]))", + "legendFormat": "{{exported_endpoint}}", + "range": true, + "refId": "A" + } + ], + "title": "Cache hits", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 26 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (exported_endpoint) (rate(blockfrost_proxy_http_cache_miss{network=~\".*$network\"}[5m]))", + "legendFormat": "{{exported_endpoint}}", + "range": true, + "refId": "A" + } + ], + "title": "Cache miss", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 34 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (status_code) (rate(blockfrost_proxy_http_total_request{network=~\".*$network\"}[1m]))", + "legendFormat": "{{exported_endpoint}}", + "range": true, + "refId": "A" + } + ], + "title": "Requests rate per code", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#6ED0E0", + "value": 20 + }, + { + "color": "#EAB839", + "value": 100 + }, + { + "color": "red", + "value": 600 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 34 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (consumer) (rate(blockfrost_proxy_http_total_request{network=~\".*$network\"}[1m]))", + "legendFormat": "{{status_code}}.{{consumer}}", + "range": true, + "refId": "A" + } + ], + "title": "Requests per consumer", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 42 + }, + "id": 20, + "panels": [], + "title": "Proxy", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 0.5 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 43 + }, + "id": 15, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", container=\"main\", pod=~\"proxy-.*\"}[5m])*1000) by (pod)", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Proxy CPU Usage (milicores)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 6, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 0.5 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 43 + }, + "id": 16, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\", container!=\"\", pod=~\"proxy-.*\"}) by (pod) / sum(container_spec_memory_limit_bytes{namespace=\"$namespace\", container!=\"\", pod=~\"proxy-.*\"}) by (pod)", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Memory Usage (% of quota)", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 51 + }, + "id": 18, + "panels": [], + "title": "Instance", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 0.5 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 52 + }, + "id": 11, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", container!=\"\", pod=~\".*$network.*\"}[5m])*10000) by (pod) / sum(container_spec_cpu_shares) by (pod)", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "CPU Usage (% or requested quota)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 6, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "max": 1.2, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 0.5 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 52 + }, + "id": 14, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\", container!=\"\", pod=~\".*$network-.*\"}) by (pod) / sum(container_spec_memory_limit_bytes{namespace=\"$namespace\", container!=\"\", pod=~\".*$network-.*\"}) by (pod)", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Memory Usage (% of quota)", + "type": "timeseries" + } + ], + "refresh": "30s", + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "type": "datasource" + }, + { + "current": { + "selected": true, + "text": "ext-blockfrost-m1", + "value": "ext-blockfrost-m1" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "namespace", + "options": [ + { + "selected": true, + "text": "ext-blockfrost-m1", + "value": "ext-blockfrost-m1" + } + ], + "query": "ext-blockfrost-m1", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": true, + "text": [ + "mainnet" + ], + "value": [ + "mainnet" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "blockfrost_proxy_http_total_request", + "hide": 0, + "includeAll": false, + "multi": false, + "name": "network", + "options": [], + "query": { + "query": "blockfrost_proxy_http_total_request", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": ".*network=\"([A-Za-z0-9\\-]+)\",.+", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Blockfrost", + "version": 1, + "weekStart": "" +} diff --git a/grafana/dashboards/shared/dbsync.json b/grafana/dashboards/shared/dbsync.json new file mode 100644 index 0000000..3de4aa8 --- /dev/null +++ b/grafana/dashboards/shared/dbsync.json @@ -0,0 +1,1893 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 37, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 54, + "panels": [], + "title": "Dbsync", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": 0 + }, + { + "color": "yellow", + "value": 0.1 + }, + { + "color": "green", + "value": 0.25 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 0, + "y": 1 + }, + "id": 11, + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "kubelet_volume_stats_available_bytes{persistentvolumeclaim=~\"state-$network-.*\", exported_namespace=\"ftr-dbsync-v3\" } / on(persistentvolumeclaim) kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\"state-$network-.*\", exported_namespace=\"ftr-dbsync-v3\"}", + "format": "time_series", + "hide": false, + "instant": false, + "key": "Q-afae6dc0-819b-4ec4-b2e1-a3e6105c38fd-0", + "legendFormat": "{{persistenvolumeclaim}}", + "range": true, + "refId": "A" + } + ], + "title": "DBSync Disk Space Available", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": 0 + }, + { + "color": "yellow", + "value": 0.1 + }, + { + "color": "green", + "value": 0.25 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 5, + "y": 1 + }, + "id": 59, + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (persistentvolumeclaim) (kubelet_volume_stats_available_bytes{exported_namespace=\"ftr-dbsync-v3\",persistentvolumeclaim=~\"postgres-local-pv-90126e93|pvc.*\"}) / sum by (persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{exported_namespace=\"ftr-dbsync-v3\",persistentvolumeclaim=~\"postgres-local-pv-90126e93|pvc.*\"})", + "format": "time_series", + "hide": false, + "instant": false, + "key": "Q-afae6dc0-819b-4ec4-b2e1-a3e6105c38fd-0", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Available disk", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "{persistentvolumeclaim=\"postgres-local-pv-90126e93\"}", + "renamePattern": "hi6" + } + }, + { + "id": "renameByRegex", + "options": { + "regex": "{persistentvolumeclaim=\"pvc-(.*)\"}", + "renamePattern": "$1" + } + } + ], + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-RdYlGr" + }, + "decimals": 2, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": 0 + }, + { + "color": "#EAB839", + "value": 0.9 + }, + { + "color": "green", + "value": 0.96 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 11, + "y": 1 + }, + "id": 31, + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "cardano_db_sync_db_block_height{job=~\"ftr-dbsync-v3/dbsync-$network-.*\"} / cardano_db_sync_node_block_height{job=~\"ftr-dbsync-v3/dbsync-$network-.*\"}", + "format": "time_series", + "hide": false, + "instant": true, + "key": "Q-afae6dc0-819b-4ec4-b2e1-a3e6105c38fd-0", + "legendFormat": "{{job}}", + "range": false, + "refId": "A" + } + ], + "title": "Sync %", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 20, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 5 + }, + { + "color": "red", + "value": 15 + } + ] + }, + "unit": "blocks" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 15, + "y": 1 + }, + "id": 2, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "cardano_db_sync_node_block_height{job=~\"ftr-dbsync-v3/dbsync-$network-.*\"}-cardano_db_sync_db_block_height{job=~\"ftr-dbsync-v3/dbsync-$network-.*\"}", + "legendFormat": "{{pod}}", + "range": true, + "refId": "A" + } + ], + "title": "Sync Delta", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 5 + }, + { + "color": "red", + "value": 15 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 19, + "y": 1 + }, + "id": 20, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "cardano_db_sync_db_queue_length{job=~\"ftr-dbsync-v3/dbsync-$network-.*\"}", + "legendFormat": "{{pod}}", + "range": true, + "refId": "A" + } + ], + "title": "Queue Length", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 16, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "max": 1.2, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 0.5 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 11, + "x": 0, + "y": 6 + }, + "id": 15, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by(pod)(container_memory_working_set_bytes{namespace=\"ftr-dbsync-v3\",pod=~\"$network-.*\",container!=\"\"})/ sum by (pod)(container_spec_memory_limit_bytes{namespace=\"ftr-dbsync-v3\",pod=~\"$network-.*\",container!=\"\"})\n", + "legendFormat": "{{pod}}/{{container}}", + "range": true, + "refId": "A" + } + ], + "title": "DBSync Pod Memory Usage (2b)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": 0 + }, + { + "color": "yellow", + "value": 0.5 + }, + { + "color": "green", + "value": 1.5 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 13, + "x": 11, + "y": 6 + }, + "id": 29, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "rate(cardano_db_sync_db_block_height{job=~\"ftr-dbsync-v3/dbsync-$network-.*\"}[5m])*60", + "instant": false, + "legendFormat": "{{pod}}", + "range": true, + "refId": "A" + } + ], + "title": "Height Increate Rate / minute (2b)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "max": 8.2, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 11, + "x": 0, + "y": 13 + }, + "id": 13, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (pod)(rate(container_cpu_usage_seconds_total{namespace=\"ftr-dbsync-v3\",pod=~\"$network-.*\",container!=\"\"}[$__rate_interval])) ", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "DBSync CPU (2b)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 13, + "x": 11, + "y": 13 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "cardano_db_sync_db_block_height{job=~\"ftr-dbsync-v3/dbsync-$network-.*\"}", + "format": "time_series", + "hide": false, + "legendFormat": "{{pod}}", + "range": true, + "refId": "B" + } + ], + "title": " Node Block Height (2b)", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 52, + "panels": [], + "title": "Postgres", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 1, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 16, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 0.4996 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 11, + "x": 0, + "y": 22 + }, + "id": 32, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (pod)(container_memory_working_set_bytes{namespace=\"ftr-dbsync-v3\",pod=~\"postgres-dbsync-v3-.*-0\", container=\"main\"}) / sum by (pod)(container_spec_memory_limit_bytes{namespace=\"ftr-dbsync-v3\",pod=~\"postgres-dbsync-v3-.*-0\", container=\"main\"})", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Postgres Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMax": 8, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "max": 8, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "yellow", + "value": 4 + }, + { + "color": "red", + "value": 6 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 13, + "x": 11, + "y": 22 + }, + "id": 33, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (pod)(rate(container_cpu_usage_seconds_total{namespace=\"ftr-dbsync-v3\",pod=~\"postgres-dbsync-v3-.*-0\", container=\"main\"}[$__rate_interval])) ", + "interval": "5m", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Postgres CPU (oy0)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 19, + "x": 0, + "y": 30 + }, + "id": 48, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "sum" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "irate(pg_stat_database_xact_commit{service=~\"dbsync.*\", datname=~\"dbsync-$network\", job=~\"ftr-dbsync-v3/postgres-.*\"}[$__rate_interval])", + "format": "time_series", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "{{service}}-{{datname}} commits", + "range": true, + "refId": "A" + } + ], + "title": "Transactions", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "links": [], + "mappings": [], + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 19, + "y": 30 + }, + "id": 62, + "options": { + "displayLabels": [ + "percent" + ], + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "sort": "desc", + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "irate(pg_stat_database_xact_commit{service=~\"dbsync.*\", datname=~\"dbsync-$network\", job=~\"ftr-dbsync-v3/postgres-.*\"}[$__range])", + "format": "time_series", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "{{service}}", + "range": true, + "refId": "A" + } + ], + "title": "Transactions distribution per replica", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "dbsync-postgres-dbsync-v3-(.*)", + "renamePattern": "$1" + } + } + ], + "type": "piechart" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "points", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 8, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "always", + "showValues": false, + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 38 + }, + "id": 50, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (usename, datname, service)(pg_stat_activity_count{datname=~\"dbsync-$network\", state=\"active\", job=~\"ftr-dbsync-v3/postgres-.*\"} !=0)", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{service}}, u: {{usename}}", + "range": true, + "refId": "A", + "step": 2 + } + ], + "title": "Active sessions", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 38 + }, + "id": 56, + "options": { + "alertThreshold": true, + "legend": { + "calcs": [ + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (datname, state, usename, service) (pg_stat_activity_count{datname=~\"dbsync-$network\", state=~\"idle|idle in transaction|idle in transaction (aborted)\", job=~\"ftr-dbsync-v3/postgres-.*\"} !=0)", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{service}}, s: {{state}}, u: {{usename}}", + "range": true, + "refId": "A", + "step": 2 + } + ], + "title": "Idle sessions", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 45 + }, + "id": 58, + "options": { + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "sum" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (service, mode, datname)(pg_locks_count{datname=~\"dbsync-$network\", job=~\"ftr-dbsync-v3/postgres-.*\"} != 0)", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{service}},{{mode}}", + "range": true, + "refId": "A", + "step": 2 + } + ], + "title": "Lock tables", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 53 + }, + "id": 61, + "options": { + "alertThreshold": true, + "legend": { + "calcs": [ + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (datname, usename) (pg_stat_activity_count{datname=~\"dbsync-$network\", job=~\"ftr-dbsync-v3/postgres-.*\"} !=0)", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{service}}, s: {{state}}, u: {{usename}}", + "range": true, + "refId": "A", + "step": 2 + } + ], + "title": "Total sessions per user", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 60 + }, + "id": 60, + "options": { + "alertThreshold": true, + "legend": { + "calcs": [ + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (datname, service) (pg_stat_activity_count{datname=~\"dbsync-$network\", job=~\"ftr-dbsync-v3/postgres-.*\"} !=0)", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{service}}, s: {{state}}, u: {{usename}}", + "range": true, + "refId": "A", + "step": 2 + } + ], + "title": "Total Sessions per Instance", + "type": "timeseries" + } + ], + "refresh": "10s", + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "type": "datasource" + }, + { + "current": { + "text": "mainnet", + "value": "mainnet" + }, + "includeAll": false, + "name": "network", + "options": [ + { + "selected": false, + "text": "preview", + "value": "preview" + }, + { + "selected": false, + "text": "preprod", + "value": "preprod" + }, + { + "selected": true, + "text": "mainnet", + "value": "mainnet" + }, + { + "selected": false, + "text": "vector-testnet", + "value": "vector-testnet" + }, + { + "selected": false, + "text": "prime-testnet", + "value": "prime-testnet" + } + ], + "query": "preview,preprod,mainnet,vector-testnet,prime-testnet", + "type": "custom" + } + ] + }, + "time": { + "from": "now-12h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Cardano DBSync v3", + "version": 1, + "weekStart": "" +} diff --git a/grafana/dashboards/demeter/kupo.json b/grafana/dashboards/shared/kupo.json similarity index 59% rename from grafana/dashboards/demeter/kupo.json rename to grafana/dashboards/shared/kupo.json index bb68719..b284d59 100644 --- a/grafana/dashboards/demeter/kupo.json +++ b/grafana/dashboards/shared/kupo.json @@ -44,7 +44,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -52,11 +52,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -65,6 +67,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -72,6 +75,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -87,7 +91,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "red", @@ -113,15 +117,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "kupo_most_recent_checkpoint{pod=~\".*$pod.*\"}", @@ -132,7 +138,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "kupo_most_recent_node_tip{pod=~\".*$pod.*\"}", @@ -148,7 +154,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -162,7 +168,7 @@ "steps": [ { "color": "blue", - "value": null + "value": 0 } ] }, @@ -182,6 +188,7 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -189,14 +196,16 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "kupo_most_recent_node_tip{pod=~\".*$pod.*\"} - kupo_most_recent_checkpoint{pod=~\".*$pod.*\"}", @@ -211,7 +220,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -219,11 +228,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -232,6 +243,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -239,6 +251,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -256,7 +269,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "yellow", @@ -287,16 +300,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=~\"ftr-kupo-.*\", container=\"main\", pod=~\"$pod\"}[5m])) by (pod)", @@ -312,7 +326,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -320,11 +334,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -333,6 +349,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -340,6 +357,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -357,7 +375,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "yellow", @@ -388,15 +406,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(container_memory_working_set_bytes{namespace=~\"ftr-kupo-.*\", container=\"main\", pod=~\"$pod\"}) by (pod) / sum(kube_pod_container_resource_limits{namespace=~\"ftr-kupo-.*\", resource=\"memory\", container=\"main\", pod=~\"$pod\"}) by (pod)", @@ -411,7 +431,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -426,7 +446,7 @@ "steps": [ { "color": "red", - "value": null + "value": 0 }, { "color": "yellow", @@ -451,8 +471,16 @@ "id": 23, "options": { "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, + "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ @@ -461,14 +489,16 @@ "fields": "", "values": false }, - "showUnfilled": true + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "exemplar": false, @@ -489,7 +519,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -497,7 +527,14 @@ "mode": "thresholds" }, "custom": { + "axisPlacement": "auto", "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, "lineWidth": 0, "spanNulls": false }, @@ -507,7 +544,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "yellow", @@ -540,15 +577,17 @@ "rowHeight": 0.9, "showValue": "auto", "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "exemplar": false, @@ -562,383 +601,6 @@ ], "title": "Container Restarts", "type": "state-timeline" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 25 - }, - "id": 25, - "panels": [], - "title": "Proxy", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 26 - }, - "id": 27, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "editorMode": "code", - "expr": "sum by (consumer)(rate(kupo_proxy_http_total_request{namespace=~\"ftr-kupo-.*\", exported_instance=~\".*$network.*\", job=\"ftr-kupo-v1/proxy\"}[5m])) > 0", - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Request Rate by Consumer (blue)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 26 - }, - "id": 28, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "editorMode": "code", - "expr": "sum(rate(kupo_proxy_http_total_request{namespace=~\"ftr-kupo-.*\", exported_instance=~\".*$network.*\", job=\"ftr-kupo-v1/proxy\" }[5m]) > 0) by (status_code)", - "legendFormat": "{{status_code}}.{{consumer}}", - "range": true, - "refId": "A" - } - ], - "title": "Request Rate by Code (blue)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 29, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "editorMode": "code", - "expr": "sum by (consumer)(rate(kupo_proxy_http_total_request{namespace=~\"ftr-kupo-.*\", exported_instance=~\".*$network.*\", job=\"ftr-kupo-v1/proxy-green\"}[5m]) > 0)", - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Request Rate by Consumer (green)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 35 - }, - "id": 30, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "editorMode": "code", - "expr": "sum(rate(kupo_proxy_http_total_request{namespace=~\"ftr-kupo-.*\", exported_instance=~\".*$network.*\", job=\"ftr-kupo-v1/proxy-green\" }[5m]) > 0) by (status_code)", - "legendFormat": "{{status_code}}.{{consumer}}", - "range": true, - "refId": "A" - } - ], - "title": "Request Rate by Code (green)", - "type": "timeseries" } ], "refresh": "5s", @@ -947,6 +609,14 @@ "tags": [], "templating": { "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "type": "datasource" + }, { "current": { "selected": true, @@ -987,7 +657,7 @@ }, "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "definition": "query_result(kupo_connection_status{pod=~\".*$network.*\"})", "hide": 0, @@ -1014,6 +684,6 @@ "timepicker": {}, "timezone": "", "title": "Cardano Kupo", - "version": 31, + "version": 32, "weekStart": "" } diff --git a/grafana/dashboards/demeter/node.json b/grafana/dashboards/shared/node.json similarity index 95% rename from grafana/dashboards/demeter/node.json rename to grafana/dashboards/shared/node.json index e0c0ba6..1ac6eab 100644 --- a/grafana/dashboards/demeter/node.json +++ b/grafana/dashboards/shared/node.json @@ -5,7 +5,7 @@ "builtIn": 1, "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "enable": true, "hide": true, @@ -31,7 +31,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -108,7 +108,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "cardano_node_metrics_slotNum_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}", @@ -123,7 +123,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -179,7 +179,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "max(cardano_node_metrics_blockNum_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"})-min(cardano_node_metrics_blockNum_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"})", @@ -195,7 +195,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -241,7 +241,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "cardano_node_metrics_blockNum_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}", @@ -256,7 +256,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -302,7 +302,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "rate(cardano_node_metrics_blockNum_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}[5m])*60", @@ -317,7 +317,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -395,7 +395,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "cardano_node_metrics_blockfetchclient_blockdelay_s{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}", @@ -410,7 +410,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -465,7 +465,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "rate(cardano_node_metrics_forks_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}[1h])*60*60", @@ -480,7 +480,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -558,7 +558,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "cardano_node_metrics_density_real{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}", @@ -573,7 +573,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -633,11 +633,11 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "exemplar": false, - "expr": "kubelet_volume_stats_available_bytes{persistentvolumeclaim=~\"data-node-$${network}.*\",exported_namespace=\"$namespace\"} / on(persistentvolumeclaim) kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\"data-node-$${network}.*\",exported_namespace=\"$namespace\"}", + "expr": "kubelet_volume_stats_available_bytes{persistentvolumeclaim=~\"data-node-$network.*\",exported_namespace=\"$namespace\"} / on(persistentvolumeclaim) kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\"data-node-$network.*\",exported_namespace=\"$namespace\"}", "format": "time_series", "hide": false, "instant": false, @@ -653,7 +653,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -712,7 +712,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "kube_pod_container_status_restarts_total{namespace=\"$namespace\",container=\"main\", pod=~\"(cardano-)?node-$network-.*\"}", @@ -727,7 +727,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -811,7 +811,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "cardano_node_metrics_mempoolBytes_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}", @@ -826,7 +826,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -905,7 +905,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "cardano_node_metrics_txsInMempool_int{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"}", @@ -920,7 +920,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1004,7 +1004,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", container!=\"\", pod=~\"(cardano-)?node-$network-.*\"}[5m])*10000) by (pod) / sum(container_spec_cpu_shares) by (pod)", @@ -1019,7 +1019,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1104,7 +1104,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\", container!=\"\", pod=~\"(cardano-)?node-$network-.*\"}) by (pod) / sum(container_spec_memory_limit_bytes{namespace=\"$namespace\", container!=\"\", pod=~\"(cardano-)?node-$network-.*\"}) by (pod)", @@ -1119,7 +1119,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1204,7 +1204,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (pod)(cardano_node_metrics_connectionManager_incomingConns{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"})", @@ -1215,7 +1215,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (pod)(cardano_node_metrics_connectionManager_duplexConns{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"})", @@ -1227,7 +1227,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (pod)(cardano_node_metrics_connectionManager_outgoingConns{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"})", @@ -1239,7 +1239,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (pod)(cardano_node_metrics_connectionManager_unidirectionalConns{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"})", @@ -1251,7 +1251,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (pod)(cardano_node_metrics_connectionManager_prunableConns{namespace=\"$namespace\", pod=~\"(cardano-)?node-$network-.*\"})", @@ -1267,7 +1267,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1343,7 +1343,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", container!=\"\", pod=~\"(cardano-)?node-$network-.*\"}[1m])) by (pod)", @@ -1358,7 +1358,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1435,7 +1435,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (consumer) (node_proxy_total_connections{consumer=~\".*$network.*\", exported_instance=~\".*$namespace.*\"}) > 0", @@ -1450,7 +1450,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1527,7 +1527,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (pod) (node_proxy_total_connections{consumer=~\".*$network.*\", exported_instance=~\".*$namespace.*\"}) > 0", @@ -1542,7 +1542,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1620,7 +1620,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (consumer) (rate(node_proxy_total_packages_bytes{consumer=~\".*$network.*\", exported_instance=~\".*$namespace.*\"}[10m])) > 0 ", @@ -1635,7 +1635,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1738,7 +1738,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum by (consumer) (increase(node_proxy_total_connections_denied{consumer=~\".*$network.*\", exported_instance=~\".*$namespace.*\"}[10m]))", @@ -1757,6 +1757,14 @@ "tags": [], "templating": { "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "type": "datasource" + }, { "current": { "selected": true, @@ -1768,18 +1776,13 @@ "multi": false, "name": "namespace", "options": [ - { - "selected": false, - "text": "ftr-nodes-v2", - "value": "ftr-nodes-v2" - }, { "selected": true, "text": "ext-nodes-m1", "value": "ext-nodes-m1" } ], - "query": "ftr-nodes-v2,ext-nodes-m1", + "query": "ext-nodes-m1", "queryValue": "", "skipUrlSync": false, "type": "custom" @@ -1840,6 +1843,6 @@ "timepicker": {}, "timezone": "", "title": "Cardano Node", - "version": 33, + "version": 34, "weekStart": "" } diff --git a/grafana/dashboards/demeter/ogmios.json b/grafana/dashboards/shared/ogmios.json similarity index 70% rename from grafana/dashboards/demeter/ogmios.json rename to grafana/dashboards/shared/ogmios.json index e29e30b..3273d4a 100644 --- a/grafana/dashboards/demeter/ogmios.json +++ b/grafana/dashboards/shared/ogmios.json @@ -44,7 +44,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -57,7 +57,7 @@ "steps": [ { "color": "blue", - "value": null + "value": 0 } ] } @@ -76,6 +76,7 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -83,14 +84,16 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "ogmios_tip_block{namespace=\"$namespace\", pod=~\".*$network-$version.*\"}", @@ -105,7 +108,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -113,11 +116,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -126,6 +131,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -133,6 +139,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -148,7 +155,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "red", @@ -174,16 +181,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "rate(ogmios_total_messages{namespace=\"$namespace\", pod=~\".*$network-$version.*\"}[$__rate_interval])", @@ -198,7 +206,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -211,7 +219,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "red", @@ -234,6 +242,7 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -241,14 +250,16 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "ogmios_active_connections{namespace=\"$namespace\", pod=~\".*$network-$version.*\"}", @@ -263,7 +274,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -276,7 +287,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "red", @@ -299,6 +310,7 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -306,14 +318,16 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "exemplar": false, @@ -330,7 +344,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -338,11 +352,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -351,6 +367,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -358,6 +375,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -373,7 +391,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "red", @@ -400,15 +418,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "ogmios_current_heap_size{namespace=\"$namespace\", pod=~\".*$network-$version.*\"}", @@ -423,7 +443,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -431,12 +451,14 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 1, "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -445,6 +467,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -452,6 +475,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -468,7 +492,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "yellow", @@ -499,15 +523,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", container=\"main\", pod=~\".*$network-$version.*\"}[4m])*1000) by (pod) / sum(container_spec_cpu_shares{namespace=\"$namespace\", container=\"main\", pod=~\".*$network-$version.*\"}) by (pod)", @@ -522,7 +548,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -530,12 +556,14 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 1, "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 6, "gradientMode": "none", @@ -544,6 +572,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -551,6 +580,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -568,7 +598,7 @@ "steps": [ { "color": "green", - "value": null + "value": 0 }, { "color": "#EAB839", @@ -599,16 +629,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\", container!=\"socat\", pod=~\".*$network-$version.*\"}) by (pod) / sum(container_spec_memory_limit_bytes{namespace=\"$namespace\", container!=\"socat\", pod=~\".*$network-$version.*\"}) by (pod)", @@ -623,7 +654,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -631,7 +662,14 @@ "mode": "thresholds" }, "custom": { + "axisPlacement": "auto", "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, "lineWidth": 0, "spanNulls": false }, @@ -641,7 +679,7 @@ "steps": [ { "color": "red", - "value": null + "value": 0 }, { "color": "green", @@ -670,15 +708,17 @@ "rowHeight": 0.9, "showValue": "auto", "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "ogmios_connected{namespace=\"$namespace\", pod=~\".*$network-$version.*\"}", @@ -693,7 +733,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "description": "", "fieldConfig": { @@ -702,11 +742,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -715,6 +757,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -722,6 +765,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -736,7 +780,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "red", @@ -762,15 +807,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "ogmios_active_connections{namespace=\"$namespace\", pod=~\".*$network-$version.*\"}", @@ -785,7 +832,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -793,12 +840,14 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 1, "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -807,6 +856,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -814,6 +864,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -829,7 +880,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "yellow", @@ -860,15 +912,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(rate(container_cpu_usage_seconds_total{namespace=\"$namespace\", container!=\"\", pod=~\".*proxy.*\"}[4m])*1000) by (pod) / sum(container_spec_cpu_shares{namespace=\"$namespace\", container!=\"\", pod=~\".*proxy.*\"}) by (pod)", @@ -883,7 +937,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -891,12 +945,14 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 1, "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 6, "gradientMode": "none", @@ -905,6 +961,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -912,6 +969,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -928,7 +986,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "#EAB839", @@ -959,16 +1018,17 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, - "pluginVersion": "9.2.6", + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", "expr": "sum(container_memory_working_set_bytes{namespace=\"$namespace\", container!=\"\", pod=~\".*proxy.*\"}) by (pod) / sum(container_spec_memory_limit_bytes{namespace=\"$namespace\", container!=\"\", pod=~\".*proxy.*\"}) by (pod)", @@ -981,7 +1041,7 @@ "type": "timeseries" }, { - "collapsed": false, + "collapsed": true, "gridPos": { "h": 1, "w": 24, @@ -989,282 +1049,304 @@ "y": 41 }, "id": 29, - "panels": [], - "title": "Proxy Blue", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 42 + }, + "id": 18, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "thresholdsStyle": { - "mode": "off" + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" } }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" + "pluginVersion": "12.3.0-18356121373.patch4", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 18, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "editorMode": "code", + "expr": "sum by (consumer) (rate(ogmios_proxy_ws_total_frame{ exported_instance=~\"ogmios-(cardano-)?$network.*\", job=~\"ext-ogmios-m1/proxy-(cardano-)?$network-blue\"}[5m])) > 0", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Frames Rate (Blue)", + "type": "timeseries" }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, - "editorMode": "code", - "expr": "sum by (consumer) (rate(ogmios_proxy_ws_total_frame{ exported_instance=~\"ogmios-$${network}.*\", job=\"ext-ogmios-m1/proxy\"}[5m])) > 0", - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Frames Rate", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 52 + }, + "id": 22, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "thresholdsStyle": { - "mode": "off" + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" } }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" + "pluginVersion": "12.3.0-18356121373.patch4", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 52 - }, - "id": 22, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "editorMode": "code", + "expr": "sum by (consumer) (ogmios_proxy_total_connections{exported_instance=~\"ogmios-$network.*\", job=\"ext-ogmios-m1/proxy\"}) > 0", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Proxy Active Connections (Blue)", + "type": "timeseries" }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" - }, - "editorMode": "code", - "expr": "sum by (consumer) (ogmios_proxy_total_connections{exported_instance=~\"ogmios-$${network}.*\", job=\"ext-ogmios-m1/proxy\"}) > 0", - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Proxy Active Connections (Blue)", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" + "uid": "$datasource" }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 62 + }, + "id": 24, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "thresholdsStyle": { - "mode": "off" + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" } }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" + "pluginVersion": "12.3.0-18356121373.patch4", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 62 - }, - "id": 24, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource_uid}" - }, - "editorMode": "code", - "expr": "sum(rate(ogmios_proxy_http_total_request{namespace=~\"ext-ogmios-m1\", exported_instance=~\".*$network.*\",job=\"ext-ogmios-m1/proxy\" }[5m]) > 0) by (status_code, consumer)", - "legendFormat": "{{status_code}}.{{consumer}}", - "range": true, - "refId": "A" + "editorMode": "code", + "expr": "sum(rate(ogmios_proxy_http_total_request{namespace=~\"ext-ogmios-m1\", exported_instance=~\".*$network.*\",job=\"ext-ogmios-m1/proxy\" }[5m]) > 0) by (status_code, consumer)", + "legendFormat": "{{status_code}}.{{consumer}}", + "range": true, + "refId": "A" + } + ], + "title": "Request count by Code (blue)", + "type": "timeseries" } ], - "title": "Request count by Code (blue)", - "type": "timeseries" + "title": "Proxy Blue", + "type": "row" }, { "collapsed": false, @@ -1272,7 +1354,7 @@ "h": 1, "w": 24, "x": 0, - "y": 72 + "y": 42 }, "id": 31, "panels": [], @@ -1282,7 +1364,7 @@ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1290,11 +1372,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -1303,6 +1387,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1310,6 +1395,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -1324,7 +1410,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "red", @@ -1336,12 +1423,12 @@ "overrides": [] }, "gridPos": { - "h": 8, + "h": 10, "w": 24, "x": 0, - "y": 73 + "y": 43 }, - "id": 19, + "id": 32, "options": { "legend": { "calcs": [], @@ -1350,30 +1437,32 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", - "expr": "sum by (consumer) (ogmios_proxy_total_connections{exported_instance=~\"ogmios-$${network}.*\", job=~\"ext-ogmios-m1/proxy.*\"}) > 0", + "expr": "sum by (consumer) (rate(ogmios_proxy_ws_total_frame{ exported_instance=~\"ogmios-(cardano-)?$network.*\", job=~\"ext-ogmios-m1/proxy-(cardano-)?$network-green\"}[5m])) > 0", "legendFormat": "__auto", "range": true, "refId": "A" } ], - "title": "Proxy Active Connections", + "title": "Frames Rate (green)", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1381,11 +1470,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -1394,6 +1485,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1401,6 +1493,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -1415,7 +1508,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "red", @@ -1427,12 +1521,12 @@ "overrides": [] }, "gridPos": { - "h": 7, + "h": 8, "w": 24, "x": 0, - "y": 81 + "y": 53 }, - "id": 25, + "id": 19, "options": { "legend": { "calcs": [], @@ -1441,30 +1535,32 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", - "expr": "sum(increase(ogmios_proxy_http_total_request{namespace=~\"ext-ogmios-m1\", exported_instance=~\".*$network.*\",job=\"ext-ogmios-m1/proxy-green\" }[5m]) > 0) by (status_code, consumer)", - "legendFormat": "{{status_code}}.{{consumer}}", + "expr": "sum by (consumer) (ogmios_proxy_total_connections{exported_instance=~\"ogmios-(cardano-)?$network.*\", job=~\"ext-ogmios-m1/proxy-(cardano-)?$network-green\"}) > 0", + "legendFormat": "__auto", "range": true, "refId": "A" } ], - "title": "Request count by Code (green)", + "title": "Proxy Active Connections (green)", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "fieldConfig": { "defaults": { @@ -1472,11 +1568,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -1485,6 +1583,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1492,6 +1591,7 @@ "type": "linear" }, "showPoints": "auto", + "showValues": false, "spanNulls": false, "stacking": { "group": "A", @@ -1506,7 +1606,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": 0 }, { "color": "red", @@ -1518,12 +1619,12 @@ "overrides": [] }, "gridPos": { - "h": 8, + "h": 10, "w": 24, "x": 0, - "y": 88 + "y": 61 }, - "id": 32, + "id": 25, "options": { "legend": { "calcs": [], @@ -1532,24 +1633,26 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "12.3.0-18356121373.patch4", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${datasource_uid}" + "uid": "$datasource" }, "editorMode": "code", - "expr": "sum by (consumer) (rate(ogmios_proxy_ws_total_frame{ exported_instance=~\"ogmios-$${network}.*\", job=\"ext-ogmios-m1/proxy-green\"}[5m])) > 0", - "legendFormat": "__auto", + "expr": "sum(rate(ogmios_proxy_http_total_request{namespace=~\"ext-ogmios-m1\", exported_instance=~\".*$network.*\",job=~\"ext-ogmios-m1/proxy-(cardano-)?$network-green\" }[5m]) > 0) by (status_code, consumer)", + "legendFormat": "{{status_code}}.{{consumer}}", "range": true, "refId": "A" } ], - "title": "Frames Rate", + "title": "Request count by Code (green)", "type": "timeseries" } ], @@ -1559,42 +1662,38 @@ "tags": [], "templating": { "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, { "current": { - "selected": true, "text": "ext-ogmios-m1", "value": "ext-ogmios-m1" }, - "hide": 0, "includeAll": false, - "multi": false, "name": "namespace", "options": [ { "selected": true, "text": "ext-ogmios-m1", "value": "ext-ogmios-m1" - }, - { - "selected": false, - "text": "ftr-ogmios-v0", - "value": "ftr-ogmios-v0" } ], - "query": "ext-ogmios-m1,ftr-ogmios-v0", - "queryValue": "", - "skipUrlSync": false, + "query": "ext-ogmios-m1", "type": "custom" }, { "current": { - "selected": true, "text": "mainnet", "value": "mainnet" }, - "hide": 0, "includeAll": false, - "multi": false, "name": "network", "options": [ { @@ -1614,35 +1713,23 @@ } ], "query": "mainnet,preview,preprod", - "queryValue": "", - "skipUrlSync": false, "type": "custom" }, { "current": { - "selected": true, "text": "6", "value": "6" }, - "hide": 0, "includeAll": false, - "multi": false, "name": "version", "options": [ - { - "selected": false, - "text": "5", - "value": "5" - }, { "selected": true, "text": "6", "value": "6" } ], - "query": "5,6", - "queryValue": "", - "skipUrlSync": false, + "query": "6", "type": "custom" } ] @@ -1654,6 +1741,6 @@ "timepicker": {}, "timezone": "", "title": "Cardano Ogmios", - "version": 30, + "version": 31, "weekStart": "" } diff --git a/grafana/dashboards/shared/submit-api.json b/grafana/dashboards/shared/submit-api.json new file mode 100644 index 0000000..9235a5b --- /dev/null +++ b/grafana/dashboards/shared/submit-api.json @@ -0,0 +1,442 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 65, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 9, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum(rate(submitapi_proxy_http_total_request{consumer=~\".*$network.*\"}[$__rate_interval]))", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "RPM", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 6 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (status_code) (rate(submitapi_proxy_http_total_request{consumer=~\".*$network.*\"}[10m]))", + "legendFormat": "{{exported_endpoint}}", + "range": true, + "refId": "A" + } + ], + "title": "Requests per code", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 15 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by (consumer) (increase(submitapi_proxy_http_total_request{consumer=~\".*$network.*\"}[10m]))", + "legendFormat": "{{exported_endpoint}}", + "range": true, + "refId": "A" + } + ], + "title": "Requests per consumer", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "points", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 11, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "cardano_node_metrics_txsInMempool_int{namespace=\"ext-nodes-m1\", pod=~\"node-$network.*\"}", + "legendFormat": "{{pod}}", + "range": true, + "refId": "A" + } + ], + "title": "Txs in Mempool (Node)", + "type": "timeseries" + } + ], + "refresh": "10s", + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "type": "datasource" + }, + { + "current": { + "text": "mainnet", + "value": "mainnet" + }, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "submitapi_proxy_http_total_request", + "includeAll": false, + "name": "network", + "options": [], + "query": { + "query": "submitapi_proxy_http_total_request", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": ".*consumer=\"[A-Za-z0-9-]+\\.([A-Za-z0-9]+)-[A-Za-z0-9]+\",.+", + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "SubmitAPI", + "version": 1, + "weekStart": "" +} diff --git a/grafana/dashboards/shared/trp.json b/grafana/dashboards/shared/trp.json new file mode 100644 index 0000000..94f8ec4 --- /dev/null +++ b/grafana/dashboards/shared/trp.json @@ -0,0 +1,255 @@ +{ + "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": 44, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum(rate(trp_proxy_http_total_request{namespace=\"ext-trp-m1\", job=~\"ext-trp-m1/proxy-(cardano-)?$network\" }[5m]) > 0) by (status_code)", + "legendFormat": "{{status_code}}", + "range": true, + "refId": "A" + } + ], + "title": "Request Rate by Code", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum by (consumer)(rate(trp_proxy_http_total_request{namespace=\"ext-trp-m1\", job=~\"ext-trp-m1/proxy-(cardano-)?$network\"}[5m])) > 0", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Request Rate by Consumer", + "type": "timeseries" + } + ], + "preload": false, + "schemaVersion": 42, + "tags": [], + "templating": { + "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "type": "datasource" + }, + { + "current": { + "text": "mainnet", + "value": "mainnet" + }, + "includeAll": false, + "name": "network", + "options": [], + "query": "mainnet,preprod,preview", + "type": "custom" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "TRP", + "version": 1 +} \ No newline at end of file diff --git a/grafana/dashboards/shared/utxorpc.json b/grafana/dashboards/shared/utxorpc.json new file mode 100644 index 0000000..ed5d3f2 --- /dev/null +++ b/grafana/dashboards/shared/utxorpc.json @@ -0,0 +1,585 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 71, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "max": 1.1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "#EAB839", + "value": 0.8 + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by(pod, container)(container_memory_working_set_bytes{namespace=\"ext-utxorpc-m1\", pod=~\"cardano-$network-.*\", container!=\"\"}) / sum by (pod, container)(container_spec_memory_limit_bytes{namespace=\"ext-utxorpc-m1\",pod=~\"cardano-$network-.*\",container!=\"\"})\n", + "legendFormat": "{{ container }} - {{ pod }}", + "range": true, + "refId": "A" + } + ], + "title": "Memory Usage", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "", + "renamePattern": "$1" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 10, + "x": 12, + "y": 0 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum by(pod, container)(rate(container_cpu_usage_seconds_total{namespace=\"ext-utxorpc-m1\", pod=~\"cardano-$network-.*\", container!=\"\"}[$__rate_interval]))", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "CPU", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": 0 + }, + { + "color": "yellow", + "value": 0.1 + }, + { + "color": "green", + "value": 0.25 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 2, + "x": 22, + "y": 0 + }, + "id": 6, + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "exemplar": false, + "expr": "kubelet_volume_stats_available_bytes{persistentvolumeclaim=~\"pvc-.*\", exported_namespace=\"ext-utxorpc-m1\" } / on(persistentvolumeclaim) kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\"pvc-.*\", exported_namespace=\"ext-utxorpc-m1\"}", + "format": "time_series", + "hide": false, + "instant": false, + "key": "Q-afae6dc0-819b-4ec4-b2e1-a3e6105c38fd-0", + "legendFormat": "{{persistenvolumeclaim}}", + "range": true, + "refId": "A" + } + ], + "title": "Dolos Disk Space Available", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 9, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "\nsum(rate( grpc_server_handled_total{grpc_service=~\"utxorpc.*\"} [$__rate_interval])) by (grpc_method)\n", + "interval": "", + "key": "Q-ad132e3e-b05b-405d-b2e8-e791bff8b3cc-0", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Request Rate", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 10, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "editorMode": "code", + "expr": "sum(rate( utxorpc_proxy_total_requests{network=~\".*$network.*\"} [$__rate_interval])) by (consumer)", + "interval": "", + "key": "Q-ad132e3e-b05b-405d-b2e8-e791bff8b3cc-0", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Requests per customer", + "type": "timeseries" + } + ], + "refresh": "10s", + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "includeAll": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "refresh": 1, + "type": "datasource" + }, + { + "current": { + "text": [ + "mainnet" + ], + "value": [ + "mainnet" + ] + }, + "includeAll": true, + "multi": true, + "name": "network", + "options": [ + { + "selected": true, + "text": "mainnet", + "value": "mainnet" + }, + { + "selected": false, + "text": "preview", + "value": "preview" + }, + { + "selected": false, + "text": "preprod", + "value": "preprod" + } + ], + "query": "mainnet,preview,preprod", + "type": "custom" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "UTxO RPC", + "version": 1, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboards/txpipe/kupo-proxy.json b/grafana/dashboards/txpipe/kupo-proxy.json new file mode 100644 index 0000000..48bb4d4 --- /dev/null +++ b/grafana/dashboards/txpipe/kupo-proxy.json @@ -0,0 +1,501 @@ +{ + "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, + "links": [], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 25, + "panels": [], + "title": "Proxy", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 26 + }, + "id": 27, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "editorMode": "code", + "expr": "sum by (consumer)(rate(kupo_proxy_http_total_request{namespace=\"ftr-kupo-v1\", exported_instance=~\".*$network.*\", job=~\"ftr-kupo-v1/proxy-blue-(cardano-)?$network\"}[5m])) > 0", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Request Rate by Consumer (blue)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 26 + }, + "id": 28, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "editorMode": "code", + "expr": "sum(rate(kupo_proxy_http_total_request{namespace=\"ftr-kupo-v1\", exported_instance=~\".*$network.*\", job=~\"ftr-kupo-v1/proxy-blue-(cardano-)?$network\" }[5m]) > 0) by (status_code)", + "legendFormat": "{{status_code}}.{{consumer}}", + "range": true, + "refId": "A" + } + ], + "title": "Request Rate by Code (blue)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 0, + "y": 35 + }, + "id": 29, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "editorMode": "code", + "expr": "sum by (consumer)(rate(kupo_proxy_http_total_request{namespace=\"ftr-kupo-v1\", exported_instance=~\".*$network.*\", job=~\"ftr-kupo-v1/proxy-green-(cardano-)?$network\"}[5m]) > 0)", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Request Rate by Consumer (green)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "200." + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": true, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 9, + "w": 12, + "x": 12, + "y": 35 + }, + "id": 30, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.0-18356121373.patch5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource_uid}" + }, + "editorMode": "code", + "expr": "sum(rate(kupo_proxy_http_total_request{namespace=\"ftr-kupo-v1\", exported_instance=~\".*$network.*\", job=~\"ftr-kupo-v1/proxy-green-(cardano-)?$network\" }[5m]) > 0) by (status_code)", + "legendFormat": "{{status_code}}.{{consumer}}", + "range": true, + "refId": "A" + } + ], + "title": "Request Rate by Code (green)", + "type": "timeseries" + } + ], + "preload": false, + "schemaVersion": 42, + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": "mainnet", + "value": "mainnet" + }, + "hide": 0, + "includeAll": false, + "multi": false, + "name": "network", + "options": [ + { + "selected": true, + "text": "mainnet", + "value": "mainnet" + }, + { + "selected": false, + "text": "preprod", + "value": "preprod" + }, + { + "selected": false, + "text": "preview", + "value": "preview" + } + ], + "query": "mainnet,preprod,preview", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Cardano Kupo Proxy", + "version": 0 +} \ No newline at end of file From aca47c99dd320bca3f98819226020e4041ddd838 Mon Sep 17 00:00:00 2001 From: Maximiliano Duthey Date: Thu, 23 Oct 2025 11:12:34 -0300 Subject: [PATCH 2/4] fix: modify config with sops --- config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index 522eded..3709017 100644 --- a/config.yaml +++ b/config.yaml @@ -42,7 +42,7 @@ sops: UEtmcVpPQlMzWXNaeS93bndHTmdMYWMKr5pcKioeQQJ2QH43yhfRb2T/mTRCDnfg SDF1sbPenrnDJRA8Gi9CphX9bPz3XtkjRTsFYxD/hW1doSTiflkVJw== -----END AGE ENCRYPTED FILE----- - lastmodified: "2025-10-09T17:23:53Z" - mac: ENC[AES256_GCM,data:vdwfHztAllq0cAJzujes+o80ETmbMn/CsEhN/gkyWfbIFechb+HOtQ1hh34gJFPwX0BOoVNyFnpN3E6cBMX6BkrkkcsQ+b/ysrb+qjuUMVIrJq5UMmMR7L5T1nSvIdBBbPuE6Zc7NCm1NUbEwPxaQBx4LAnhAcisJKH03dPLkcc=,iv:hct1ieU8BhNjT+pHt6x1SorG6DJtmyACk59R/CwjLuI=,tag:VV4vUbhfhcNlhV0eczR+/w==,type:str] + lastmodified: "2025-10-23T14:12:09Z" + mac: ENC[AES256_GCM,data:H/N90nkvPr2q2xMcxxknjvD/4k0v2rwFDxRKxqoxe9jY2PvnkoWcjoolytI4LEaaEJO8pqM4cv1dv+2V5smVS92GoCRMIFX6Atxm4rZRKov8+hgwP0yCS6So2Y1/UQOOjTM3tCPhIpQI+QrbFjmj0zgyeafUt4adAXR+O19a0/g=,iv:vm2ZW/fuVTMDy0ILrH5vgIlZYws+6Ha2pYDmCUbV2aQ=,tag:vPtm5udDSd98CVUPzXT14g==,type:str] encrypted_regex: ^(auth)$ version: 3.11.0 From 119377c32de088513c635f1921a686e8442c1521 Mon Sep 17 00:00:00 2001 From: Maximiliano Duthey Date: Thu, 23 Oct 2025 13:11:06 -0300 Subject: [PATCH 3/4] fix: add default value for datasource_uids variable --- modules/grafana_dashboard/variables.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/grafana_dashboard/variables.tf b/modules/grafana_dashboard/variables.tf index e6dbe76..f44dfa3 100644 --- a/modules/grafana_dashboard/variables.tf +++ b/modules/grafana_dashboard/variables.tf @@ -1,6 +1,7 @@ variable "datasource_uids" { type = map(string) description = "Map of data source names to their respective UIDs." + default = {} } variable "grafana_title" { From 72e8994c79f06252995d7e80b99edb688623c118 Mon Sep 17 00:00:00 2001 From: Maximiliano Duthey Date: Thu, 23 Oct 2025 13:21:53 -0300 Subject: [PATCH 4/4] fix: handle missing datasource_uids in grafana dashboard configuration --- modules/grafana_dashboard/main.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/grafana_dashboard/main.tf b/modules/grafana_dashboard/main.tf index 71708d9..5b996e4 100644 --- a/modules/grafana_dashboard/main.tf +++ b/modules/grafana_dashboard/main.tf @@ -5,7 +5,11 @@ resource "grafana_folder" "this" { resource "grafana_dashboard" "this" { for_each = { for file in fileset("${path.root}/${var.local_directory}", "*.json") : - file => jsondecode(templatefile("${path.root}/${var.local_directory}/${file}", var.datasource_uids)) + # Shared folders doesn't have datasource_uids attached. + file => try( + jsondecode(templatefile("${path.root}/${var.local_directory}/${file}", var.datasource_uids)), + jsondecode(file("${path.root}/${var.local_directory}/${file}")) + ) } config_json = jsonencode(each.value)