grafana
Setup Grafana observability platform.
- Default Variables
- grafana_admin_password
- grafana_admin_user
- grafana_auth_providers
- grafana_bind_ip
- grafana_bind_port
- grafana_cache_provider
- grafana_cache_provider_config
- grafana_data_dir
- grafana_datasource_files
- grafana_db_name
- grafana_db_password
- grafana_db_port
- grafana_db_server
- grafana_db_ssl_mode
- grafana_db_type
- grafana_db_user
- grafana_instance_name
- grafana_listen_address
- grafana_log_dir
- grafana_log_level
- grafana_log_mode
- grafana_log_providers
- grafana_login_form_enabled
- grafana_logout_menu_enabled
- grafana_packages_extra
- grafana_plugin_dir
- grafana_secret_key
- grafana_smtp_from
- grafana_smtp_from_name
- grafana_smtp_host
- grafana_smtp_password
- grafana_smtp_port
- grafana_smtp_username
- Dependencies
grafana_admin_password: secure
grafana_admin_user: admin
grafana_auth_providers: []
grafana_bind_ip: 127.0.0.1
grafana_bind_port: 61000
Either redis
, memcached' or
database`.
grafana_cache_provider: database
Cache connection string options:
database
: use Grafana’s primary databaseredis
: Redis connection URI e.g.addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false
memcache
: Memcache connection URI e.g.127.0.0.1:11211
grafana_cache_provider_config: _unset_
grafana_data_dir: /var/lib/grafana
grafana_datasource_files:
- grafana/datasources/*.yml.j2
grafana_db_name: grafana
grafana_db_password: secure
grafana_db_port: 5432
grafana_db_server: localhost
grafana_db_ssl_mode: disable
Database provider to use. Available options are mysql
, ‘postgres’ and sqlite3
. Extended configuration options are only applies to non-sqlite provider.
grafana_db_type: sqlite3
grafana_db_user: pggrafana
grafana_instance_name: grafana
grafana_listen_address: http://localhost
grafana_log_dir: /var/log/grafana
grafana_log_level: info
grafana_log_mode:
- console
- file
grafana_log_providers: []
grafana_login_form_enabled: true
grafana_logout_menu_enabled: true
grafana_packages_extra: []
grafana_plugin_dir: '{{ grafana_data_dir }}/plugins'
Should be replaced by your own secret.
grafana_secret_key: 1234567ABCDEFG
grafana_smtp_from: grafana@localhost
grafana_smtp_from_name: Grafana
grafana_smtp_host: _unset_
grafana_smtp_password: _unset_
grafana_smtp_port: 587
grafana_smtp_username: _unset_
None.