Skip to content

Commit

Permalink
Correct way to add dashboards.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelfrykholm committed Aug 16, 2024
1 parent 2c15740 commit 8f443b3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/naemon_monitor.pp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@
group => 'root',
owner => 'root',
}
file { '/opt/naemon_monitor/grafana-provisioning/dashboards/default.yaml':
ensure => file,
content => template('sunet/naemon_monitor/grafana-provisioning/dashboards/default.yaml'),
mode => '0644',
group => 'root',
owner => 'root',
}
file { '/opt/naemon_monitor/grafana-provisioning/dashboards/overview.json':
ensure => file,
content => template('sunet/naemon_monitor/grafana-provisioning/dashboards/overview.json'),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: 1

providers:
- name: "dashboards"
orgId: 1
type: file
disableDeletion: false
updateIntervalSeconds: 60
allowUiUpdates: false
options:
path: /etc/grafana/provisioning
foldersFromFilesStructure: true

0 comments on commit 8f443b3

Please sign in to comment.