|
|
6b5415 |
##################### Grafana Configuration Defaults for distros #####################
|
|
|
6b5415 |
#
|
|
|
6b5415 |
# Do not modify this file in grafana installs
|
|
|
6b5415 |
#
|
|
|
6b5415 |
|
|
|
6b5415 |
# possible values : production, development
|
|
|
6b5415 |
app_mode = production
|
|
|
6b5415 |
|
|
|
6b5415 |
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
|
|
|
6b5415 |
instance_name = ${HOSTNAME}
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Paths ###############################
|
|
|
6b5415 |
[paths]
|
|
|
6b5415 |
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
|
|
|
6b5415 |
data = /var/lib/grafana
|
|
|
6b5415 |
|
|
|
6b5415 |
# Temporary files in `data` directory older than given duration will be removed
|
|
|
6b5415 |
temp_data_lifetime = 24h
|
|
|
6b5415 |
|
|
|
6b5415 |
# Directory where grafana can store logs
|
|
|
6b5415 |
logs = /var/log/grafana
|
|
|
6b5415 |
|
|
|
6b5415 |
# Directory where grafana will automatically scan and look for plugins
|
|
|
6b5415 |
plugins = /var/lib/grafana/plugins
|
|
|
6b5415 |
|
|
|
6b5415 |
# folder that contains provisioning config files that grafana will apply on startup and while running.
|
|
|
6b5415 |
provisioning = conf/provisioning
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Server ##############################
|
|
|
6b5415 |
[server]
|
|
|
6b5415 |
# Protocol (http, https, h2, socket)
|
|
|
6b5415 |
protocol = http
|
|
|
6b5415 |
|
|
|
6b5415 |
# The ip address to bind to, empty will bind to all interfaces
|
|
|
6b5415 |
http_addr =
|
|
|
6b5415 |
|
|
|
6b5415 |
# The http port to use
|
|
|
6b5415 |
http_port = 3000
|
|
|
6b5415 |
|
|
|
6b5415 |
# The public facing domain name used to access grafana from a browser
|
|
|
6b5415 |
domain = localhost
|
|
|
6b5415 |
|
|
|
6b5415 |
# Redirect to correct domain if host header does not match domain
|
|
|
6b5415 |
# Prevents DNS rebinding attacks
|
|
|
6b5415 |
enforce_domain = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# The full public facing url
|
|
|
6b5415 |
root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
|
|
6b5415 |
|
|
|
6b5415 |
# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
|
|
|
6b5415 |
serve_from_sub_path = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Log web requests
|
|
|
6b5415 |
router_logging = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# the path relative working path
|
|
|
6b5415 |
static_root_path = public
|
|
|
6b5415 |
|
|
|
6b5415 |
# enable gzip
|
|
|
6b5415 |
enable_gzip = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# https certs & key file
|
|
|
6b5415 |
cert_file =
|
|
|
6b5415 |
cert_key =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Unix socket path
|
|
|
6b5415 |
socket = /tmp/grafana.sock
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Database ############################
|
|
|
6b5415 |
[database]
|
|
|
6b5415 |
# You can configure the database connection by specifying type, host, name, user and password
|
|
|
6b5415 |
# as separate properties or as on string using the url property.
|
|
|
6b5415 |
|
|
|
6b5415 |
# Either "mysql", "postgres" or "sqlite3", it's your choice
|
|
|
6b5415 |
type = sqlite3
|
|
|
6b5415 |
host = 127.0.0.1:3306
|
|
|
6b5415 |
name = grafana
|
|
|
6b5415 |
user = root
|
|
|
6b5415 |
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
|
|
|
6b5415 |
password =
|
|
|
6b5415 |
# Use either URL or the previous fields to configure the database
|
|
|
6b5415 |
# Example: mysql://user:secret@host:port/database
|
|
|
6b5415 |
url =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Max idle conn setting default is 2
|
|
|
6b5415 |
max_idle_conn = 2
|
|
|
6b5415 |
|
|
|
6b5415 |
# Max conn setting default is 0 (mean not set)
|
|
|
6b5415 |
max_open_conn =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
|
|
|
6b5415 |
conn_max_lifetime = 14400
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to log the sql calls and execution times.
|
|
|
6b5415 |
log_queries =
|
|
|
6b5415 |
|
|
|
6b5415 |
# For "postgres", use either "disable", "require" or "verify-full"
|
|
|
6b5415 |
# For "mysql", use either "true", "false", or "skip-verify".
|
|
|
6b5415 |
ssl_mode = disable
|
|
|
6b5415 |
|
|
|
6b5415 |
ca_cert_path =
|
|
|
6b5415 |
client_key_path =
|
|
|
6b5415 |
client_cert_path =
|
|
|
6b5415 |
server_cert_name =
|
|
|
6b5415 |
|
|
|
6b5415 |
# For "sqlite3" only, path relative to data_path setting
|
|
|
6b5415 |
path = grafana.db
|
|
|
6b5415 |
|
|
|
6b5415 |
# For "sqlite3" only. cache mode setting used for connecting to the database
|
|
|
6b5415 |
cache_mode = private
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Cache server #############################
|
|
|
6b5415 |
[remote_cache]
|
|
|
6b5415 |
# Either "redis", "memcached" or "database" default is "database"
|
|
|
6b5415 |
type = database
|
|
|
6b5415 |
|
|
|
6b5415 |
# cache connectionstring options
|
|
|
6b5415 |
# database: will use Grafana primary database.
|
|
|
6b5415 |
# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`. Only addr is required. ssl may be 'true', 'false', or 'insecure'.
|
|
|
6b5415 |
# memcache: 127.0.0.1:11211
|
|
|
6b5415 |
connstr =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Data proxy ###########################
|
|
|
6b5415 |
[dataproxy]
|
|
|
6b5415 |
|
|
|
6b5415 |
# This enables data proxy logging, default is false
|
|
|
6b5415 |
logging = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# How long the data proxy should wait before timing out default is 30 (seconds)
|
|
|
6b5415 |
timeout = 30
|
|
|
6b5415 |
|
|
|
6b5415 |
# If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false.
|
|
|
6b5415 |
send_user_header = false
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Analytics ###########################
|
|
|
6b5415 |
[analytics]
|
|
|
6b5415 |
# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
|
|
|
6b5415 |
# No ip addresses are being tracked, only simple counters to track
|
|
|
6b5415 |
# running instances, dashboard and error counts. It is very helpful to us.
|
|
|
6b5415 |
# Change this option to false to disable reporting.
|
|
|
6b5415 |
reporting_enabled = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to false to disable all checks to https://grafana.com
|
|
|
6b5415 |
# for new versions (grafana itself and plugins), check is used
|
|
|
6b5415 |
# in some UI views to notify that grafana or plugin update exists
|
|
|
6b5415 |
# This option does not cause any auto updates, nor send any information
|
|
|
6b5415 |
# only a GET request to https://grafana.com to get latest versions
|
|
|
6b5415 |
check_for_updates = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Google Analytics universal tracking code, only enabled if you specify an id here
|
|
|
6b5415 |
google_analytics_ua_id =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Google Tag Manager ID, only enabled if you specify an id here
|
|
|
6b5415 |
google_tag_manager_id =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Security ############################
|
|
|
6b5415 |
[security]
|
|
|
6b5415 |
# disable creation of admin user on first start of grafana
|
|
|
6b5415 |
disable_initial_admin_creation = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# default admin user, created on startup
|
|
|
6b5415 |
admin_user = admin
|
|
|
6b5415 |
|
|
|
6b5415 |
# default admin password, can be changed before first start of grafana, or in profile settings
|
|
|
6b5415 |
admin_password = admin
|
|
|
6b5415 |
|
|
|
6b5415 |
# used for signing
|
|
|
6b5415 |
secret_key = SW2YcwTIb9zpOOhoPsMm
|
|
|
6b5415 |
|
|
|
6b5415 |
# disable gravatar profile images
|
|
|
6b5415 |
disable_gravatar = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# data source proxy whitelist (ip_or_domain:port separated by spaces)
|
|
|
6b5415 |
data_source_proxy_whitelist =
|
|
|
6b5415 |
|
|
|
6b5415 |
# disable protection against brute force login attempts
|
|
|
6b5415 |
disable_brute_force_login_protection = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# set to true if you host Grafana behind HTTPS. default is false.
|
|
|
6b5415 |
cookie_secure = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
|
|
|
6b5415 |
cookie_samesite = lax
|
|
|
6b5415 |
|
|
|
6b5415 |
# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
|
|
|
6b5415 |
allow_embedding = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true if you want to enable http strict transport security (HSTS) response header.
|
|
|
6b5415 |
# This is only sent when HTTPS is enabled in this configuration.
|
|
|
6b5415 |
# HSTS tells browsers that the site should only be accessed using HTTPS.
|
|
|
6b5415 |
# The default will change to true in the next minor release, 6.3.
|
|
|
6b5415 |
strict_transport_security = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Sets how long a browser should cache HSTS. Only applied if strict_transport_security is enabled.
|
|
|
6b5415 |
strict_transport_security_max_age_seconds = 86400
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true if to enable HSTS preloading option. Only applied if strict_transport_security is enabled.
|
|
|
6b5415 |
strict_transport_security_preload = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true if to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled.
|
|
|
6b5415 |
strict_transport_security_subdomains = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to enable the X-Content-Type-Options response header.
|
|
|
6b5415 |
# The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
|
|
|
6b5415 |
# in the Content-Type headers should not be changed and be followed. The default will change to true in the next minor release, 6.3.
|
|
|
6b5415 |
x_content_type_options = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
|
|
|
6b5415 |
# when they detect reflected cross-site scripting (XSS) attacks. The default will change to true in the next minor release, 6.3.
|
|
|
6b5415 |
x_xss_protection = false
|
|
|
6b5415 |
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Snapshots ###########################
|
|
|
6b5415 |
[snapshots]
|
|
|
6b5415 |
# snapshot sharing options
|
|
|
6b5415 |
external_enabled = false
|
|
|
6b5415 |
external_snapshot_url = https://snapshots-origin.raintank.io
|
|
|
6b5415 |
external_snapshot_name = Publish to snapshot.raintank.io
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to enable this Grafana instance act as an external snapshot server and allow unauthenticated requests for
|
|
|
6b5415 |
# creating and deleting snapshots.
|
|
|
6b5415 |
public_mode = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# remove expired snapshot
|
|
|
6b5415 |
snapshot_remove_expired = true
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Dashboards ##################
|
|
|
6b5415 |
|
|
|
6b5415 |
[dashboards]
|
|
|
6b5415 |
# Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
|
|
|
6b5415 |
versions_to_keep = 20
|
|
|
6b5415 |
|
|
|
6b5415 |
# Minimum dashboard refresh interval. When set, this will restrict users to set the refresh interval of a dashboard lower than given interval. Per default this is not set/unrestricted.
|
|
|
6b5415 |
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
|
|
|
6b5415 |
min_refresh_interval =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Users ###############################
|
|
|
6b5415 |
[users]
|
|
|
6b5415 |
# disable user signup / registration
|
|
|
6b5415 |
allow_sign_up = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Allow non admin users to create organizations
|
|
|
6b5415 |
allow_org_create = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to automatically assign new users to the default organization (id 1)
|
|
|
6b5415 |
auto_assign_org = true
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
|
|
|
6b5415 |
auto_assign_org_id = 1
|
|
|
6b5415 |
|
|
|
6b5415 |
# Default role new users will be automatically assigned (if auto_assign_org above is set to true)
|
|
|
6b5415 |
auto_assign_org_role = Viewer
|
|
|
6b5415 |
|
|
|
6b5415 |
# Require email validation before sign up completes
|
|
|
6b5415 |
verify_email_enabled = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Background text for the user field on the login page
|
|
|
6b5415 |
login_hint = email or username
|
|
|
6b5415 |
password_hint = password
|
|
|
6b5415 |
|
|
|
6b5415 |
# Default UI theme ("dark" or "light")
|
|
|
6b5415 |
default_theme = dark
|
|
|
6b5415 |
|
|
|
6b5415 |
# External user management
|
|
|
6b5415 |
external_manage_link_url =
|
|
|
6b5415 |
external_manage_link_name =
|
|
|
6b5415 |
external_manage_info =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
|
|
|
6b5415 |
viewers_can_edit = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Editors can administrate dashboard, folders and teams they create
|
|
|
6b5415 |
editors_can_admin = false
|
|
|
6b5415 |
|
|
|
6b5415 |
[auth]
|
|
|
6b5415 |
# Login cookie name
|
|
|
6b5415 |
login_cookie_name = grafana_session
|
|
|
6b5415 |
|
|
|
6b5415 |
# The lifetime (days) an authenticated user can be inactive before being required to login at next visit. Default is 7 days.
|
|
|
6b5415 |
login_maximum_inactive_lifetime_days = 7
|
|
|
6b5415 |
|
|
|
6b5415 |
# The maximum lifetime (days) an authenticated user can be logged in since login time before being required to login. Default is 30 days.
|
|
|
6b5415 |
login_maximum_lifetime_days = 30
|
|
|
6b5415 |
|
|
|
6b5415 |
# How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
|
|
|
6b5415 |
token_rotation_interval_minutes = 10
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to disable (hide) the login form, useful if you use OAuth
|
|
|
6b5415 |
disable_login_form = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to disable the signout link in the side menu. useful if you use auth.proxy
|
|
|
6b5415 |
disable_signout_menu = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# URL to redirect the user to after sign out
|
|
|
6b5415 |
signout_redirect_url =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Set to true to attempt login with OAuth automatically, skipping the login screen.
|
|
|
6b5415 |
# This setting is ignored if multiple OAuth providers are configured.
|
|
|
6b5415 |
oauth_auto_login = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# limit of api_key seconds to live before expiration
|
|
|
6b5415 |
api_key_max_seconds_to_live = -1
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Anonymous Auth ######################
|
|
|
6b5415 |
[auth.anonymous]
|
|
|
6b5415 |
# enable anonymous access
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# specify organization name that should be used for unauthenticated users
|
|
|
6b5415 |
org_name = Main Org.
|
|
|
6b5415 |
|
|
|
6b5415 |
# specify role for unauthenticated users
|
|
|
6b5415 |
org_role = Viewer
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Github Auth #########################
|
|
|
6b5415 |
[auth.github]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
client_id = some_id
|
|
|
6b5415 |
client_secret = some_secret
|
|
|
6b5415 |
scopes = user:email,read:org
|
|
|
6b5415 |
auth_url = https://github.com/login/oauth/authorize
|
|
|
6b5415 |
token_url = https://github.com/login/oauth/access_token
|
|
|
6b5415 |
api_url = https://api.github.com/user
|
|
|
6b5415 |
allowed_domains =
|
|
|
6b5415 |
team_ids =
|
|
|
6b5415 |
allowed_organizations =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### GitLab Auth #########################
|
|
|
6b5415 |
[auth.gitlab]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
client_id = some_id
|
|
|
6b5415 |
client_secret = some_secret
|
|
|
6b5415 |
scopes = api
|
|
|
6b5415 |
auth_url = https://gitlab.com/oauth/authorize
|
|
|
6b5415 |
token_url = https://gitlab.com/oauth/token
|
|
|
6b5415 |
api_url = https://gitlab.com/api/v4
|
|
|
6b5415 |
allowed_domains =
|
|
|
6b5415 |
allowed_groups =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Google Auth #########################
|
|
|
6b5415 |
[auth.google]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
client_id = some_client_id
|
|
|
6b5415 |
client_secret = some_client_secret
|
|
|
6b5415 |
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
|
|
|
6b5415 |
auth_url = https://accounts.google.com/o/oauth2/auth
|
|
|
6b5415 |
token_url = https://accounts.google.com/o/oauth2/token
|
|
|
6b5415 |
api_url = https://www.googleapis.com/oauth2/v1/userinfo
|
|
|
6b5415 |
allowed_domains =
|
|
|
6b5415 |
hosted_domain =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Grafana.com Auth ####################
|
|
|
6b5415 |
# legacy key names (so they work in env variables)
|
|
|
6b5415 |
[auth.grafananet]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
client_id = some_id
|
|
|
6b5415 |
client_secret = some_secret
|
|
|
6b5415 |
scopes = user:email
|
|
|
6b5415 |
allowed_organizations =
|
|
|
6b5415 |
|
|
|
6b5415 |
[auth.grafana_com]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
client_id = some_id
|
|
|
6b5415 |
client_secret = some_secret
|
|
|
6b5415 |
scopes = user:email
|
|
|
6b5415 |
allowed_organizations =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Azure AD OAuth #######################
|
|
|
6b5415 |
[auth.azuread]
|
|
|
6b5415 |
name = Azure AD
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
client_id = some_client_id
|
|
|
6b5415 |
client_secret = some_client_secret
|
|
|
6b5415 |
scopes = openid email profile
|
|
|
6b5415 |
auth_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
|
|
|
6b5415 |
token_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
|
|
|
6b5415 |
allowed_domains =
|
|
|
6b5415 |
allowed_groups =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Generic OAuth #######################
|
|
|
6b5415 |
[auth.generic_oauth]
|
|
|
6b5415 |
name = OAuth
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
client_id = some_id
|
|
|
6b5415 |
client_secret = some_secret
|
|
|
6b5415 |
scopes = user:email
|
|
|
6b5415 |
email_attribute_name = email:primary
|
|
|
6b5415 |
email_attribute_path =
|
|
|
6b5415 |
role_attribute_path =
|
|
|
6b5415 |
auth_url =
|
|
|
6b5415 |
token_url =
|
|
|
6b5415 |
api_url =
|
|
|
6b5415 |
allowed_domains =
|
|
|
6b5415 |
team_ids =
|
|
|
6b5415 |
allowed_organizations =
|
|
|
6b5415 |
tls_skip_verify_insecure = false
|
|
|
6b5415 |
tls_client_cert =
|
|
|
6b5415 |
tls_client_key =
|
|
|
6b5415 |
tls_client_ca =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### SAML Auth ###########################
|
|
|
6b5415 |
[auth.saml] # Enterprise only
|
|
|
6b5415 |
# Defaults to false. If true, the feature is enabled
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
|
|
|
6b5415 |
# Base64-encoded public X.509 certificate. Used to sign requests to the IdP
|
|
|
6b5415 |
certificate =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Path to the public X.509 certificate. Used to sign requests to the IdP
|
|
|
6b5415 |
certificate_path =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Base64-encoded private key. Used to decrypt assertions from the IdP
|
|
|
6b5415 |
private_key =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Path to the private key. Used to decrypt assertions from the IdP
|
|
|
6b5415 |
private_key_path =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Base64-encoded IdP SAML metadata XML. Used to verify and obtain binding locations from the IdP
|
|
|
6b5415 |
idp_metadata =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Path to the SAML metadata XML. Used to verify and obtain binding locations from the IdP
|
|
|
6b5415 |
idp_metadata_path =
|
|
|
6b5415 |
|
|
|
6b5415 |
# URL to fetch SAML IdP metadata. Used to verify and obtain binding locations from the IdP
|
|
|
6b5415 |
idp_metadata_url =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Duration, since the IdP issued a response and the SP is allowed to process it. Defaults to 90 seconds
|
|
|
6b5415 |
max_issue_delay = 90s
|
|
|
6b5415 |
|
|
|
6b5415 |
# Duration, for how long the SP's metadata should be valid. Defaults to 48 hours
|
|
|
6b5415 |
metadata_valid_duration = 48h
|
|
|
6b5415 |
|
|
|
6b5415 |
# Friendly name or name of the attribute within the SAML assertion to use as the user's name
|
|
|
6b5415 |
assertion_attribute_name = displayName
|
|
|
6b5415 |
|
|
|
6b5415 |
# Friendly name or name of the attribute within the SAML assertion to use as the user's login handle
|
|
|
6b5415 |
assertion_attribute_login = mail
|
|
|
6b5415 |
|
|
|
6b5415 |
# Friendly name or name of the attribute within the SAML assertion to use as the user's email
|
|
|
6b5415 |
assertion_attribute_email = mail
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Basic Auth ##########################
|
|
|
6b5415 |
[auth.basic]
|
|
|
6b5415 |
enabled = true
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Auth Proxy ##########################
|
|
|
6b5415 |
[auth.proxy]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
header_name = X-WEBAUTH-USER
|
|
|
6b5415 |
header_property = username
|
|
|
6b5415 |
auto_sign_up = true
|
|
|
6b5415 |
# Deprecated, use sync_ttl instead
|
|
|
6b5415 |
ldap_sync_ttl = 60
|
|
|
6b5415 |
sync_ttl = 60
|
|
|
6b5415 |
whitelist =
|
|
|
6b5415 |
headers =
|
|
|
6b5415 |
enable_login_token = false
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Auth LDAP ###########################
|
|
|
6b5415 |
[auth.ldap]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
config_file = /etc/grafana/ldap.toml
|
|
|
6b5415 |
allow_sign_up = true
|
|
|
6b5415 |
|
|
|
6b5415 |
# LDAP backround sync (Enterprise only)
|
|
|
6b5415 |
# At 1 am every day
|
|
|
6b5415 |
sync_cron = "0 0 1 * * *"
|
|
|
6b5415 |
active_sync_enabled = false
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### SMTP / Emailing #####################
|
|
|
6b5415 |
[smtp]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
host = localhost:25
|
|
|
6b5415 |
user =
|
|
|
6b5415 |
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
|
|
|
6b5415 |
password =
|
|
|
6b5415 |
cert_file =
|
|
|
6b5415 |
key_file =
|
|
|
6b5415 |
skip_verify = false
|
|
|
6b5415 |
from_address = admin@grafana.localhost
|
|
|
6b5415 |
from_name = Grafana
|
|
|
6b5415 |
ehlo_identity =
|
|
|
6b5415 |
|
|
|
6b5415 |
[emails]
|
|
|
6b5415 |
welcome_email_on_sign_up = false
|
|
|
6b5415 |
templates_pattern = emails/*.html
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Logging ##########################
|
|
|
6b5415 |
[log]
|
|
|
6b5415 |
# Either "console", "file", "syslog". Default is console and file
|
|
|
6b5415 |
# Use space to separate multiple modes, e.g. "console file"
|
|
|
6b5415 |
mode = console file
|
|
|
6b5415 |
|
|
|
6b5415 |
# Either "debug", "info", "warn", "error", "critical", default is "info"
|
|
|
6b5415 |
level = info
|
|
|
6b5415 |
|
|
|
6b5415 |
# optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
|
|
|
6b5415 |
filters =
|
|
|
6b5415 |
|
|
|
6b5415 |
# For "console" mode only
|
|
|
6b5415 |
[log.console]
|
|
|
6b5415 |
level =
|
|
|
6b5415 |
|
|
|
6b5415 |
# log line format, valid options are text, console and json
|
|
|
6b5415 |
format = console
|
|
|
6b5415 |
|
|
|
6b5415 |
# For "file" mode only
|
|
|
6b5415 |
[log.file]
|
|
|
6b5415 |
level =
|
|
|
6b5415 |
|
|
|
6b5415 |
# log line format, valid options are text, console and json
|
|
|
6b5415 |
format = text
|
|
|
6b5415 |
|
|
|
6b5415 |
# This enables automated log rotate(switch of following options), default is true
|
|
|
6b5415 |
log_rotate = true
|
|
|
6b5415 |
|
|
|
6b5415 |
# Max line number of single file, default is 1000000
|
|
|
6b5415 |
max_lines = 1000000
|
|
|
6b5415 |
|
|
|
6b5415 |
# Max size shift of single file, default is 28 means 1 << 28, 256MB
|
|
|
6b5415 |
max_size_shift = 28
|
|
|
6b5415 |
|
|
|
6b5415 |
# Segment log daily, default is true
|
|
|
6b5415 |
daily_rotate = true
|
|
|
6b5415 |
|
|
|
6b5415 |
# Expired days of log file(delete after max days), default is 7
|
|
|
6b5415 |
max_days = 7
|
|
|
6b5415 |
|
|
|
6b5415 |
[log.syslog]
|
|
|
6b5415 |
level =
|
|
|
6b5415 |
|
|
|
6b5415 |
# log line format, valid options are text, console and json
|
|
|
6b5415 |
format = text
|
|
|
6b5415 |
|
|
|
6b5415 |
# Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
|
|
|
6b5415 |
network =
|
|
|
6b5415 |
address =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Syslog facility. user, daemon and local0 through local7 are valid.
|
|
|
6b5415 |
facility =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Syslog tag. By default, the process' argv[0] is used.
|
|
|
6b5415 |
tag =
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Usage Quotas ########################
|
|
|
6b5415 |
[quota]
|
|
|
6b5415 |
enabled = false
|
|
|
6b5415 |
|
|
|
6b5415 |
#### set quotas to -1 to make unlimited. ####
|
|
|
6b5415 |
# limit number of users per Org.
|
|
|
6b5415 |
org_user = 10
|
|
|
6b5415 |
|
|
|
6b5415 |
# limit number of dashboards per Org.
|
|
|
6b5415 |
org_dashboard = 100
|
|
|
6b5415 |
|
|
|
6b5415 |
# limit number of data_sources per Org.
|
|
|
6b5415 |
org_data_source = 10
|
|
|
6b5415 |
|
|
|
6b5415 |
# limit number of api_keys per Org.
|
|
|
6b5415 |
org_api_key = 10
|
|
|
6b5415 |
|
|
|
6b5415 |
# limit number of orgs a user can create.
|
|
|
6b5415 |
user_org = 10
|
|
|
6b5415 |
|
|
|
6b5415 |
# Global limit of users.
|
|
|
6b5415 |
global_user = -1
|
|
|
6b5415 |
|
|
|
6b5415 |
# global limit of orgs.
|
|
|
6b5415 |
global_org = -1
|
|
|
6b5415 |
|
|
|
6b5415 |
# global limit of dashboards
|
|
|
6b5415 |
global_dashboard = -1
|
|
|
6b5415 |
|
|
|
6b5415 |
# global limit of api_keys
|
|
|
6b5415 |
global_api_key = -1
|
|
|
6b5415 |
|
|
|
6b5415 |
# global limit on number of logged in users.
|
|
|
6b5415 |
global_session = -1
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Alerting ############################
|
|
|
6b5415 |
[alerting]
|
|
|
6b5415 |
# Disable alerting engine & UI features
|
|
|
6b5415 |
enabled = true
|
|
|
6b5415 |
# Makes it possible to turn off alert rule execution but alerting UI is visible
|
|
|
6b5415 |
execute_alerts = true
|
|
|
6b5415 |
|
|
|
6b5415 |
# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
|
|
|
6b5415 |
error_or_timeout = alerting
|
|
|
6b5415 |
|
|
|
6b5415 |
# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
|
|
|
6b5415 |
nodata_or_nullvalues = no_data
|
|
|
6b5415 |
|
|
|
6b5415 |
# Alert notifications can include images, but rendering many images at the same time can overload the server
|
|
|
6b5415 |
# This limit will protect the server from render overloading and make sure notifications are sent out quickly
|
|
|
6b5415 |
concurrent_render_limit = 5
|
|
|
6b5415 |
|
|
|
6b5415 |
# Default setting for alert calculation timeout. Default value is 30
|
|
|
6b5415 |
evaluation_timeout_seconds = 30
|
|
|
6b5415 |
|
|
|
6b5415 |
# Default setting for alert notification timeout. Default value is 30
|
|
|
6b5415 |
notification_timeout_seconds = 30
|
|
|
6b5415 |
|
|
|
6b5415 |
# Default setting for max attempts to sending alert notifications. Default value is 3
|
|
|
6b5415 |
max_attempts = 3
|
|
|
6b5415 |
|
|
|
6b5415 |
# Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
|
|
|
6b5415 |
min_interval_seconds = 1
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Explore #############################
|
|
|
6b5415 |
[explore]
|
|
|
6b5415 |
# Enable the Explore section
|
|
|
6b5415 |
enabled = true
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Internal Grafana Metrics ############
|
|
|
6b5415 |
# Metrics available at HTTP API Url /metrics
|
|
|
6b5415 |
[metrics]
|
|
|
6b5415 |
enabled = true
|
|
|
6b5415 |
interval_seconds = 10
|
|
|
6b5415 |
# Disable total stats (stat_totals_*) metrics to be generated
|
|
|
6b5415 |
disable_total_stats = false
|
|
|
6b5415 |
|
|
|
6b5415 |
#If both are set, basic auth will be required for the metrics endpoint.
|
|
|
6b5415 |
basic_auth_username =
|
|
|
6b5415 |
basic_auth_password =
|
|
|
6b5415 |
|
|
|
6b5415 |
# Send internal Grafana metrics to graphite
|
|
|
6b5415 |
[metrics.graphite]
|
|
|
6b5415 |
# Enable by setting the address setting (ex localhost:2003)
|
|
|
6b5415 |
address =
|
|
|
6b5415 |
prefix = prod.grafana.%(instance_name)s.
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Grafana.com integration ##########################
|
|
|
6b5415 |
[grafana_net]
|
|
|
6b5415 |
url = https://grafana.com
|
|
|
6b5415 |
|
|
|
6b5415 |
[grafana_com]
|
|
|
6b5415 |
url = https://grafana.com
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### Distributed tracing ############
|
|
|
6b5415 |
[tracing.jaeger]
|
|
|
6b5415 |
# jaeger destination (ex localhost:6831)
|
|
|
6b5415 |
address =
|
|
|
6b5415 |
# tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
|
|
|
6b5415 |
always_included_tag =
|
|
|
6b5415 |
# Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
|
|
|
6b5415 |
sampler_type = const
|
|
|
6b5415 |
# jaeger samplerconfig param
|
|
|
6b5415 |
# for "const" sampler, 0 or 1 for always false/true respectively
|
|
|
6b5415 |
# for "probabilistic" sampler, a probability between 0 and 1
|
|
|
6b5415 |
# for "rateLimiting" sampler, the number of spans per second
|
|
|
6b5415 |
# for "remote" sampler, param is the same as for "probabilistic"
|
|
|
6b5415 |
# and indicates the initial sampling rate before the actual one
|
|
|
6b5415 |
# is received from the mothership
|
|
|
6b5415 |
sampler_param = 1
|
|
|
6b5415 |
# Whether or not to use Zipkin span propagation (x-b3- HTTP headers).
|
|
|
6b5415 |
zipkin_propagation = false
|
|
|
6b5415 |
# Setting this to true disables shared RPC spans.
|
|
|
6b5415 |
# Not disabling is the most common setting when using Zipkin elsewhere in your infrastructure.
|
|
|
6b5415 |
disable_shared_zipkin_spans = false
|
|
|
6b5415 |
|
|
|
6b5415 |
#################################### External Image Storage ##############
|
|
|
6b5415 |
[external_image_storage]
|
|
|
6b5415 |
# Used for uploading images to public servers so they can be included in slack/email messages.
|
|
|
6b5415 |
# You can choose between (s3, webdav, gcs, azure_blob, local)
|
|
|
6b5415 |
provider =
|
|
|
6b5415 |
|
|
|
6b5415 |
[external_image_storage.s3]
|
|
|
6b5415 |
endpoint =
|
|
|
6b5415 |
path_style_access =
|
|
|
6b5415 |
bucket_url =
|
|
|
6b5415 |
bucket =
|
|
|
6b5415 |
region =
|
|
|
6b5415 |
path =
|
|
|
6b5415 |
access_key =
|
|
|
6b5415 |
secret_key =
|
|
|
6b5415 |
|
|
|
6b5415 |
[external_image_storage.webdav]
|
|
|
6b5415 |
url =
|
|
|
6b5415 |
username =
|
|
|
6b5415 |
password =
|
|
|
6b5415 |
public_url =
|
|
|
6b5415 |
|
|
|
6b5415 |
[external_image_storage.gcs]
|
|
|
6b5415 |
key_file =
|
|
|
6b5415 |
bucket =
|
|
|
6b5415 |
path =
|
|
|
6b5415 |
|
|
|
6b5415 |
[external_image_storage.azure_blob]
|
|
|
6b5415 |
account_name =
|
|
|
6b5415 |
account_key =
|
|
|
6b5415 |
container_name =
|
|
|
6b5415 |
|
|
|
6b5415 |
[external_image_storage.local]
|
|
|
6b5415 |
# does not require any configuration
|
|
|
6b5415 |
|
|
|
6b5415 |
[rendering]
|
|
|
6b5415 |
# Options to configure a remote HTTP image rendering service, e.g. using https://github.com/grafana/grafana-image-renderer.
|
|
|
6b5415 |
# URL to a remote HTTP image renderer service, e.g. http://localhost:8081/render, will enable Grafana to render panels and dashboards to PNG-images using HTTP requests to an external service.
|
|
|
6b5415 |
server_url =
|
|
|
6b5415 |
# If the remote HTTP image renderer service runs on a different server than the Grafana server you may have to configure this to a URL where Grafana is reachable, e.g. http://grafana.domain/.
|
|
|
6b5415 |
callback_url =
|
|
|
6b5415 |
|
|
|
6b5415 |
[panels]
|
|
|
6b5415 |
# here for to support old env variables, can remove after a few months
|
|
|
6b5415 |
enable_alpha = false
|
|
|
6b5415 |
disable_sanitize_html = false
|
|
|
6b5415 |
|
|
|
6b5415 |
[plugins]
|
|
|
6b5415 |
enable_alpha = false
|
|
|
6b5415 |
app_tls_skip_verify_insecure = false
|
|
|
6b5415 |
|
|
|
6b5415 |
[enterprise]
|
|
|
6b5415 |
license_path =
|
|
|
6b5415 |
|
|
|
6b5415 |
[feature_toggles]
|
|
|
6b5415 |
# enable features, separated by spaces
|
|
|
6b5415 |
enable =
|