|
|
@@ -9,7 +9,7 @@ app_mode = production
|
|
|
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
|
|
|
instance_name = ${HOSTNAME}
|
|
|
|
|
|
-#################################### Paths ####################################
|
|
|
+#################################### Paths ###############################
|
|
|
[paths]
|
|
|
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
|
|
|
#
|
|
|
@@ -23,7 +23,7 @@ logs = data/log
|
|
|
#
|
|
|
plugins = data/plugins
|
|
|
|
|
|
-#################################### Server ####################################
|
|
|
+#################################### Server ##############################
|
|
|
[server]
|
|
|
# Protocol (http or https)
|
|
|
protocol = http
|
|
|
@@ -57,7 +57,7 @@ enable_gzip = false
|
|
|
cert_file =
|
|
|
cert_key =
|
|
|
|
|
|
-#################################### Database ####################################
|
|
|
+#################################### Database ############################
|
|
|
[database]
|
|
|
# You can configure the database connection by specifying type, host, name, user and password
|
|
|
# as seperate properties or as on string using the url propertie.
|
|
|
@@ -84,7 +84,7 @@ server_cert_name =
|
|
|
# For "sqlite3" only, path relative to data_path setting
|
|
|
path = grafana.db
|
|
|
|
|
|
-#################################### Session ####################################
|
|
|
+#################################### Session #############################
|
|
|
[session]
|
|
|
# Either "memory", "file", "redis", "mysql", "postgres", "memcache", default is "file"
|
|
|
provider = file
|
|
|
@@ -112,7 +112,7 @@ cookie_secure = false
|
|
|
session_life_time = 86400
|
|
|
gc_interval_time = 86400
|
|
|
|
|
|
-#################################### Analytics ####################################
|
|
|
+#################################### Analytics ###########################
|
|
|
[analytics]
|
|
|
# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
|
|
|
# No ip addresses are being tracked, only simple counters to track
|
|
|
@@ -133,7 +133,7 @@ google_analytics_ua_id =
|
|
|
# Google Tag Manager ID, only enabled if you specify an id here
|
|
|
google_tag_manager_id =
|
|
|
|
|
|
-#################################### Security ####################################
|
|
|
+#################################### Security ############################
|
|
|
[security]
|
|
|
# default admin user, created on startup
|
|
|
admin_user = admin
|
|
|
@@ -161,6 +161,12 @@ external_enabled = true
|
|
|
external_snapshot_url = https://snapshots-origin.raintank.io
|
|
|
external_snapshot_name = Publish to snapshot.raintank.io
|
|
|
|
|
|
+# remove expired snapshot
|
|
|
+snapshot_remove_expired = true
|
|
|
+
|
|
|
+# remove snapshots after 90 days
|
|
|
+snapshot_TTL_days = 90
|
|
|
+
|
|
|
#################################### Users ####################################
|
|
|
[users]
|
|
|
# disable user signup / registration
|
|
|
@@ -184,10 +190,11 @@ login_hint = email or username
|
|
|
# Default UI theme ("dark" or "light")
|
|
|
default_theme = dark
|
|
|
|
|
|
-# Allow users to sign in using username and password
|
|
|
-allow_user_pass_login = true
|
|
|
+[auth]
|
|
|
+# Set to true to disable (hide) the login form, useful if you use OAuth
|
|
|
+disable_login_form = false
|
|
|
|
|
|
-#################################### Anonymous Auth ##########################
|
|
|
+#################################### Anonymous Auth ######################
|
|
|
[auth.anonymous]
|
|
|
# enable anonymous access
|
|
|
enabled = false
|
|
|
@@ -198,7 +205,7 @@ org_name = Main Org.
|
|
|
# specify role for unauthenticated users
|
|
|
org_role = Viewer
|
|
|
|
|
|
-#################################### Github Auth ##########################
|
|
|
+#################################### Github Auth #########################
|
|
|
[auth.github]
|
|
|
enabled = false
|
|
|
allow_sign_up = false
|
|
|
@@ -211,7 +218,7 @@ api_url = https://api.github.com/user
|
|
|
team_ids =
|
|
|
allowed_organizations =
|
|
|
|
|
|
-#################################### Google Auth ##########################
|
|
|
+#################################### Google Auth #########################
|
|
|
[auth.google]
|
|
|
enabled = false
|
|
|
allow_sign_up = false
|
|
|
@@ -223,7 +230,16 @@ token_url = https://accounts.google.com/o/oauth2/token
|
|
|
api_url = https://www.googleapis.com/oauth2/v1/userinfo
|
|
|
allowed_domains =
|
|
|
|
|
|
-#################################### Generic OAuth ##########################
|
|
|
+#################################### Grafana.net Auth ####################
|
|
|
+[auth.grafananet]
|
|
|
+enabled = false
|
|
|
+allow_sign_up = false
|
|
|
+client_id = some_id
|
|
|
+client_secret = some_secret
|
|
|
+scopes = user:email
|
|
|
+allowed_organizations =
|
|
|
+
|
|
|
+#################################### Generic OAuth #######################
|
|
|
[auth.generic_oauth]
|
|
|
enabled = false
|
|
|
allow_sign_up = false
|
|
|
@@ -247,12 +263,12 @@ header_name = X-WEBAUTH-USER
|
|
|
header_property = username
|
|
|
auto_sign_up = true
|
|
|
|
|
|
-#################################### Auth LDAP ##########################
|
|
|
+#################################### Auth LDAP ###########################
|
|
|
[auth.ldap]
|
|
|
enabled = false
|
|
|
config_file = /etc/grafana/ldap.toml
|
|
|
|
|
|
-#################################### SMTP / Emailing ##########################
|
|
|
+#################################### SMTP / Emailing #####################
|
|
|
[smtp]
|
|
|
enabled = false
|
|
|
host = localhost:25
|
|
|
@@ -322,18 +338,18 @@ facility =
|
|
|
tag =
|
|
|
|
|
|
|
|
|
-#################################### AMQP Event Publisher ##########################
|
|
|
+#################################### AMQP Event Publisher ################
|
|
|
[event_publisher]
|
|
|
enabled = false
|
|
|
rabbitmq_url = amqp://localhost/
|
|
|
exchange = grafana_events
|
|
|
|
|
|
-#################################### Dashboard JSON files ##########################
|
|
|
+#################################### Dashboard JSON files ################
|
|
|
[dashboards.json]
|
|
|
enabled = false
|
|
|
path = /var/lib/grafana/dashboards
|
|
|
|
|
|
-#################################### Usage Quotas ##########################
|
|
|
+#################################### Usage Quotas ########################
|
|
|
[quota]
|
|
|
enabled = false
|
|
|
|
|
|
@@ -368,7 +384,7 @@ global_api_key = -1
|
|
|
# global limit on number of logged in users.
|
|
|
global_session = -1
|
|
|
|
|
|
-#################################### Alerting ######################################
|
|
|
+#################################### Alerting ############################
|
|
|
# docs about alerting can be found in /docs/sources/alerting/
|
|
|
# __.-/|
|
|
|
# \`o_O'
|
|
|
@@ -387,7 +403,7 @@ global_session = -1
|
|
|
[alerting]
|
|
|
enabled = true
|
|
|
|
|
|
-#################################### Internal Grafana Metrics ##########################
|
|
|
+#################################### Internal Grafana Metrics ############
|
|
|
# Metrics available at HTTP API Url /api/metrics
|
|
|
[metrics]
|
|
|
enabled = true
|
|
|
@@ -402,9 +418,9 @@ prefix = prod.grafana.%(instance_name)s.
|
|
|
[grafana_net]
|
|
|
url = https://grafana.net
|
|
|
|
|
|
-#################################### External image storage ##########################
|
|
|
+#################################### External Image Storage ##############
|
|
|
[external_image_storage]
|
|
|
-# You can choose between (s3, webdav or internal)
|
|
|
+# You can choose between (s3, webdav)
|
|
|
provider = s3
|
|
|
|
|
|
[external_image_storage.s3]
|