Blame SOURCES/distro-defaults.ini

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