|
|
1f64cbe |
diff --git a/conf/distro-defaults.ini b/conf/distro-defaults.ini
|
|
|
1f64cbe |
new file mode 100644
|
|
|
1f64cbe |
index 000000000..b75e4c839
|
|
|
1f64cbe |
--- /dev/null
|
|
|
1f64cbe |
+++ b/conf/distro-defaults.ini
|
|
|
1f64cbe |
@@ -0,0 +1,610 @@
|
|
|
1f64cbe |
+##################### Grafana Configuration Defaults for distros #####################
|
|
|
1f64cbe |
+#
|
|
|
1f64cbe |
+# Do not modify this file in grafana installs
|
|
|
1f64cbe |
+#
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# possible values : production, development
|
|
|
1f64cbe |
+app_mode = production
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
|
|
|
1f64cbe |
+instance_name = ${HOSTNAME}
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Paths ###############################
|
|
|
1f64cbe |
+[paths]
|
|
|
1f64cbe |
+# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
|
|
|
1f64cbe |
+data = /var/lib/grafana
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Temporary files in `data` directory older than given duration will be removed
|
|
|
1f64cbe |
+temp_data_lifetime = 24h
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Directory where grafana can store logs
|
|
|
1f64cbe |
+logs = /var/log/grafana
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Directory where grafana will automatically scan and look for plugins
|
|
|
1f64cbe |
+plugins = /var/lib/grafana/plugins
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# folder that contains provisioning config files that grafana will apply on startup and while running.
|
|
|
1f64cbe |
+provisioning = conf/provisioning
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Server ##############################
|
|
|
1f64cbe |
+[server]
|
|
|
1f64cbe |
+# Protocol (http, https, socket)
|
|
|
1f64cbe |
+protocol = http
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# The ip address to bind to, empty will bind to all interfaces
|
|
|
1f64cbe |
+http_addr =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# The http port to use
|
|
|
1f64cbe |
+http_port = 3000
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# The public facing domain name used to access grafana from a browser
|
|
|
1f64cbe |
+domain = localhost
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Redirect to correct domain if host header does not match domain
|
|
|
1f64cbe |
+# Prevents DNS rebinding attacks
|
|
|
1f64cbe |
+enforce_domain = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# The full public facing url
|
|
|
1f64cbe |
+root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Log web requests
|
|
|
1f64cbe |
+router_logging = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# the path relative working path
|
|
|
1f64cbe |
+static_root_path = public
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# enable gzip
|
|
|
1f64cbe |
+enable_gzip = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# https certs & key file
|
|
|
1f64cbe |
+cert_file =
|
|
|
1f64cbe |
+cert_key =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Unix socket path
|
|
|
1f64cbe |
+socket = /tmp/grafana.sock
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Database ############################
|
|
|
1f64cbe |
+[database]
|
|
|
1f64cbe |
+# You can configure the database connection by specifying type, host, name, user and password
|
|
|
1f64cbe |
+# as separate properties or as on string using the url property.
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Either "mysql", "postgres" or "sqlite3", it's your choice
|
|
|
1f64cbe |
+type = sqlite3
|
|
|
1f64cbe |
+host = 127.0.0.1:3306
|
|
|
1f64cbe |
+name = grafana
|
|
|
1f64cbe |
+user = root
|
|
|
1f64cbe |
+# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
|
|
|
1f64cbe |
+password =
|
|
|
1f64cbe |
+# Use either URL or the previous fields to configure the database
|
|
|
1f64cbe |
+# Example: mysql://user:secret@host:port/database
|
|
|
1f64cbe |
+url =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Max idle conn setting default is 2
|
|
|
1f64cbe |
+max_idle_conn = 2
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Max conn setting default is 0 (mean not set)
|
|
|
1f64cbe |
+max_open_conn =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
|
|
|
1f64cbe |
+conn_max_lifetime = 14400
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Set to true to log the sql calls and execution times.
|
|
|
1f64cbe |
+log_queries =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# For "postgres", use either "disable", "require" or "verify-full"
|
|
|
1f64cbe |
+# For "mysql", use either "true", "false", or "skip-verify".
|
|
|
1f64cbe |
+ssl_mode = disable
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+ca_cert_path =
|
|
|
1f64cbe |
+client_key_path =
|
|
|
1f64cbe |
+client_cert_path =
|
|
|
1f64cbe |
+server_cert_name =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# For "sqlite3" only, path relative to data_path setting
|
|
|
1f64cbe |
+path = grafana.db
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# For "sqlite3" only. cache mode setting used for connecting to the database
|
|
|
1f64cbe |
+cache_mode = private
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Cache server #############################
|
|
|
1f64cbe |
+[remote_cache]
|
|
|
1f64cbe |
+# Either "redis", "memcached" or "database" default is "database"
|
|
|
1f64cbe |
+type = database
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# cache connectionstring options
|
|
|
1f64cbe |
+# database: will use Grafana primary database.
|
|
|
1f64cbe |
+# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
|
|
|
1f64cbe |
+# memcache: 127.0.0.1:11211
|
|
|
1f64cbe |
+connstr =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Session #############################
|
|
|
1f64cbe |
+[session]
|
|
|
1f64cbe |
+# Either "memory", "file", "redis", "mysql", "postgres", "memcache", default is "file"
|
|
|
1f64cbe |
+provider = file
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Provider config options
|
|
|
1f64cbe |
+# memory: not have any config yet
|
|
|
1f64cbe |
+# file: session dir path, is relative to grafana data_path
|
|
|
1f64cbe |
+# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
|
|
|
1f64cbe |
+# postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
|
|
|
1f64cbe |
+# mysql: go-sql-driver/mysql dsn config string, examples:
|
|
|
1f64cbe |
+# `user:password@tcp(127.0.0.1:3306)/database_name`
|
|
|
1f64cbe |
+# `user:password@unix(/var/run/mysqld/mysqld.sock)/database_name`
|
|
|
1f64cbe |
+# memcache: 127.0.0.1:11211
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+provider_config = sessions
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Session cookie name
|
|
|
1f64cbe |
+cookie_name = grafana_sess
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# If you use session in https only, default is false
|
|
|
1f64cbe |
+cookie_secure = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Session life time, default is 86400
|
|
|
1f64cbe |
+session_life_time = 86400
|
|
|
1f64cbe |
+gc_interval_time = 86400
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
|
|
|
1f64cbe |
+conn_max_lifetime = 14400
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Data proxy ###########################
|
|
|
1f64cbe |
+[dataproxy]
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# This enables data proxy logging, default is false
|
|
|
1f64cbe |
+logging = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# How long the data proxy should wait before timing out default is 30 (seconds)
|
|
|
1f64cbe |
+timeout = 30
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false.
|
|
|
1f64cbe |
+send_user_header = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Analytics ###########################
|
|
|
1f64cbe |
+[analytics]
|
|
|
1f64cbe |
+# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
|
|
|
1f64cbe |
+# No ip addresses are being tracked, only simple counters to track
|
|
|
1f64cbe |
+# running instances, dashboard and error counts. It is very helpful to us.
|
|
|
1f64cbe |
+# Change this option to false to disable reporting.
|
|
|
1f64cbe |
+reporting_enabled = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Set to false to disable all checks to https://grafana.com
|
|
|
1f64cbe |
+# for new versions (grafana itself and plugins), check is used
|
|
|
1f64cbe |
+# in some UI views to notify that grafana or plugin update exists
|
|
|
1f64cbe |
+# This option does not cause any auto updates, nor send any information
|
|
|
1f64cbe |
+# only a GET request to https://grafana.com to get latest versions
|
|
|
1f64cbe |
+check_for_updates = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Google Analytics universal tracking code, only enabled if you specify an id here
|
|
|
1f64cbe |
+google_analytics_ua_id =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Google Tag Manager ID, only enabled if you specify an id here
|
|
|
1f64cbe |
+google_tag_manager_id =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Security ############################
|
|
|
1f64cbe |
+[security]
|
|
|
1f64cbe |
+# default admin user, created on startup
|
|
|
1f64cbe |
+admin_user = admin
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# default admin password, can be changed before first start of grafana, or in profile settings
|
|
|
1f64cbe |
+admin_password = admin
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# used for signing
|
|
|
1f64cbe |
+secret_key = SW2YcwTIb9zpOOhoPsMm
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# disable gravatar profile images
|
|
|
1f64cbe |
+disable_gravatar = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# data source proxy whitelist (ip_or_domain:port separated by spaces)
|
|
|
1f64cbe |
+data_source_proxy_whitelist =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# disable protection against brute force login attempts
|
|
|
1f64cbe |
+disable_brute_force_login_protection = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# set to true if you host Grafana behind HTTPS. default is false.
|
|
|
1f64cbe |
+cookie_secure = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict" and "none"
|
|
|
1f64cbe |
+cookie_samesite = lax
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Snapshots ###########################
|
|
|
1f64cbe |
+[snapshots]
|
|
|
1f64cbe |
+# snapshot sharing options
|
|
|
1f64cbe |
+external_enabled = false
|
|
|
1f64cbe |
+external_snapshot_url = https://snapshots-origin.raintank.io
|
|
|
1f64cbe |
+external_snapshot_name = Publish to snapshot.raintank.io
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# remove expired snapshot
|
|
|
1f64cbe |
+snapshot_remove_expired = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Dashboards ##################
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[dashboards]
|
|
|
1f64cbe |
+# Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
|
|
|
1f64cbe |
+versions_to_keep = 20
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Users ###############################
|
|
|
1f64cbe |
+[users]
|
|
|
1f64cbe |
+# disable user signup / registration
|
|
|
1f64cbe |
+allow_sign_up = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Allow non admin users to create organizations
|
|
|
1f64cbe |
+allow_org_create = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Set to true to automatically assign new users to the default organization (id 1)
|
|
|
1f64cbe |
+auto_assign_org = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
|
|
|
1f64cbe |
+auto_assign_org_id = 1
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Default role new users will be automatically assigned (if auto_assign_org above is set to true)
|
|
|
1f64cbe |
+auto_assign_org_role = Viewer
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Require email validation before sign up completes
|
|
|
1f64cbe |
+verify_email_enabled = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Background text for the user field on the login page
|
|
|
1f64cbe |
+login_hint = email or username
|
|
|
1f64cbe |
+password_hint = password
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Default UI theme ("dark" or "light")
|
|
|
1f64cbe |
+default_theme = dark
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# External user management
|
|
|
1f64cbe |
+external_manage_link_url =
|
|
|
1f64cbe |
+external_manage_link_name =
|
|
|
1f64cbe |
+external_manage_info =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
|
|
|
1f64cbe |
+viewers_can_edit = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Editors can administrate dashboard, folders and teams they create
|
|
|
1f64cbe |
+editors_can_admin = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[auth]
|
|
|
1f64cbe |
+# Login cookie name
|
|
|
1f64cbe |
+login_cookie_name = grafana_session
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# The lifetime (days) an authenticated user can be inactive before being required to login at next visit. Default is 7 days.
|
|
|
1f64cbe |
+login_maximum_inactive_lifetime_days = 7
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# The maximum lifetime (days) an authenticated user can be logged in since login time before being required to login. Default is 30 days.
|
|
|
1f64cbe |
+login_maximum_lifetime_days = 30
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
|
|
|
1f64cbe |
+token_rotation_interval_minutes = 10
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Set to true to disable (hide) the login form, useful if you use OAuth
|
|
|
1f64cbe |
+disable_login_form = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Set to true to disable the signout link in the side menu. useful if you use auth.proxy
|
|
|
1f64cbe |
+disable_signout_menu = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# URL to redirect the user to after sign out
|
|
|
1f64cbe |
+signout_redirect_url =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Set to true to attempt login with OAuth automatically, skipping the login screen.
|
|
|
1f64cbe |
+# This setting is ignored if multiple OAuth providers are configured.
|
|
|
1f64cbe |
+oauth_auto_login = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Anonymous Auth ######################
|
|
|
1f64cbe |
+[auth.anonymous]
|
|
|
1f64cbe |
+# enable anonymous access
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# specify organization name that should be used for unauthenticated users
|
|
|
1f64cbe |
+org_name = Main Org.
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# specify role for unauthenticated users
|
|
|
1f64cbe |
+org_role = Viewer
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Github Auth #########################
|
|
|
1f64cbe |
+[auth.github]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+allow_sign_up = true
|
|
|
1f64cbe |
+client_id = some_id
|
|
|
1f64cbe |
+client_secret = some_secret
|
|
|
1f64cbe |
+scopes = user:email,read:org
|
|
|
1f64cbe |
+auth_url = https://github.com/login/oauth/authorize
|
|
|
1f64cbe |
+token_url = https://github.com/login/oauth/access_token
|
|
|
1f64cbe |
+api_url = https://api.github.com/user
|
|
|
1f64cbe |
+team_ids =
|
|
|
1f64cbe |
+allowed_organizations =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### GitLab Auth #########################
|
|
|
1f64cbe |
+[auth.gitlab]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+allow_sign_up = true
|
|
|
1f64cbe |
+client_id = some_id
|
|
|
1f64cbe |
+client_secret = some_secret
|
|
|
1f64cbe |
+scopes = api
|
|
|
1f64cbe |
+auth_url = https://gitlab.com/oauth/authorize
|
|
|
1f64cbe |
+token_url = https://gitlab.com/oauth/token
|
|
|
1f64cbe |
+api_url = https://gitlab.com/api/v4
|
|
|
1f64cbe |
+allowed_groups =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Google Auth #########################
|
|
|
1f64cbe |
+[auth.google]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+allow_sign_up = true
|
|
|
1f64cbe |
+client_id = some_client_id
|
|
|
1f64cbe |
+client_secret = some_client_secret
|
|
|
1f64cbe |
+scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
|
|
|
1f64cbe |
+auth_url = https://accounts.google.com/o/oauth2/auth
|
|
|
1f64cbe |
+token_url = https://accounts.google.com/o/oauth2/token
|
|
|
1f64cbe |
+api_url = https://www.googleapis.com/oauth2/v1/userinfo
|
|
|
1f64cbe |
+allowed_domains =
|
|
|
1f64cbe |
+hosted_domain =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Grafana.com Auth ####################
|
|
|
1f64cbe |
+# legacy key names (so they work in env variables)
|
|
|
1f64cbe |
+[auth.grafananet]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+allow_sign_up = true
|
|
|
1f64cbe |
+client_id = some_id
|
|
|
1f64cbe |
+client_secret = some_secret
|
|
|
1f64cbe |
+scopes = user:email
|
|
|
1f64cbe |
+allowed_organizations =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[auth.grafana_com]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+allow_sign_up = true
|
|
|
1f64cbe |
+client_id = some_id
|
|
|
1f64cbe |
+client_secret = some_secret
|
|
|
1f64cbe |
+scopes = user:email
|
|
|
1f64cbe |
+allowed_organizations =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Generic OAuth #######################
|
|
|
1f64cbe |
+[auth.generic_oauth]
|
|
|
1f64cbe |
+name = OAuth
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+allow_sign_up = true
|
|
|
1f64cbe |
+client_id = some_id
|
|
|
1f64cbe |
+client_secret = some_secret
|
|
|
1f64cbe |
+scopes = user:email
|
|
|
1f64cbe |
+email_attribute_name = email:primary
|
|
|
1f64cbe |
+auth_url =
|
|
|
1f64cbe |
+token_url =
|
|
|
1f64cbe |
+api_url =
|
|
|
1f64cbe |
+team_ids =
|
|
|
1f64cbe |
+allowed_organizations =
|
|
|
1f64cbe |
+tls_skip_verify_insecure = false
|
|
|
1f64cbe |
+tls_client_cert =
|
|
|
1f64cbe |
+tls_client_key =
|
|
|
1f64cbe |
+tls_client_ca =
|
|
|
1f64cbe |
+send_client_credentials_via_post = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Basic Auth ##########################
|
|
|
1f64cbe |
+[auth.basic]
|
|
|
1f64cbe |
+enabled = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Auth Proxy ##########################
|
|
|
1f64cbe |
+[auth.proxy]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+header_name = X-WEBAUTH-USER
|
|
|
1f64cbe |
+header_property = username
|
|
|
1f64cbe |
+auto_sign_up = true
|
|
|
1f64cbe |
+ldap_sync_ttl = 60
|
|
|
1f64cbe |
+whitelist =
|
|
|
1f64cbe |
+headers =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Auth LDAP ###########################
|
|
|
1f64cbe |
+[auth.ldap]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+config_file = /etc/grafana/ldap.toml
|
|
|
1f64cbe |
+allow_sign_up = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### SMTP / Emailing #####################
|
|
|
1f64cbe |
+[smtp]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+host = localhost:25
|
|
|
1f64cbe |
+user =
|
|
|
1f64cbe |
+# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
|
|
|
1f64cbe |
+password =
|
|
|
1f64cbe |
+cert_file =
|
|
|
1f64cbe |
+key_file =
|
|
|
1f64cbe |
+skip_verify = false
|
|
|
1f64cbe |
+from_address = admin@grafana.localhost
|
|
|
1f64cbe |
+from_name = Grafana
|
|
|
1f64cbe |
+ehlo_identity =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[emails]
|
|
|
1f64cbe |
+welcome_email_on_sign_up = false
|
|
|
1f64cbe |
+templates_pattern = emails/*.html
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Logging ##########################
|
|
|
1f64cbe |
+[log]
|
|
|
1f64cbe |
+# Either "console", "file", "syslog". Default is console and file
|
|
|
1f64cbe |
+# Use space to separate multiple modes, e.g. "console file"
|
|
|
1f64cbe |
+mode = console file
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Either "debug", "info", "warn", "error", "critical", default is "info"
|
|
|
1f64cbe |
+level = info
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
|
|
|
1f64cbe |
+filters =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# For "console" mode only
|
|
|
1f64cbe |
+[log.console]
|
|
|
1f64cbe |
+level =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# log line format, valid options are text, console and json
|
|
|
1f64cbe |
+format = console
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# For "file" mode only
|
|
|
1f64cbe |
+[log.file]
|
|
|
1f64cbe |
+level =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# log line format, valid options are text, console and json
|
|
|
1f64cbe |
+format = text
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# This enables automated log rotate(switch of following options), default is true
|
|
|
1f64cbe |
+log_rotate = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Max line number of single file, default is 1000000
|
|
|
1f64cbe |
+max_lines = 1000000
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Max size shift of single file, default is 28 means 1 << 28, 256MB
|
|
|
1f64cbe |
+max_size_shift = 28
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Segment log daily, default is true
|
|
|
1f64cbe |
+daily_rotate = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Expired days of log file(delete after max days), default is 7
|
|
|
1f64cbe |
+max_days = 7
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[log.syslog]
|
|
|
1f64cbe |
+level =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# log line format, valid options are text, console and json
|
|
|
1f64cbe |
+format = text
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
|
|
|
1f64cbe |
+network =
|
|
|
1f64cbe |
+address =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Syslog facility. user, daemon and local0 through local7 are valid.
|
|
|
1f64cbe |
+facility =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Syslog tag. By default, the process' argv[0] is used.
|
|
|
1f64cbe |
+tag =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Usage Quotas ########################
|
|
|
1f64cbe |
+[quota]
|
|
|
1f64cbe |
+enabled = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#### set quotas to -1 to make unlimited. ####
|
|
|
1f64cbe |
+# limit number of users per Org.
|
|
|
1f64cbe |
+org_user = 10
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# limit number of dashboards per Org.
|
|
|
1f64cbe |
+org_dashboard = 100
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# limit number of data_sources per Org.
|
|
|
1f64cbe |
+org_data_source = 10
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# limit number of api_keys per Org.
|
|
|
1f64cbe |
+org_api_key = 10
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# limit number of orgs a user can create.
|
|
|
1f64cbe |
+user_org = 10
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Global limit of users.
|
|
|
1f64cbe |
+global_user = -1
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# global limit of orgs.
|
|
|
1f64cbe |
+global_org = -1
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# global limit of dashboards
|
|
|
1f64cbe |
+global_dashboard = -1
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# global limit of api_keys
|
|
|
1f64cbe |
+global_api_key = -1
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# global limit on number of logged in users.
|
|
|
1f64cbe |
+global_session = -1
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Alerting ############################
|
|
|
1f64cbe |
+[alerting]
|
|
|
1f64cbe |
+# Disable alerting engine & UI features
|
|
|
1f64cbe |
+enabled = true
|
|
|
1f64cbe |
+# Makes it possible to turn off alert rule execution but alerting UI is visible
|
|
|
1f64cbe |
+execute_alerts = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
|
|
|
1f64cbe |
+error_or_timeout = alerting
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
|
|
|
1f64cbe |
+nodata_or_nullvalues = no_data
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Alert notifications can include images, but rendering many images at the same time can overload the server
|
|
|
1f64cbe |
+# This limit will protect the server from render overloading and make sure notifications are sent out quickly
|
|
|
1f64cbe |
+concurrent_render_limit = 5
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Explore #############################
|
|
|
1f64cbe |
+[explore]
|
|
|
1f64cbe |
+# Enable the Explore section
|
|
|
1f64cbe |
+enabled = true
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Internal Grafana Metrics ############
|
|
|
1f64cbe |
+# Metrics available at HTTP API Url /metrics
|
|
|
1f64cbe |
+[metrics]
|
|
|
1f64cbe |
+enabled = true
|
|
|
1f64cbe |
+interval_seconds = 10
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#If both are set, basic auth will be required for the metrics endpoint.
|
|
|
1f64cbe |
+basic_auth_username =
|
|
|
1f64cbe |
+basic_auth_password =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+# Send internal Grafana metrics to graphite
|
|
|
1f64cbe |
+[metrics.graphite]
|
|
|
1f64cbe |
+# Enable by setting the address setting (ex localhost:2003)
|
|
|
1f64cbe |
+address =
|
|
|
1f64cbe |
+prefix = prod.grafana.%(instance_name)s.
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[grafana_net]
|
|
|
1f64cbe |
+url = https://grafana.org
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[grafana_com]
|
|
|
1f64cbe |
+url = https://grafana.com
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### Distributed tracing ############
|
|
|
1f64cbe |
+[tracing.jaeger]
|
|
|
1f64cbe |
+# jaeger destination (ex localhost:6831)
|
|
|
1f64cbe |
+address =
|
|
|
1f64cbe |
+# tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
|
|
|
1f64cbe |
+always_included_tag =
|
|
|
1f64cbe |
+# Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
|
|
|
1f64cbe |
+sampler_type = const
|
|
|
1f64cbe |
+# jaeger samplerconfig param
|
|
|
1f64cbe |
+# for "const" sampler, 0 or 1 for always false/true respectively
|
|
|
1f64cbe |
+# for "probabilistic" sampler, a probability between 0 and 1
|
|
|
1f64cbe |
+# for "rateLimiting" sampler, the number of spans per second
|
|
|
1f64cbe |
+# for "remote" sampler, param is the same as for "probabilistic"
|
|
|
1f64cbe |
+# and indicates the initial sampling rate before the actual one
|
|
|
1f64cbe |
+# is received from the mothership
|
|
|
1f64cbe |
+sampler_param = 1
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+#################################### External Image Storage ##############
|
|
|
1f64cbe |
+[external_image_storage]
|
|
|
1f64cbe |
+# You can choose between (s3, webdav, gcs, azure_blob, local)
|
|
|
1f64cbe |
+provider =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[external_image_storage.s3]
|
|
|
1f64cbe |
+bucket_url =
|
|
|
1f64cbe |
+bucket =
|
|
|
1f64cbe |
+region =
|
|
|
1f64cbe |
+path =
|
|
|
1f64cbe |
+access_key =
|
|
|
1f64cbe |
+secret_key =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[external_image_storage.webdav]
|
|
|
1f64cbe |
+url =
|
|
|
1f64cbe |
+username =
|
|
|
1f64cbe |
+password =
|
|
|
1f64cbe |
+public_url =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[external_image_storage.gcs]
|
|
|
1f64cbe |
+key_file =
|
|
|
1f64cbe |
+bucket =
|
|
|
1f64cbe |
+path =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[external_image_storage.azure_blob]
|
|
|
1f64cbe |
+account_name =
|
|
|
1f64cbe |
+account_key =
|
|
|
1f64cbe |
+container_name =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[external_image_storage.local]
|
|
|
1f64cbe |
+# does not require any configuration
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[rendering]
|
|
|
1f64cbe |
+# Options to configure external image rendering server like https://github.com/grafana/grafana-image-renderer
|
|
|
1f64cbe |
+server_url =
|
|
|
1f64cbe |
+callback_url =
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[panels]
|
|
|
1f64cbe |
+enable_alpha = false
|
|
|
1f64cbe |
+disable_sanitize_html = false
|
|
|
1f64cbe |
+
|
|
|
1f64cbe |
+[enterprise]
|
|
|
1f64cbe |
+license_path =
|