Skip to content

Commit

Permalink
Added example Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskniep committed Jan 23, 2022
1 parent 0ab86ed commit e477c98
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ yarn sign --rootUrls http://localhost:3000/
- [Grafana UI Library](https://developers.grafana.com/ui) - UI components to help you build interfaces using Grafana Design System
- [Grafana Toolkit](https://github.com/grafana/grafana/tree/main/packages/grafana-toolkit#usage)
- [Grafana plugin SDK for Go](https://grafana.com/docs/grafana/latest/developers/plugins/backend/grafana-plugin-sdk-for-go/)

- [Roadmap: Grafana plugins platform] (https://github.com/grafana/grafana/issues/36228)
Empty file.
20 changes: 20 additions & 0 deletions grafana/provisioning/dashboards/dashboardprovider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: 1

providers:
# <string> an unique provider name
- name: 'DashboardProvider'
# <string, required> name of the dashboard folder. Required
folder: 'Genreal'
# <string, required> provider type. Required
type: file
# <bool> disable dashboard deletion
disableDeletion: false
# <bool> enable dashboard editing
editable: true
# <int> how often Grafana will scan for changed dashboards
updateIntervalSeconds: 60
# <bool> allow updating provisioned dashboards from the UI
allowUiUpdates: false
options:
# <string, required> path to dashboard files on disk. Required
path: /etc/grafana/provisioning/dashboards/
145 changes: 145 additions & 0 deletions grafana/provisioning/dashboards/moviedashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- 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": 1,
"iteration": 1642973246308,
"links": [],
"liveNow": false,
"panels": [
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 0
},
"id": 4,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "8.3.4",
"targets": [
{
"cypherQuery": "Match(m:Movie) where m.title = ${title:doublequote} return m.title, m.tagline, m.released",
"datasource": {
"type": "kniepdennis-neo4j-datasource",
"uid": "P13FD9E770BE36698"
},
"refId": "A"
}
],
"title": "Movie",
"type": "table"
}
],
"schemaVersion": 34,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "",
"value": ""
},
"hide": 0,
"name": "search",
"options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "",
"skipUrlSync": false,
"type": "textbox"
},
{
"current": {
"selected": false,
"text": "The Matrix",
"value": "The Matrix"
},
"definition": "Match(m:Movie) where toUpper(m.title) contains toUpper(${search:doublequote}) return m.title",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "title",
"options": [],
"query": {
"cypherQuery": "Match(m:Movie) where toUpper(m.title) contains toUpper(${search:doublequote}) return m.title"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Movie Dashboard",
"uid": "c3NinSb7z",
"version": 5,
"weekStart": ""
}

0 comments on commit e477c98

Please sign in to comment.