Blame SOURCES/distro-defaults.ini

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