# managed by Ansible app_mode = production instance_name = <{{ grafana_instance_name }}> [paths] data = {{ grafana_dir }}/data logs = {{ grafana_dir }}/logs plugins = {{ grafana_dir }}/plugins provisioning = provisioning temp_data_lifetime = 24h [server] protocol = http http_addr = http_port = {{ grafana_port }} router_logging = true enable_gzip = true ; domain = 0.0.0.0 ; root_url = %(protocol)s://%(domain)s:%(http_port)s/ [database] ; type = sqlite3 ; host = 127.0.0.1:3306 ; name = grafana ; user = root ; password = path = grafana.db max_idle_conn = 2 log_queries = true cache_mode = shared [remote_cache] type = database [security] disable_initial_admin_creation = true disable_gravatar = true allow_embedding = true strict_transport_security = false [snapshots] external_enabled = true public_mode = {{ grafana_is_public }} ; external_snapshot_url = https://snapshots-origin.raintank.io ; external_snapshot_name = Publish to snapshot.raintank.io [dashboards] versions_to_keep = 20 min_refresh_interval = 5s default_home_dashboard_path = [users] allow_sign_up = false allow_org_create = false auto_assign_org = false auto_assign_org_role = Viewer verify_email_enabled = false login_hint = email or username password_hint = password viewers_can_edit = true editors_can_admin = false user_invite_max_lifetime_duration = 24h default_theme = {{ grafana_default_theme }} [auth] login_cookie_name = grafana_session [auth.anonymous] enabled = false [auth.github] enabled = false [auth.gitlab] enabled = false [auth.google] enabled = false [auth.grafana_com] enabled = false [auth.azuread] enabled = false [auth.okta] enabled = false [auth.generic_oauth] enabled = false [auth.basic] enabled = true [auth.proxy] enabled = false [auth.ldap] enabled = false config_file = /etc/grafana/ldap.toml allow_sign_up = true [smtp] enabled = false [emails] welcome_email_on_sign_up = false templates_pattern = emails/*.html [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 = [quota] enabled = false [alerting] enabled = true execute_alerts = true error_or_timeout = alerting nodata_or_nullvalues = no_data concurrent_render_limit = 5 ; evaluation_timeout_seconds = 30 ; notification_timeout_seconds = 30 ; max_attempts = 3 ; min_interval_seconds = 1 [explore] enabled = true [metrics] enabled = true interval_seconds = 10 disable_total_stats = false ; basic_auth_username = ; basic_auth_password = [panels] disable_sanitize_html = false [plugins] enable_alpha = true [plugin.grafana-image-renderer] [date_formats] default_timezone = browser