Skip to content

Commit

Permalink
Add grafana datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
tbauriedel committed Oct 4, 2024
1 parent a749994 commit e6ec0d4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ Vagrant.configure("2") do |config|
config.vm.network "forwarded_port", guest: 5665, host: 5665
config.vm.network "forwarded_port", guest: 8086, host: 8086
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network "forwarded_port", guest: 3306, host: 3306
config.vm.network "forwarded_port", guest: 8888, host: 8888
end
21 changes: 21 additions & 0 deletions ansible/vars/grafana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,24 @@
grafana_security:
admin_user: admin
admin_password: admin
allow_embedding: true
grafana_auth:
anonymous:
enabled: true
org_role: Viewer

grafana_datasources:
- name: "Local CarbonApi"
ds_type: graphite
ds_url: http://localhost:8888
- name: "Local InfluxDB - Flux"
ds_type: influxdb
ds_url: http://localhost:8086
additional_json_data:
version: "Flux"
organization: "monitoring"
defaultBucket: "icinga2"
tlsSkipVerify: false
additional_secure_json_data:
token: "AHDUKAGSszifgj21711sfztGASg2"
# Add "InfluxDB - InfluxQL" as datasource
1 change: 1 addition & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ collections:
- name: tbauriedel.gographite
- name: tbauriedel.influxdb2
- name: grafana.grafana
- name: community.grafana

0 comments on commit e6ec0d4

Please sign in to comment.