add info for grafana configuration
This commit is contained in:
@@ -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:
|
||||

|
||||
|
||||
|
||||
## 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`
|
||||
Reference in New Issue
Block a user