Blame SOURCES/distro-defaults.ini

68ed87
##################### Grafana Configuration Defaults #####################
d08e3e
#
d08e3e
# Do not modify this file in grafana installs
d08e3e
#
d08e3e
d08e3e
# possible values : production, development
d08e3e
app_mode = production
d08e3e
d08e3e
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
d08e3e
instance_name = ${HOSTNAME}
d08e3e
d08e3e
#################################### Paths ###############################
d08e3e
[paths]
d08e3e
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
d08e3e
data = /var/lib/grafana
d08e3e
d08e3e
# Temporary files in `data` directory older than given duration will be removed
d08e3e
temp_data_lifetime = 24h
d08e3e
d08e3e
# Directory where grafana can store logs
d08e3e
logs = /var/log/grafana
d08e3e
d08e3e
# Directory where grafana will automatically scan and look for plugins
d08e3e
plugins = /var/lib/grafana/plugins
d08e3e
d08e3e
# folder that contains provisioning config files that grafana will apply on startup and while running.
68ed87
provisioning = /etc/grafana/provisioning
d08e3e
d08e3e
#################################### Server ##############################
d08e3e
[server]
d08e3e
# Protocol (http, https, h2, socket)
d08e3e
protocol = http
d08e3e
d08e3e
# The ip address to bind to, empty will bind to all interfaces
d08e3e
http_addr =
d08e3e
d08e3e
# The http port to use
d08e3e
http_port = 3000
d08e3e
d08e3e
# The public facing domain name used to access grafana from a browser
d08e3e
domain = localhost
d08e3e
d08e3e
# Redirect to correct domain if host header does not match domain
d08e3e
# Prevents DNS rebinding attacks
d08e3e
enforce_domain = false
d08e3e
d08e3e
# The full public facing url
d08e3e
root_url = %(protocol)s://%(domain)s:%(http_port)s/
d08e3e
d08e3e
# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
d08e3e
serve_from_sub_path = false
d08e3e
d08e3e
# Log web requests
d08e3e
router_logging = false
d08e3e
d08e3e
# the path relative working path
d08e3e
static_root_path = public
d08e3e
d08e3e
# enable gzip
d08e3e
enable_gzip = false
d08e3e
d08e3e
# https certs & key file
d08e3e
cert_file =
d08e3e
cert_key =
d08e3e
d08e3e
# Unix socket path
d08e3e
socket = /tmp/grafana.sock
d08e3e
77b9e5
# CDN Url
77b9e5
cdn_url =
77b9e5
c75a6d
# Sets the maximum time in minutes before timing out read of an incoming request and closing idle connections.
77b9e5
# `0` means there is no timeout for reading the request.
77b9e5
read_timeout = 0
77b9e5
d08e3e
#################################### Database ############################
d08e3e
[database]
d08e3e
# You can configure the database connection by specifying type, host, name, user and password
d08e3e
# as separate properties or as on string using the url property.
d08e3e
d08e3e
# Either "mysql", "postgres" or "sqlite3", it's your choice
d08e3e
type = sqlite3
d08e3e
host = 127.0.0.1:3306
d08e3e
name = grafana
d08e3e
user = root
d08e3e
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
d08e3e
password =
d08e3e
# Use either URL or the previous fields to configure the database
d08e3e
# Example: mysql://user:secret@host:port/database
d08e3e
url =
d08e3e
d08e3e
# Max idle conn setting default is 2
d08e3e
max_idle_conn = 2
d08e3e
d08e3e
# Max conn setting default is 0 (mean not set)
d08e3e
max_open_conn =
d08e3e
d08e3e
# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
d08e3e
conn_max_lifetime = 14400
d08e3e
d08e3e
# Set to true to log the sql calls and execution times.
d08e3e
log_queries =
d08e3e
d08e3e
# For "postgres", use either "disable", "require" or "verify-full"
d08e3e
# For "mysql", use either "true", "false", or "skip-verify".
d08e3e
ssl_mode = disable
d08e3e
77b9e5
# Database drivers may support different transaction isolation levels.
77b9e5
# Currently, only "mysql" driver supports isolation levels.
77b9e5
# If the value is empty - driver's default isolation level is applied.
77b9e5
# For "mysql" use "READ-UNCOMMITTED", "READ-COMMITTED", "REPEATABLE-READ" or "SERIALIZABLE".
77b9e5
isolation_level =
77b9e5
d08e3e
ca_cert_path =
d08e3e
client_key_path =
d08e3e
client_cert_path =
d08e3e
server_cert_name =
d08e3e
d08e3e
# For "sqlite3" only, path relative to data_path setting
d08e3e
path = grafana.db
d08e3e
d08e3e
# For "sqlite3" only. cache mode setting used for connecting to the database
d08e3e
cache_mode = private
d08e3e
d08e3e
#################################### Cache server #############################
d08e3e
[remote_cache]
d08e3e
# Either "redis", "memcached" or "database" default is "database"
d08e3e
type = database
d08e3e
d08e3e
# cache connectionstring options
d08e3e
# database: will use Grafana primary database.
d08e3e
# 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'.
d08e3e
# memcache: 127.0.0.1:11211
d08e3e
connstr =
d08e3e
d08e3e
#################################### Data proxy ###########################
d08e3e
[dataproxy]
d08e3e
d08e3e
# This enables data proxy logging, default is false
d08e3e
logging = false
d08e3e
68ed87
# How long the data proxy waits before timing out, default is 30 seconds.
68ed87
# This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set.
d08e3e
timeout = 30
d08e3e
68ed87
# How many seconds the data proxy waits before sending a keepalive request.
68ed87
keep_alive_seconds = 30
68ed87
68ed87
# How many seconds the data proxy waits for a successful TLS Handshake before timing out.
68ed87
tls_handshake_timeout_seconds = 10
68ed87
68ed87
# How many seconds the data proxy will wait for a server's first response headers after
68ed87
# fully writing the request headers if the request has an "Expect: 100-continue"
68ed87
# header. A value of 0 will result in the body being sent immediately, without
68ed87
# waiting for the server to approve.
68ed87
expect_continue_timeout_seconds = 1
68ed87
c75a6d
# Optionally limits the total number of connections per host, including connections in the dialing,
c75a6d
# active, and idle states. On limit violation, dials will block.
c75a6d
# A value of zero (0) means no limit.
c75a6d
max_conns_per_host = 0
c75a6d
68ed87
# The maximum number of idle connections that Grafana will keep alive.
68ed87
max_idle_connections = 100
68ed87
c75a6d
# The maximum number of idle connections per host that Grafana will keep alive.
c75a6d
max_idle_connections_per_host = 2
c75a6d
68ed87
# How many seconds the data proxy keeps an idle connection open before timing out.
68ed87
idle_conn_timeout_seconds = 90
68ed87
68ed87
# If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request.
d08e3e
send_user_header = false
d08e3e
d08e3e
#################################### Analytics ###########################
d08e3e
[analytics]
d08e3e
# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
d08e3e
# No ip addresses are being tracked, only simple counters to track
d08e3e
# running instances, dashboard and error counts. It is very helpful to us.
d08e3e
# Change this option to false to disable reporting.
d08e3e
reporting_enabled = false
d08e3e
77b9e5
# The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs
77b9e5
reporting_distributor = grafana-labs
77b9e5
d08e3e
# Set to false to disable all checks to https://grafana.com
d08e3e
# for new versions (grafana itself and plugins), check is used
d08e3e
# in some UI views to notify that grafana or plugin update exists
d08e3e
# This option does not cause any auto updates, nor send any information
d08e3e
# only a GET request to https://grafana.com to get latest versions
d08e3e
check_for_updates = false
d08e3e
d08e3e
# Google Analytics universal tracking code, only enabled if you specify an id here
d08e3e
google_analytics_ua_id =
d08e3e
d08e3e
# Google Tag Manager ID, only enabled if you specify an id here
d08e3e
google_tag_manager_id =
d08e3e
d08e3e
#################################### Security ############################
d08e3e
[security]
d08e3e
# disable creation of admin user on first start of grafana
d08e3e
disable_initial_admin_creation = false
d08e3e
d08e3e
# default admin user, created on startup
d08e3e
admin_user = admin
d08e3e
d08e3e
# default admin password, can be changed before first start of grafana, or in profile settings
d08e3e
admin_password = admin
d08e3e
d08e3e
# used for signing
d08e3e
secret_key = SW2YcwTIb9zpOOhoPsMm
d08e3e
d08e3e
# disable gravatar profile images
d08e3e
disable_gravatar = false
d08e3e
d08e3e
# data source proxy whitelist (ip_or_domain:port separated by spaces)
d08e3e
data_source_proxy_whitelist =
d08e3e
d08e3e
# disable protection against brute force login attempts
d08e3e
disable_brute_force_login_protection = false
d08e3e
d08e3e
# set to true if you host Grafana behind HTTPS. default is false.
d08e3e
cookie_secure = false
d08e3e
d08e3e
# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
d08e3e
cookie_samesite = lax
d08e3e
d08e3e
# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
d08e3e
allow_embedding = false
d08e3e
d08e3e
# Set to true if you want to enable http strict transport security (HSTS) response header.
d08e3e
# This is only sent when HTTPS is enabled in this configuration.
d08e3e
# HSTS tells browsers that the site should only be accessed using HTTPS.
d08e3e
strict_transport_security = false
d08e3e
d08e3e
# Sets how long a browser should cache HSTS. Only applied if strict_transport_security is enabled.
d08e3e
strict_transport_security_max_age_seconds = 86400
d08e3e
d08e3e
# Set to true if to enable HSTS preloading option. Only applied if strict_transport_security is enabled.
d08e3e
strict_transport_security_preload = false
d08e3e
d08e3e
# Set to true if to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled.
d08e3e
strict_transport_security_subdomains = false
d08e3e
d08e3e
# Set to true to enable the X-Content-Type-Options response header.
d08e3e
# The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
68ed87
# in the Content-Type headers should not be changed and be followed.
68ed87
x_content_type_options = true
d08e3e
d08e3e
# Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
68ed87
# when they detect reflected cross-site scripting (XSS) attacks.
68ed87
x_xss_protection = true
d08e3e
77b9e5
# Enable adding the Content-Security-Policy header to your requests.
77b9e5
# CSP allows to control resources the user agent is allowed to load and helps prevent XSS attacks.
77b9e5
content_security_policy = false
77b9e5
77b9e5
# Set Content Security Policy template used when adding the Content-Security-Policy header to your requests.
77b9e5
# $NONCE in the template includes a random nonce.
77b9e5
content_security_policy_template = """script-src 'unsafe-eval' 'strict-dynamic' $NONCE;object-src 'none';font-src 'self';style-src 'self' 'unsafe-inline';img-src 'self' data:;base-uri 'self';connect-src 'self' grafana.com;manifest-src 'self';media-src 'none';form-action 'self';"""
d08e3e
d08e3e
#################################### Snapshots ###########################
d08e3e
[snapshots]
d08e3e
# snapshot sharing options
d08e3e
external_enabled = false
d08e3e
external_snapshot_url = https://snapshots-origin.raintank.io
d08e3e
external_snapshot_name = Publish to snapshot.raintank.io
d08e3e
d08e3e
# Set to true to enable this Grafana instance act as an external snapshot server and allow unauthenticated requests for
d08e3e
# creating and deleting snapshots.
d08e3e
public_mode = false
d08e3e
d08e3e
# remove expired snapshot
d08e3e
snapshot_remove_expired = true
d08e3e
d08e3e
#################################### Dashboards ##################
d08e3e
d08e3e
[dashboards]
d08e3e
# Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
d08e3e
versions_to_keep = 20
d08e3e
68ed87
# 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 5 seconds.
d08e3e
# 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.
68ed87
min_refresh_interval = 1s
68ed87
68ed87
# Path to the default home dashboard. If this value is empty, then Grafana uses StaticRootPath + "dashboards/home.json"
68ed87
default_home_dashboard_path =
d08e3e
77b9e5
################################### Data sources #########################
77b9e5
[datasources]
77b9e5
# Upper limit of data sources that Grafana will return. This limit is a temporary configuration and it will be deprecated when pagination will be introduced on the list data sources API.
77b9e5
datasource_limit = 5000
77b9e5
d08e3e
#################################### Users ###############################
d08e3e
[users]
d08e3e
# disable user signup / registration
d08e3e
allow_sign_up = false
d08e3e
d08e3e
# Allow non admin users to create organizations
d08e3e
allow_org_create = false
d08e3e
d08e3e
# Set to true to automatically assign new users to the default organization (id 1)
d08e3e
auto_assign_org = true
d08e3e
d08e3e
# Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
d08e3e
auto_assign_org_id = 1
d08e3e
d08e3e
# Default role new users will be automatically assigned (if auto_assign_org above is set to true)
d08e3e
auto_assign_org_role = Viewer
d08e3e
d08e3e
# Require email validation before sign up completes
d08e3e
verify_email_enabled = false
d08e3e
d08e3e
# Background text for the user field on the login page
d08e3e
login_hint = email or username
d08e3e
password_hint = password
d08e3e
d08e3e
# Default UI theme ("dark" or "light")
d08e3e
default_theme = dark
d08e3e
77b9e5
# Path to a custom home page. Users are only redirected to this if the default home dashboard is used. It should match a frontend route and contain a leading slash.
77b9e5
home_page =
77b9e5
d08e3e
# External user management
d08e3e
external_manage_link_url =
d08e3e
external_manage_link_name =
d08e3e
external_manage_info =
d08e3e
d08e3e
# Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
d08e3e
viewers_can_edit = false
d08e3e
d08e3e
# Editors can administrate dashboard, folders and teams they create
d08e3e
editors_can_admin = false
d08e3e
68ed87
# The duration in time a user invitation remains valid before expiring. This setting should be expressed as a duration. Examples: 6h (hours), 2d (days), 1w (week). Default is 24h (24 hours). The minimum supported duration is 15m (15 minutes).
68ed87
user_invite_max_lifetime_duration = 24h
68ed87
77b9e5
# Enter a comma-separated list of usernames to hide them in the Grafana UI. These users are shown to Grafana admins and to themselves.
77b9e5
hidden_users =
77b9e5
d08e3e
[auth]
d08e3e
# Login cookie name
d08e3e
login_cookie_name = grafana_session
d08e3e
68ed87
# The maximum lifetime (duration) an authenticated user can be inactive before being required to login at next visit. Default is 7 days (7d). This setting should be expressed as a duration, e.g. 5m (minutes), 6h (hours), 10d (days), 2w (weeks), 1M (month). The lifetime resets at each successful token rotation (token_rotation_interval_minutes).
68ed87
login_maximum_inactive_lifetime_duration =
d08e3e
68ed87
# The maximum lifetime (duration) an authenticated user can be logged in since login time before being required to login. Default is 30 days (30d). This setting should be expressed as a duration, e.g. 5m (minutes), 6h (hours), 10d (days), 2w (weeks), 1M (month).
68ed87
login_maximum_lifetime_duration =
d08e3e
d08e3e
# How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
d08e3e
token_rotation_interval_minutes = 10
d08e3e
d08e3e
# Set to true to disable (hide) the login form, useful if you use OAuth
d08e3e
disable_login_form = false
d08e3e
d08e3e
# Set to true to disable the signout link in the side menu. useful if you use auth.proxy
d08e3e
disable_signout_menu = false
d08e3e
d08e3e
# URL to redirect the user to after sign out
d08e3e
signout_redirect_url =
d08e3e
d08e3e
# Set to true to attempt login with OAuth automatically, skipping the login screen.
d08e3e
# This setting is ignored if multiple OAuth providers are configured.
d08e3e
oauth_auto_login = false
d08e3e
68ed87
# OAuth state max age cookie duration in seconds. Defaults to 600 seconds.
68ed87
oauth_state_cookie_max_age = 600
68ed87
d08e3e
# limit of api_key seconds to live before expiration
d08e3e
api_key_max_seconds_to_live = -1
d08e3e
68ed87
# Set to true to enable SigV4 authentication option for HTTP-based datasources
68ed87
sigv4_auth_enabled = false
68ed87
d08e3e
#################################### Anonymous Auth ######################
d08e3e
[auth.anonymous]
d08e3e
# enable anonymous access
d08e3e
enabled = false
d08e3e
d08e3e
# specify organization name that should be used for unauthenticated users
d08e3e
org_name = Main Org.
d08e3e
d08e3e
# specify role for unauthenticated users
d08e3e
org_role = Viewer
d08e3e
68ed87
# mask the Grafana version number for unauthenticated users
68ed87
hide_version = false
68ed87
68ed87
#################################### GitHub Auth #########################
d08e3e
[auth.github]
d08e3e
enabled = false
d08e3e
allow_sign_up = true
d08e3e
client_id = some_id
68ed87
client_secret =
d08e3e
scopes = user:email,read:org
d08e3e
auth_url = https://github.com/login/oauth/authorize
d08e3e
token_url = https://github.com/login/oauth/access_token
d08e3e
api_url = https://api.github.com/user
d08e3e
allowed_domains =
d08e3e
team_ids =
d08e3e
allowed_organizations =
d08e3e
d08e3e
#################################### GitLab Auth #########################
d08e3e
[auth.gitlab]
d08e3e
enabled = false
d08e3e
allow_sign_up = true
d08e3e
client_id = some_id
68ed87
client_secret =
d08e3e
scopes = api
d08e3e
auth_url = https://gitlab.com/oauth/authorize
d08e3e
token_url = https://gitlab.com/oauth/token
d08e3e
api_url = https://gitlab.com/api/v4
d08e3e
allowed_domains =
d08e3e
allowed_groups =
d08e3e
d08e3e
#################################### Google Auth #########################
d08e3e
[auth.google]
d08e3e
enabled = false
d08e3e
allow_sign_up = true
d08e3e
client_id = some_client_id
68ed87
client_secret =
d08e3e
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
d08e3e
auth_url = https://accounts.google.com/o/oauth2/auth
d08e3e
token_url = https://accounts.google.com/o/oauth2/token
d08e3e
api_url = https://www.googleapis.com/oauth2/v1/userinfo
d08e3e
allowed_domains =
d08e3e
hosted_domain =
d08e3e
d08e3e
#################################### Grafana.com Auth ####################
d08e3e
# legacy key names (so they work in env variables)
d08e3e
[auth.grafananet]
d08e3e
enabled = false
d08e3e
allow_sign_up = true
d08e3e
client_id = some_id
68ed87
client_secret =
d08e3e
scopes = user:email
d08e3e
allowed_organizations =
d08e3e
d08e3e
[auth.grafana_com]
d08e3e
enabled = false
d08e3e
allow_sign_up = true
d08e3e
client_id = some_id
68ed87
client_secret =
d08e3e
scopes = user:email
d08e3e
allowed_organizations =
d08e3e
d08e3e
#################################### Azure AD OAuth #######################
d08e3e
[auth.azuread]
d08e3e
name = Azure AD
d08e3e
enabled = false
d08e3e
allow_sign_up = true
d08e3e
client_id = some_client_id
68ed87
client_secret =
d08e3e
scopes = openid email profile
d08e3e
auth_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
d08e3e
token_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
d08e3e
allowed_domains =
d08e3e
allowed_groups =
d08e3e
68ed87
#################################### Okta OAuth #######################
68ed87
[auth.okta]
68ed87
name = Okta
68ed87
enabled = false
68ed87
allow_sign_up = true
68ed87
client_id = some_id
68ed87
client_secret =
68ed87
scopes = openid profile email groups
68ed87
auth_url = https://<tenant-id>.okta.com/oauth2/v1/authorize
68ed87
token_url = https://<tenant-id>.okta.com/oauth2/v1/token
68ed87
api_url = https://<tenant-id>.okta.com/oauth2/v1/userinfo
68ed87
allowed_domains =
68ed87
allowed_groups =
68ed87
role_attribute_path =
68ed87
d08e3e
#################################### Generic OAuth #######################
d08e3e
[auth.generic_oauth]
d08e3e
name = OAuth
d08e3e
enabled = false
d08e3e
allow_sign_up = true
d08e3e
client_id = some_id
68ed87
client_secret =
d08e3e
scopes = user:email
d08e3e
email_attribute_name = email:primary
d08e3e
email_attribute_path =
68ed87
login_attribute_path =
77b9e5
name_attribute_path =
d08e3e
role_attribute_path =
68ed87
id_token_attribute_name =
d08e3e
auth_url =
d08e3e
token_url =
d08e3e
api_url =
d08e3e
allowed_domains =
d08e3e
team_ids =
d08e3e
allowed_organizations =
d08e3e
tls_skip_verify_insecure = false
d08e3e
tls_client_cert =
d08e3e
tls_client_key =
d08e3e
tls_client_ca =
d08e3e
d08e3e
#################################### Basic Auth ##########################
d08e3e
[auth.basic]
d08e3e
enabled = true
d08e3e
d08e3e
#################################### Auth Proxy ##########################
d08e3e
[auth.proxy]
d08e3e
enabled = false
d08e3e
header_name = X-WEBAUTH-USER
d08e3e
header_property = username
d08e3e
auto_sign_up = true
d08e3e
# Deprecated, use sync_ttl instead
d08e3e
ldap_sync_ttl = 60
d08e3e
sync_ttl = 60
d08e3e
whitelist =
d08e3e
headers =
d08e3e
enable_login_token = false
d08e3e
d08e3e
#################################### Auth LDAP ###########################
d08e3e
[auth.ldap]
d08e3e
enabled = false
d08e3e
config_file = /etc/grafana/ldap.toml
d08e3e
allow_sign_up = true
d08e3e
77b9e5
# LDAP background sync (Enterprise only)
d08e3e
# At 1 am every day
d08e3e
sync_cron = "0 0 1 * * *"
68ed87
active_sync_enabled = true
d08e3e
77b9e5
#################################### AWS ###########################
77b9e5
[aws]
c75a6d
# Enter a comma-separated list of allowed AWS authentication providers.
77b9e5
# Options are: default (AWS SDK Default), keys (Access && secret key), credentials (Credentials field), ec2_iam_role (EC2 IAM Role)
77b9e5
allowed_auth_providers = default,keys,credentials
77b9e5
c75a6d
# Allow AWS users to assume a role using temporary security credentials.
77b9e5
# If true, assume role will be enabled for all AWS authentication providers that are specified in aws_auth_providers
77b9e5
assume_role_enabled = true
77b9e5
77b9e5
# Specify max no of pages to be returned by the ListMetricPages API
77b9e5
list_metrics_page_limit = 500
77b9e5
d08e3e
#################################### SMTP / Emailing #####################
d08e3e
[smtp]
d08e3e
enabled = false
d08e3e
host = localhost:25
d08e3e
user =
d08e3e
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
d08e3e
password =
d08e3e
cert_file =
d08e3e
key_file =
d08e3e
skip_verify = false
d08e3e
from_address = admin@grafana.localhost
d08e3e
from_name = Grafana
d08e3e
ehlo_identity =
68ed87
startTLS_policy =
d08e3e
d08e3e
[emails]
d08e3e
welcome_email_on_sign_up = false
d08e3e
templates_pattern = emails/*.html
d08e3e
d08e3e
#################################### Logging ##########################
d08e3e
[log]
d08e3e
# Either "console", "file", "syslog". Default is console and file
d08e3e
# Use space to separate multiple modes, e.g. "console file"
d08e3e
mode = console file
d08e3e
d08e3e
# Either "debug", "info", "warn", "error", "critical", default is "info"
d08e3e
level = info
d08e3e
d08e3e
# optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
d08e3e
filters =
d08e3e
d08e3e
# For "console" mode only
d08e3e
[log.console]
d08e3e
level =
d08e3e
d08e3e
# log line format, valid options are text, console and json
d08e3e
format = console
d08e3e
d08e3e
# For "file" mode only
d08e3e
[log.file]
d08e3e
level =
d08e3e
d08e3e
# log line format, valid options are text, console and json
d08e3e
format = text
d08e3e
d08e3e
# This enables automated log rotate(switch of following options), default is true
d08e3e
log_rotate = true
d08e3e
d08e3e
# Max line number of single file, default is 1000000
d08e3e
max_lines = 1000000
d08e3e
d08e3e
# Max size shift of single file, default is 28 means 1 << 28, 256MB
d08e3e
max_size_shift = 28
d08e3e
d08e3e
# Segment log daily, default is true
d08e3e
daily_rotate = true
d08e3e
d08e3e
# Expired days of log file(delete after max days), default is 7
d08e3e
max_days = 7
d08e3e
d08e3e
[log.syslog]
d08e3e
level =
d08e3e
d08e3e
# log line format, valid options are text, console and json
d08e3e
format = text
d08e3e
d08e3e
# Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
d08e3e
network =
d08e3e
address =
d08e3e
d08e3e
# Syslog facility. user, daemon and local0 through local7 are valid.
d08e3e
facility =
d08e3e
d08e3e
# Syslog tag. By default, the process' argv[0] is used.
d08e3e
tag =
d08e3e
77b9e5
[log.frontend]
77b9e5
# Should Sentry javascript agent be initialized
77b9e5
enabled = false
77b9e5
77b9e5
# Sentry DSN if you want to send events to Sentry.
77b9e5
sentry_dsn =
77b9e5
77b9e5
# Custom HTTP endpoint to send events captured by the Sentry agent to. Default will log the events to stdout.
77b9e5
custom_endpoint = /log
77b9e5
77b9e5
# Rate of events to be reported between 0 (none) and 1 (all), float
77b9e5
sample_rate = 1.0
77b9e5
77b9e5
# Requests per second limit enforced per an extended period, for Grafana backend log ingestion endpoint (/log).
77b9e5
log_endpoint_requests_per_second_limit = 3
77b9e5
77b9e5
# Max requests accepted per short interval of time for Grafana backend log ingestion endpoint (/log)
77b9e5
log_endpoint_burst_limit = 15
77b9e5
d08e3e
#################################### Usage Quotas ########################
d08e3e
[quota]
d08e3e
enabled = false
d08e3e
d08e3e
#### set quotas to -1 to make unlimited. ####
d08e3e
# limit number of users per Org.
d08e3e
org_user = 10
d08e3e
d08e3e
# limit number of dashboards per Org.
d08e3e
org_dashboard = 100
d08e3e
d08e3e
# limit number of data_sources per Org.
d08e3e
org_data_source = 10
d08e3e
d08e3e
# limit number of api_keys per Org.
d08e3e
org_api_key = 10
d08e3e
d08e3e
# limit number of orgs a user can create.
d08e3e
user_org = 10
d08e3e
d08e3e
# Global limit of users.
d08e3e
global_user = -1
d08e3e
d08e3e
# global limit of orgs.
d08e3e
global_org = -1
d08e3e
d08e3e
# global limit of dashboards
d08e3e
global_dashboard = -1
d08e3e
d08e3e
# global limit of api_keys
d08e3e
global_api_key = -1
d08e3e
d08e3e
# global limit on number of logged in users.
d08e3e
global_session = -1
d08e3e
d08e3e
#################################### Alerting ############################
d08e3e
[alerting]
d08e3e
# Disable alerting engine & UI features
d08e3e
enabled = true
d08e3e
# Makes it possible to turn off alert rule execution but alerting UI is visible
d08e3e
execute_alerts = true
d08e3e
d08e3e
# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
d08e3e
error_or_timeout = alerting
d08e3e
d08e3e
# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
d08e3e
nodata_or_nullvalues = no_data
d08e3e
d08e3e
# Alert notifications can include images, but rendering many images at the same time can overload the server
d08e3e
# This limit will protect the server from render overloading and make sure notifications are sent out quickly
d08e3e
concurrent_render_limit = 5
d08e3e
d08e3e
# Default setting for alert calculation timeout. Default value is 30
d08e3e
evaluation_timeout_seconds = 30
d08e3e
d08e3e
# Default setting for alert notification timeout. Default value is 30
d08e3e
notification_timeout_seconds = 30
d08e3e
d08e3e
# Default setting for max attempts to sending alert notifications. Default value is 3
d08e3e
max_attempts = 3
d08e3e
d08e3e
# Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
d08e3e
min_interval_seconds = 1
d08e3e
68ed87
# Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
68ed87
# This setting should be expressed as an duration. Ex 6h (hours), 10d (days), 2w (weeks), 1M (month).
68ed87
max_annotation_age =
68ed87
68ed87
# Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
68ed87
max_annotations_to_keep =
68ed87
68ed87
#################################### Annotations #########################
77b9e5
[annotations]
77b9e5
# Configures the batch size for the annotation clean-up job. This setting is used for dashboard, API, and alert annotations.
77b9e5
cleanupjob_batchsize = 100
68ed87
68ed87
[annotations.dashboard]
68ed87
# Dashboard annotations means that annotations are associated with the dashboard they are created on.
68ed87
68ed87
# Configures how long dashboard annotations are stored. Default is 0, which keeps them forever.
68ed87
# This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
68ed87
max_age =
68ed87
68ed87
# Configures max number of dashboard annotations that Grafana stores. Default value is 0, which keeps all dashboard annotations.
68ed87
max_annotations_to_keep =
68ed87
68ed87
[annotations.api]
68ed87
# API annotations means that the annotations have been created using the API without any
68ed87
# association with a dashboard.
68ed87
68ed87
# Configures how long Grafana stores API annotations. Default is 0, which keeps them forever.
68ed87
# This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
68ed87
max_age =
68ed87
68ed87
# Configures max number of API annotations that Grafana keeps. Default value is 0, which keeps all API annotations.
68ed87
max_annotations_to_keep =
68ed87
d08e3e
#################################### Explore #############################
d08e3e
[explore]
d08e3e
# Enable the Explore section
d08e3e
enabled = true
d08e3e
d08e3e
#################################### Internal Grafana Metrics ############
d08e3e
# Metrics available at HTTP API Url /metrics
d08e3e
[metrics]
d08e3e
enabled              = true
d08e3e
interval_seconds     = 10
d08e3e
# Disable total stats (stat_totals_*) metrics to be generated
d08e3e
disable_total_stats = false
d08e3e
d08e3e
#If both are set, basic auth will be required for the metrics endpoint.
d08e3e
basic_auth_username =
d08e3e
basic_auth_password =
d08e3e
68ed87
# Metrics environment info adds dimensions to the `grafana_environment_info` metric, which
68ed87
# can expose more information about the Grafana instance.
68ed87
[metrics.environment_info]
68ed87
#exampleLabel1 = exampleValue1
68ed87
#exampleLabel2 = exampleValue2
68ed87
d08e3e
# Send internal Grafana metrics to graphite
d08e3e
[metrics.graphite]
d08e3e
# Enable by setting the address setting (ex localhost:2003)
d08e3e
address =
d08e3e
prefix = prod.grafana.%(instance_name)s.
d08e3e
d08e3e
#################################### Grafana.com integration  ##########################
d08e3e
[grafana_net]
d08e3e
url = https://grafana.com
d08e3e
d08e3e
[grafana_com]
d08e3e
url = https://grafana.com
d08e3e
d08e3e
#################################### Distributed tracing ############
d08e3e
[tracing.jaeger]
d08e3e
# jaeger destination (ex localhost:6831)
d08e3e
address =
d08e3e
# tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
d08e3e
always_included_tag =
d08e3e
# Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
d08e3e
sampler_type = const
d08e3e
# jaeger samplerconfig param
d08e3e
# for "const" sampler, 0 or 1 for always false/true respectively
d08e3e
# for "probabilistic" sampler, a probability between 0 and 1
d08e3e
# for "rateLimiting" sampler, the number of spans per second
d08e3e
# for "remote" sampler, param is the same as for "probabilistic"
d08e3e
# and indicates the initial sampling rate before the actual one
d08e3e
# is received from the mothership
d08e3e
sampler_param = 1
68ed87
# sampling_server_url is the URL of a sampling manager providing a sampling strategy.
68ed87
sampling_server_url =
d08e3e
# Whether or not to use Zipkin span propagation (x-b3- HTTP headers).
d08e3e
zipkin_propagation = false
d08e3e
# Setting this to true disables shared RPC spans.
d08e3e
# Not disabling is the most common setting when using Zipkin elsewhere in your infrastructure.
d08e3e
disable_shared_zipkin_spans = false
d08e3e
d08e3e
#################################### External Image Storage ##############
d08e3e
[external_image_storage]
d08e3e
# Used for uploading images to public servers so they can be included in slack/email messages.
d08e3e
# You can choose between (s3, webdav, gcs, azure_blob, local)
d08e3e
provider =
d08e3e
d08e3e
[external_image_storage.s3]
d08e3e
endpoint =
d08e3e
path_style_access =
d08e3e
bucket_url =
d08e3e
bucket =
d08e3e
region =
d08e3e
path =
d08e3e
access_key =
d08e3e
secret_key =
d08e3e
d08e3e
[external_image_storage.webdav]
d08e3e
url =
d08e3e
username =
d08e3e
password =
d08e3e
public_url =
d08e3e
d08e3e
[external_image_storage.gcs]
d08e3e
key_file =
d08e3e
bucket =
d08e3e
path =
68ed87
enable_signed_urls = false
68ed87
signed_url_expiration =
d08e3e
d08e3e
[external_image_storage.azure_blob]
d08e3e
account_name =
d08e3e
account_key =
d08e3e
container_name =
d08e3e
d08e3e
[external_image_storage.local]
d08e3e
# does not require any configuration
d08e3e
d08e3e
[rendering]
d08e3e
# Options to configure a remote HTTP image rendering service, e.g. using https://github.com/grafana/grafana-image-renderer.
d08e3e
# 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.
d08e3e
server_url =
d08e3e
# 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/.
d08e3e
callback_url =
68ed87
# Concurrent render request limit affects when the /render HTTP endpoint is used. Rendering many images at the same time can overload the server,
68ed87
# which this setting can help protect against by only allowing a certain amount of concurrent requests.
68ed87
concurrent_render_request_limit = 30
d08e3e
d08e3e
[panels]
d08e3e
# here for to support old env variables, can remove after a few months
d08e3e
enable_alpha = false
d08e3e
disable_sanitize_html = false
d08e3e
d08e3e
[plugins]
d08e3e
enable_alpha = false
d08e3e
app_tls_skip_verify_insecure = false
68ed87
# Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature.
684abc
allow_loading_unsigned_plugins = pcp-redis-datasource
68ed87
marketplace_url = https://grafana.com/grafana/plugins/
68ed87
68ed87
#################################### Grafana Image Renderer Plugin ##########################
68ed87
[plugin.grafana-image-renderer]
68ed87
# Instruct headless browser instance to use a default timezone when not provided by Grafana, e.g. when rendering panel image of alert.
68ed87
# See ICU’s metaZones.txt (https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt) for a list of supported
68ed87
# timezone IDs. Fallbacks to TZ environment variable if not set.
68ed87
rendering_timezone =
68ed87
68ed87
# Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
68ed87
# Please refer to the HTTP header Accept-Language to understand how to format this value, e.g. 'fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5'.
68ed87
rendering_language =
68ed87
68ed87
# Instruct headless browser instance to use a default device scale factor when not provided by Grafana, e.g. when rendering panel image of alert.
68ed87
# Default is 1. Using a higher value will produce more detailed images (higher DPI), but will require more disk space to store an image.
68ed87
rendering_viewport_device_scale_factor =
68ed87
68ed87
# Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored. Due to
68ed87
# the security risk it's not recommended to ignore HTTPS errors.
68ed87
rendering_ignore_https_errors =
68ed87
68ed87
# Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is false and will
68ed87
# only capture and log error messages. When enabled, debug messages are captured and logged as well.
68ed87
# For the verbose information to be included in the Grafana server log you have to adjust the rendering log level to debug, configure
68ed87
# [log].filter = rendering:debug.
68ed87
rendering_verbose_logging =
68ed87
68ed87
# Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service.
68ed87
# Default is false. This can be useful to enable (true) when troubleshooting.
68ed87
rendering_dumpio =
68ed87
68ed87
# Additional arguments to pass to the headless browser instance. Default is --no-sandbox. The list of Chromium flags can be found
68ed87
# here (https://peter.sh/experiments/chromium-command-line-switches/). Multiple arguments is separated with comma-character.
68ed87
rendering_args =
68ed87
68ed87
# You can configure the plugin to use a different browser binary instead of the pre-packaged version of Chromium.
68ed87
# Please note that this is not recommended, since you may encounter problems if the installed version of Chrome/Chromium is not
68ed87
# compatible with the plugin.
68ed87
rendering_chrome_bin =
68ed87
68ed87
# Instruct how headless browser instances are created. Default is 'default' and will create a new browser instance on each request.
68ed87
# Mode 'clustered' will make sure that only a maximum of browsers/incognito pages can execute concurrently.
68ed87
# Mode 'reusable' will have one browser instance and will create a new incognito page on each request.
68ed87
rendering_mode =
68ed87
68ed87
# When rendering_mode = clustered you can instruct how many browsers or incognito pages can execute concurrently. Default is 'browser'
68ed87
# and will cluster using browser instances.
68ed87
# Mode 'context' will cluster using incognito pages.
68ed87
rendering_clustering_mode =
68ed87
# When rendering_mode = clustered you can define maximum number of browser instances/incognito pages that can execute concurrently..
68ed87
rendering_clustering_max_concurrency =
68ed87
68ed87
# Limit the maximum viewport width, height and device scale factor that can be requested.
68ed87
rendering_viewport_max_width =
68ed87
rendering_viewport_max_height =
68ed87
rendering_viewport_max_device_scale_factor =
68ed87
68ed87
# Change the listening host and port of the gRPC server. Default host is 127.0.0.1 and default port is 0 and will automatically assign
68ed87
# a port not in use.
68ed87
grpc_host =
68ed87
grpc_port =
d08e3e
d08e3e
[enterprise]
d08e3e
license_path =
d08e3e
d08e3e
[feature_toggles]
d08e3e
# enable features, separated by spaces
d08e3e
enable =
68ed87
68ed87
[date_formats]
68ed87
# For information on what formatting patterns that are supported https://momentjs.com/docs/#/displaying/
68ed87
68ed87
# Default system date format used in time range picker and other places where full time is displayed
68ed87
full_date = YYYY-MM-DD HH:mm:ss
68ed87
68ed87
# Used by graph and other places where we only show small intervals
68ed87
interval_second = HH:mm:ss
68ed87
interval_minute = HH:mm
68ed87
interval_hour = MM/DD HH:mm
68ed87
interval_day = MM/DD
68ed87
interval_month = YYYY-MM
68ed87
interval_year = YYYY
68ed87
68ed87
# Experimental feature
68ed87
use_browser_locale = false
68ed87
68ed87
# Default timezone for user preferences. Options are 'browser' for the browser local timezone or a timezone name from IANA Time Zone database, e.g. 'UTC' or 'Europe/Amsterdam' etc.
68ed87
default_timezone = browser
77b9e5
77b9e5
[expressions]
77b9e5
# Enable or disable the expressions functionality.
77b9e5
enabled = true