add info for grafana configuration

This commit is contained in:
2024-11-13 12:59:12 +01:00
parent 36fd6bf8a1
commit a39f3f8601
+28
View File
@@ -17,3 +17,31 @@ New telegraf/hiera metric sources are automatically added by a systemd timer onc
To add a new metric source manually go about like this:
![](_static/add_new_metric_source.png)
## Configuration
### Grafana Dashboard Management
Dashboards can be automatically imported into grafana via files on the filesytem: https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards
**/etc/grafana/provisioning/dashboards/importer.yaml**:
```yaml
# # config file version
# https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
folderUid: ''
type: file
disableDeletion: false
updateIntervalSeconds: 10
allowUiUpdates: false
options:
path: /var/lib/grafana/dashboards
foldersFromFilesStructure: true
```
The dashboard `.json` files need to be located then in `/var/lib/grafana/dashboards`