UNPKG

@oriolrius/grafana-business-text

Version:

Data-driven text with Markdown and Handlebars support for Grafana

622 lines (621 loc) 16.6 kB
{ "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": 7, "links": [], "panels": [ { "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "fillOpacity": 80, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineWidth": 1, "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 3, "options": { "barRadius": 0, "barWidth": 0.97, "fullHighlight": false, "groupWidth": 0.7, "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "orientation": "auto", "showValue": "auto", "stacking": "none", "tooltip": { "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 0 }, "targets": [ { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "refId": "A", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[\n {\n \"timestamp\": \"2024-08-02T00:30:18.692Z\",\n \"data\": 1\n },\n {\n \"timestamp\": \"2024-08-02T00:31:18.692Z\",\n \"data\": 2\n }\n]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "refId": "B", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } } ], "title": "Bar Charts", "type": "barchart" }, { "datasource": { "default": false, "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "id": 4, "options": { "afterRender": "", "content": "```json\n{{{json @root}}}\n```", "contentPartials": [], "defaultContent": "The query didn't return any results.", "editor": { "format": "auto", "language": "handlebars" }, "editors": [], "externalStyles": [], "helpers": "", "renderMode": "data", "styles": "", "wrap": true }, "targets": [ { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "refId": "A", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "refId": "B", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "refId": "C", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } } ], "title": "Business Text All frames are empty", "type": "volkovlabs-text-panel" }, { "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "id": 2, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": ["sum"], "show": false }, "frameIndex": 1, "showHeader": true }, "targets": [ { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "refId": "A", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[\n {\n \"timestamp\": \"2024-08-02T00:30:18.692Z\",\n \"data\": 1\n },\n {\n \"timestamp\": \"2024-08-02T00:31:18.692Z\",\n \"data\": 2\n }\n]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "refId": "B", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } } ], "title": "Time Series", "type": "table" }, { "datasource": { "default": false, "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "id": 5, "options": { "afterRender": "", "content": "```json\n{{{json @root}}}\n```", "contentPartials": [], "defaultContent": "The query didn't return any results.", "editor": { "format": "auto", "language": "handlebars" }, "editors": [], "externalStyles": [], "helpers": "", "renderMode": "data", "styles": "", "wrap": true }, "targets": [ { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "refId": "E", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "refId": "A", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[\n {\n \"data\": \"data\",\n \"nullData\": null,\n \"timestamp\": \"2024-08-02T00:30:18.692Z\"\n }\n]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "parser": "backend", "refId": "B", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "refId": "C", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[\n{\n \"data\": \"data\",\n \"nullData\": null,\n \"timestamp\": \"2024-08-02T00:30:18.692Z\"\n }\n]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "parser": "backend", "refId": "D", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } } ], "title": "Business Text some of frames are empty", "type": "volkovlabs-text-panel" }, { "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "id": 1, "options": { "afterRender": "", "content": "```json\n{{{json @root}}}\n```", "contentPartials": [], "defaultContent": "The query didn't return any results.", "editor": { "format": "auto", "language": "handlebars" }, "editors": [], "externalStyles": [], "helpers": "", "renderMode": "data", "styles": "", "wrap": true }, "targets": [ { "columns": [], "data": "[]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "refId": "A", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } }, { "columns": [], "data": "[\n {\n \"timestamp\": \"2024-08-02T00:30:18.692Z\",\n \"data\": \"data\",\n \"nullData\": null\n }\n]", "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "fdwzblygl5i4gf" }, "filters": [], "format": "table", "global_query_id": "", "hide": false, "refId": "B", "root_selector": "", "source": "inline", "type": "json", "url": "https://github.com/grafana/grafana-infinity-datasource/blob/main/testdata/users.json", "url_options": { "data": "", "method": "GET" } } ], "title": "Business Text First frame is empty", "type": "volkovlabs-text-panel" } ], "preload": false, "schemaVersion": 40, "tags": [], "templating": { "list": [] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "All data render mode", "uid": "edwgdt36v13pca11", "version": 1, "weekStart": "" }