Skip to content

Commit 592dfaa

Browse files
feat: Adds provisioned dashboard
1 parent e453713 commit 592dfaa

2 files changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: 1
2+
3+
providers:
4+
- name: 'provisioning'
5+
disableDeletion: true
6+
updateIntervalSeconds: 10
7+
allowUiUpdates: false
8+
options:
9+
path: /etc/grafana/provisioning/dashboards
10+
foldersFromFilesStructure: true
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"uid": "haystack-example",
3+
"title": "Haystack Example",
4+
"schemaVersion": 39,
5+
"version": 1,
6+
"editable": true,
7+
"tags": [],
8+
"time": { "from": "now-6h", "to": "now" },
9+
"timepicker": {},
10+
"refresh": "",
11+
"panels": [
12+
{
13+
"id": 1,
14+
"type": "timeseries",
15+
"title": "Time Series",
16+
"gridPos": { "x": 0, "y": 0, "w": 12, "h": 8 },
17+
"datasource": { "type": "needleinajaystack-haystack-datasource", "uid": "Haystack" },
18+
"targets": [
19+
{
20+
"refId": "A",
21+
"datasource": { "type": "needleinajaystack-haystack-datasource", "uid": "Haystack" },
22+
"type": "eval",
23+
"eval": "[{ts: now()-1hr, v0: 0}, {ts: now(), v0: 10}].toGrid"
24+
}
25+
]
26+
},
27+
{
28+
"id": 2,
29+
"type": "table",
30+
"title": "Table",
31+
"gridPos": { "x": 12, "y": 0, "w": 12, "h": 8 },
32+
"datasource": { "type": "needleinajaystack-haystack-datasource", "uid": "Haystack" },
33+
"targets": [
34+
{
35+
"refId": "A",
36+
"datasource": { "type": "needleinajaystack-haystack-datasource", "uid": "Haystack" },
37+
"type": "eval",
38+
"eval": "[{name: \"a\", value: 75, temp}, {name: \"b\", value: 5, pressure}].toGrid"
39+
}
40+
]
41+
}
42+
],
43+
"__requires": [
44+
{
45+
"type": "datasource",
46+
"id": "needleinajaystack-haystack-datasource",
47+
"name": "Haystack",
48+
"version": "1.0.0"
49+
}
50+
]
51+
}

0 commit comments

Comments
 (0)