aboutsummaryrefslogblamecommitdiffstats
path: root/roles/grafana/templates/etc-grafana.ini.j2
blob: 8bcad25bdac5e022fd629c1f481d0d8a534aa6ae (plain) (tree)





















































































































































































































































                                                                                             

# grafana configuration
# managed by Ansible

app_mode = production
instance_name = <rgoncalves.se monitoring>

[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 }}
;domain = 0.0.0.0

# The full public facing url you use in browser, used for redirects and emails
# If you use reverse proxy and sub path specify full url (with sub path)
;root_url = %(protocol)s://%(domain)s:%(http_port)s/

# Log web requests
router_logging = true
enable_gzip = true

[database]

;type = sqlite3
;host = 127.0.0.1:3306
;name = grafana
;user = root
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
;password =

path = grafana.db
max_idle_conn = 2
log_queries = true
cache_mode = shared

[remote_cache]
type = database

[dataproxy]

[analytics]

[security]
disable_initial_admin_creation = true
disable_gravatar = true
allow_embedding = true

strict_transport_security = false

[snapshots]
# snapshot sharing options
external_enabled = true
;external_snapshot_url = https://snapshots-origin.raintank.io
;external_snapshot_name = Publish to snapshot.raintank.io

public_mode = false

[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 = dark

[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

[annotations.dashboard]

[explore]
enabled = true

# Metrics available at HTTP API Url /metrics
[metrics]
enabled = true
interval_seconds  = 10
disable_total_stats = false

; basic_auth_username =
; basic_auth_password =

[metrics.environment_info]

[metrics.graphite]
;address =
;prefix = prod.grafana.%(instance_name)s.

[grafana_com]
;url = https://grafana.com

[tracing.jaeger]

[external_image_storage]
;provider =

[external_image_storage.s3]
;endpoint =
;path_style_access =
;bucket =
;region =
;path =
;access_key =
;secret_key =

[external_image_storage.webdav]
;url =
;public_url =
;username =
;password =

[external_image_storage.gcs]
;key_file =
;bucket =
;path =

[external_image_storage.azure_blob]
;account_name =
;account_key =
;container_name =

[external_image_storage.local]

[rendering]

[panels]
disable_sanitize_html = false

[plugins]
enable_alpha = true

[plugin.grafana-image-renderer]

[enterprise]
;license_path =

[feature_toggles]
;enable =

[date_formats]
default_timezone = browser
remember that computers suck.