@oriolrius/grafana-business-text
Version:
Data-driven text with Markdown and Handlebars support for Grafana
403 lines (402 loc) • 9.79 kB
JSON
{
"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": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "series"
},
"properties": [
{
"id": "unit",
"value": "none"
},
{
"id": "decimals",
"value": 3
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 3,
"options": {
"afterRender": "",
"content": "```json\n{{{json @root}}}\n```",
"contentPartials": [],
"defaultContent": "The query didn't return any results.",
"editor": {
"format": "auto",
"height": 200,
"language": "markdown"
},
"editors": [],
"externalScripts": [],
"externalStyles": [],
"helpers": "",
"renderMode": "data",
"styles": "",
"wrap": true
},
"targets": [
{
"datasource": {
"type": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"frame": {
"fields": [
{
"config": {},
"name": "time",
"type": "number",
"values": [1713328742800, 1713328762800, 1713328782800, 1713328802800, 1713328822800, 1713328842800]
},
{
"config": {},
"name": "series",
"type": "number",
"values": [
71.60611982291123, 71.61689011800895, 72.01347581897211, 71.86455471820847, 72.16478293268965,
71.71156805525236
]
}
],
"meta": {}
},
"refId": "A"
}
],
"title": "Random Walk All Data",
"type": "volkovlabs-text-panel"
},
{
"datasource": {
"type": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "series"
},
"properties": [
{
"id": "unit",
"value": "none"
},
{
"id": "decimals",
"value": 3
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 0
},
"id": 2,
"options": {
"afterRender": "",
"content": "```json\n{{{json @root}}}\n```",
"contentPartials": [],
"defaultContent": "The query didn't return any results.",
"editor": {
"format": "auto",
"height": 200,
"language": "markdown"
},
"editors": [],
"externalScripts": [],
"externalStyles": [],
"helpers": "",
"renderMode": "everyRow",
"styles": "",
"wrap": true
},
"targets": [
{
"datasource": {
"type": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"frame": {
"fields": [
{
"config": {},
"name": "time",
"type": "number",
"values": [1713328742800, 1713328762800, 1713328782800, 1713328802800, 1713328822800, 1713328842800]
},
{
"config": {},
"name": "series",
"type": "number",
"values": [
71.60611982291123, 71.61689011800895, 72.01347581897211, 71.86455471820847, 72.16478293268965,
71.71156805525236
]
}
],
"meta": {}
},
"refId": "A"
}
],
"title": "Random Walk Every row",
"type": "volkovlabs-text-panel"
},
{
"datasource": {
"type": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "series"
},
"properties": [
{
"id": "unit",
"value": "none"
},
{
"id": "decimals",
"value": 3
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 9
},
"id": 1,
"options": {
"afterRender": "",
"content": "```json\n{{{json @root}}}\n```",
"contentPartials": [],
"defaultContent": "The query didn't return any results.",
"editor": {
"format": "auto",
"height": 200,
"language": "markdown"
},
"editors": [],
"externalScripts": [],
"externalStyles": [],
"helpers": "",
"renderMode": "allRows",
"styles": "",
"wrap": true
},
"targets": [
{
"datasource": {
"type": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"frame": {
"fields": [
{
"config": {},
"name": "time",
"type": "number",
"values": [1713328742800, 1713328762800, 1713328782800, 1713328802800, 1713328822800, 1713328842800]
},
{
"config": {},
"name": "series",
"type": "number",
"values": [
71.60611982291123, 71.61689011800895, 72.01347581897211, 71.86455471820847, 72.16478293268965,
71.71156805525236
]
}
],
"meta": {}
},
"refId": "A"
}
],
"title": "Random Walk",
"type": "volkovlabs-text-panel"
},
{
"datasource": {
"type": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 9
},
"id": 4,
"options": {
"afterRender": "",
"content": "<div class=\"w3-text-red\">\n <p data-testid='red-color-text-element'>Test text</p>\n</div>\n\n<button data-testid='black-button-element' class=\"w3-button w3-black\">Button Button</button>",
"contentPartials": [],
"defaultContent": "The query didn't return any results.",
"editor": {
"format": "auto",
"language": "markdown"
},
"editors": ["styles"],
"externalStyles": [
{
"id": "18c4ea54-4ade-47d1-90f0-946529a47efa",
"url": "https://www.w3schools.com/w3css/4/w3.css"
}
],
"helpers": "",
"renderMode": "allRows",
"styles": "",
"wrap": true
},
"targets": [
{
"datasource": {
"type": "marcusolsson-static-datasource",
"uid": "U0HP2Rv4z"
},
"frame": {
"fields": [
{
"config": {},
"name": "test",
"type": "string",
"values": [""]
}
],
"meta": {}
},
"refId": "A"
}
],
"title": "External styles",
"type": "volkovlabs-text-panel"
}
],
"preload": false,
"refresh": "",
"schemaVersion": 41,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "E2E",
"uid": "e0b41aac-0785-4bbe-81d7-e1df69efa571",
"version": 1
}