Skip to content

Commit

Permalink
[grafana] add description panel to dashboards (#1989)
Browse files Browse the repository at this point in the history
* add description panel to dashboards

* Update src/grafana/provisioning/dashboards/demo/opentelemetry-collector.json

Co-authored-by: Mikko Viitanen <[email protected]>

---------

Co-authored-by: Mikko Viitanen <[email protected]>
Co-authored-by: Juliano Costa <[email protected]>
  • Loading branch information
3 people authored Feb 7, 2025
1 parent 0f43a6e commit 5eb5426
Show file tree
Hide file tree
Showing 5 changed files with 378 additions and 283 deletions.
79 changes: 50 additions & 29 deletions src/grafana/provisioning/dashboards/demo/demo-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,41 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 2,
"id": 4,
"links": [],
"panels": [
{
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
"y": 0
},
"id": 21,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "This dashboard shows RED metrics for the selected service, as generated by the spanmetrics connector in the OpenTelemetry Collector.\nIf the selected service emits logs, the logs will also be displayed.\nCustom metrics generated by some services are also displayed.\n<br>\nChart panels may require 5 minutes after the Demo is started before rendering data.",
"mode": "html"
},
"pluginVersion": "11.4.0",
"title": "",
"type": "text"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
"y": 2
},
"id": 14,
"panels": [],
Expand Down Expand Up @@ -106,7 +131,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 1
"y": 3
},
"id": 2,
"interval": "2m",
Expand All @@ -122,7 +147,7 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -244,7 +269,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 1
"y": 3
},
"id": 10,
"interval": "2m",
Expand All @@ -260,7 +285,7 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -343,7 +368,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 9
"y": 11
},
"id": 12,
"interval": "2m",
Expand All @@ -359,7 +384,7 @@
"sort": "none"
}
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
Expand All @@ -382,7 +407,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 17
"y": 19
},
"id": 19,
"panels": [],
Expand Down Expand Up @@ -441,7 +466,7 @@
"h": 8,
"w": 4,
"x": 0,
"y": 18
"y": 20
},
"id": 20,
"options": {
Expand All @@ -456,7 +481,7 @@
},
"showHeader": true
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.4.0",
"targets": [
{
"alias": "",
Expand Down Expand Up @@ -541,7 +566,7 @@
"h": 8,
"w": 20,
"x": 4,
"y": 18
"y": 20
},
"id": 17,
"options": {
Expand All @@ -562,7 +587,7 @@
}
]
},
"pluginVersion": "11.3.0",
"pluginVersion": "11.4.0",
"targets": [
{
"alias": "",
Expand Down Expand Up @@ -603,7 +628,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 26
"y": 28
},
"id": 18,
"panels": [],
Expand Down Expand Up @@ -658,8 +683,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand All @@ -675,7 +699,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 27
"y": 29
},
"id": 6,
"options": {
Expand Down Expand Up @@ -779,8 +803,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand All @@ -796,7 +819,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 27
"y": 29
},
"id": 8,
"options": {
Expand Down Expand Up @@ -885,8 +908,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand All @@ -901,7 +923,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 35
"y": 37
},
"id": 4,
"options": {
Expand Down Expand Up @@ -982,8 +1004,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand All @@ -998,7 +1019,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 35
"y": 37
},
"id": 16,
"interval": "2m",
Expand All @@ -1022,7 +1043,7 @@
"uid": "webstore-metrics"
},
"editorMode": "code",
"expr": "rate(otel_trace_span_processor_spans{job=\"opentelemetry-demo/quote\"}[2m])*120",
"expr": "rate(otel_trace_span_processor_spans{job=\"quote\"}[2m])*120",
"interval": "2m",
"legendFormat": "{{state}}",
"range": true,
Expand Down Expand Up @@ -1071,6 +1092,6 @@
"timezone": "",
"title": "Demo Dashboard",
"uid": "W2gX2zHVk",
"version": 1,
"version": 2,
"weekStart": ""
}
}
Loading

0 comments on commit 5eb5426

Please sign in to comment.