Skip to content

Commit 233dd62

Browse files
authored
Merge pull request #6911 from EwoudK/grafanaDashboard
[8.1] add grafana demo dashboard
2 parents a8e32a0 + 314abf3 commit 233dd62

File tree

2 files changed

+722
-0
lines changed

2 files changed

+722
-0
lines changed

dashboards/GrafanaDemo/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Grafana Demo
2+
3+
A running example of this dashboard can be found on the LHCb grafana organisation in the Dev Area with the name `Demo Dashboard`.
4+
5+
## What plots does the dashboard contain?
6+
- Production Jobs By Final Minor Status (MySQL)
7+
- User Jobs By Final Minor Status (MySQL)
8+
- Job CPU Efficiency By Job Type (MySQL)
9+
- User Jobs By Job Type (ElasticSearch)
10+
- User Jobs By Final Minor Status (MySQL)
11+
- Pilots By Status (MySQL)
12+
13+
## How to import this dashboard into another Grafana installation?
14+
- Create Grafana data sources for the MySQL database and ElasticSearch cluster (both the DIRAC certification versions).
15+
- Create a new dashboard and in 'Dashboard settings' under 'JSON model' replace the JSON representation of the dashboard with this one.
16+
- In the JSON file, replace the datasource uid's with the ones for the data sources in your grafana installation. You can find the UID of a data source:
17+
- with the [API](https://grafana.com/docs/grafana/latest/developers/http_api/data_source/)
18+
- by creating a new visualisation using this data source and looking into the JSON model of the visualisation (right click the title > Inspect > Panel JSON)
19+
20+
```
21+
"datasource": {
22+
"type": "mysql",
23+
"uid": "R3A-SHw7z" <- CHANGE THIS VALUE TO THE ONE FOR YOUR INSTALLATION
24+
},
25+
```

0 commit comments

Comments
 (0)