123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411 |
- ; app_mode = production
- ; instance_name = ${HOSTNAME}
- [paths]
- ;data = /var/lib/grafana
- ;logs = /var/log/grafana
- ;plugins = /var/lib/grafana/plugins
- [server]
- protocol = https
- ;http_addr =
- ;http_port = 3000
- domain = {{ grains.id }}
- ;enforce_domain = false
- ;root_url = http://localhost:3000
- ;router_logging = false
- ;static_root_path = public
- ;enable_gzip = false
- cert_file = "/etc/ssl/certs/{{ grains.id }}.cert.pem"
- cert_key = "/etc/ssl/private/{{ grains.id }}.key.pem"
- [database]
- ;type = sqlite3
- ;host = 127.0.0.1:3306
- ;name = grafana
- ;user = root
- ;password =
- ;url =
- ;ssl_mode = disable
- ;path = grafana.db
- ;max_conn =
- ;max_idle_conn =
- ;max_open_conn =
- [session]
- ;provider = file
- ;provider_config = sessions
- ;cookie_name = grafana_sess
- ;cookie_secure = false
- ;session_life_time = 86400
- [dataproxy]
- ;logging = false
- [analytics]
- reporting_enabled = false
- ;check_for_updates = true
- ;google_analytics_ua_id =
- [security]
- admin_user = {{ config.admin_user }}
- admin_password = {{ config.admin_password }}
- secret_key = {{ config.secret_key }}
- ;login_remember_days = 7
- ;cookie_username = grafana_user
- ;cookie_remember_name = grafana_remember
- ;disable_gravatar = false
- ;data_source_proxy_whitelist =
- [snapshots]
- ;external_enabled = true
- ;external_snapshot_url = https://snapshots-origin.raintank.io
- ;external_snapshot_name = Publish to snapshot.raintank.io
- ;snapshot_remove_expired = true
- ;snapshot_TTL_days = 90
- [users]
- allow_sign_up = false
- ;allow_org_create = true
- ;auto_assign_org = true
- ;auto_assign_org_role = Viewer
- login_hint = username
- ;default_theme = dark
- [auth]
- ;disable_login_form = false
- [auth.anonymous]
- enabled = true
- org_name = Freifunk Hochstift
- org_role = Viewer
- [auth.github]
- ;enabled = false
- ;allow_sign_up = true
- ;client_id = some_id
- ;client_secret = some_secret
- ;scopes = user:email,read:org
- ;auth_url = https://github.com/login/oauth/authorize
- ;token_url = https://github.com/login/oauth/access_token
- ;api_url = https://api.github.com/user
- ;team_ids =
- ;allowed_organizations =
- [auth.google]
- ;enabled = false
- ;allow_sign_up = true
- ;client_id = some_client_id
- ;client_secret = some_client_secret
- ;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
- ;auth_url = https://accounts.google.com/o/oauth2/auth
- ;token_url = https://accounts.google.com/o/oauth2/token
- ;api_url = https://www.googleapis.com/oauth2/v1/userinfo
- ;allowed_domains =
- [auth.generic_oauth]
- ;enabled = false
- ;name = OAuth
- ;allow_sign_up = true
- ;client_id = some_id
- ;client_secret = some_secret
- ;scopes = user:email,read:org
- ;auth_url = https://foo.bar/login/oauth/authorize
- ;token_url = https://foo.bar/login/oauth/access_token
- ;api_url = https://foo.bar/user
- ;team_ids =
- ;allowed_organizations =
- [auth.grafananet]
- ;enabled = false
- ;allow_sign_up = true
- ;client_id = some_id
- ;client_secret = some_secret
- ;scopes = user:email
- ;allowed_organizations =
- [auth.proxy]
- ;enabled = false
- ;header_name = X-WEBAUTH-USER
- ;header_property = username
- ;auto_sign_up = true
- ;ldap_sync_ttl = 60
- ;whitelist = 192.168.1.1, 192.168.2.1
- [auth.basic]
- ;enabled = true
- [auth.ldap]
- {%- if 'ldap' in config %}
- enabled = true
- {%- else %}
- enabled = false
- {%- endif %}
- config_file = /etc/grafana/ldap.toml
- allow_sign_up = true
- [smtp]
- ;enabled = false
- ;host = localhost:25
- ;user =
- ;password =
- ;cert_file =
- ;key_file =
- ;skip_verify = false
- ;from_address = admin@grafana.localhost
- ;from_name = Grafana
- [emails]
- ;welcome_email_on_sign_up = false
- [log]
- ;mode = console file
- ;level = info
- ;filters =
- [log.console]
- ;level =
- ;format = console
- [log.file]
- ;level =
- ;format = text
- ;log_rotate = true
- ;max_lines = 1000000
- ;max_size_shift = 28
- ;daily_rotate = true
- ;max_days = 7
- [log.syslog]
- ;level =
- ;format = text
- ;network =
- ;address =
- ;facility =
- ;tag =
- [event_publisher]
- ;enabled = false
- ;rabbitmq_url = amqp://localhost/
- ;exchange = grafana_events
- [dashboards.json]
- ;enabled = false
- ;path = /var/lib/grafana/dashboards
- [alerting]
- ;enabled = true
- ;execute_alerts = true
- [metrics]
- ;enabled = true
- ;interval_seconds = 10
- [metrics.graphite]
- ;address =
- ;prefix = prod.grafana.%(instance_name)s.
- [grafana_net]
- ;url = https://grafana.net
- [external_image_storage]
- ;provider =
- [external_image_storage.s3]
- ;bucket_url =
- ;access_key =
- ;secret_key =
- [external_image_storage.webdav]
- ;url =
- ;username =
- ;password =
- [plugin.grafana-image-renderer]
- rendering_ignore_https_errors = true
|