defaults.ini 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544
  1. ##################### Grafana Configuration Defaults #####################
  2. #
  3. # Do not modify this file in grafana installs
  4. #
  5. # possible values : production, development
  6. app_mode = production
  7. # instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
  8. instance_name = ${HOSTNAME}
  9. # force migration will run migrations that might cause dataloss
  10. force_migration = false
  11. #################################### Paths ###############################
  12. [paths]
  13. # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
  14. data = data
  15. # Temporary files in `data` directory older than given duration will be removed
  16. temp_data_lifetime = 24h
  17. # Directory where grafana can store logs
  18. logs = data/log
  19. # Directory where grafana will automatically scan and look for plugins
  20. plugins = data/plugins
  21. # folder that contains provisioning config files that grafana will apply on startup and while running.
  22. provisioning = conf/provisioning
  23. #################################### Server ##############################
  24. [server]
  25. # Protocol (http, https, h2, socket)
  26. protocol = http
  27. # The ip address to bind to, empty will bind to all interfaces
  28. http_addr =
  29. # The http port to use
  30. http_port = 3000
  31. # The public facing domain name used to access grafana from a browser
  32. domain = localhost
  33. # Redirect to correct domain if host header does not match domain
  34. # Prevents DNS rebinding attacks
  35. enforce_domain = false
  36. # The full public facing url
  37. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  38. # Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
  39. serve_from_sub_path = false
  40. # Log web requests
  41. router_logging = false
  42. # the path relative working path
  43. static_root_path = public
  44. # enable gzip
  45. enable_gzip = false
  46. # https certs & key file
  47. cert_file =
  48. cert_key =
  49. # Unix socket path
  50. socket = /tmp/grafana.sock
  51. # CDN Url
  52. cdn_url =
  53. # Sets the maximum time in minutes before timing out read of an incoming request and closing idle connections.
  54. # `0` means there is no timeout for reading the request.
  55. read_timeout = 0
  56. #################################### Database ############################
  57. [database]
  58. # You can configure the database connection by specifying type, host, name, user and password
  59. # as separate properties or as on string using the url property.
  60. # Either "mysql", "postgres" or "sqlite3", it's your choice
  61. type = sqlite3
  62. host = 127.0.0.1:3306
  63. name = grafana
  64. user = root
  65. # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
  66. password =
  67. # Use either URL or the previous fields to configure the database
  68. # Example: mysql://user:secret@host:port/database
  69. url =
  70. # Max idle conn setting default is 2
  71. max_idle_conn = 2
  72. # Max conn setting default is 0 (mean not set)
  73. max_open_conn =
  74. # Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
  75. conn_max_lifetime = 14400
  76. # Set to true to log the sql calls and execution times.
  77. log_queries =
  78. # For "postgres", use either "disable", "require" or "verify-full"
  79. # For "mysql", use either "true", "false", or "skip-verify".
  80. ssl_mode = disable
  81. # Database drivers may support different transaction isolation levels.
  82. # Currently, only "mysql" driver supports isolation levels.
  83. # If the value is empty - driver's default isolation level is applied.
  84. # For "mysql" use "READ-UNCOMMITTED", "READ-COMMITTED", "REPEATABLE-READ" or "SERIALIZABLE".
  85. isolation_level =
  86. ca_cert_path =
  87. client_key_path =
  88. client_cert_path =
  89. server_cert_name =
  90. # For "sqlite3" only, path relative to data_path setting
  91. path = grafana.db
  92. # For "sqlite3" only. cache mode setting used for connecting to the database
  93. cache_mode = private
  94. # For "mysql" only if lockingMigration feature toggle is set. How many seconds to wait before failing to lock the database for the migrations, default is 0.
  95. locking_attempt_timeout_sec = 0
  96. #################################### Cache server #############################
  97. [remote_cache]
  98. # Either "redis", "memcached" or "database" default is "database"
  99. type = database
  100. # cache connectionstring options
  101. # database: will use Grafana primary database.
  102. # 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'.
  103. # memcache: 127.0.0.1:11211
  104. connstr =
  105. #################################### Data proxy ###########################
  106. [dataproxy]
  107. # This enables data proxy logging, default is false
  108. logging = false
  109. # How long the data proxy waits to read the headers of the response before timing out, default is 30 seconds.
  110. # This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set.
  111. timeout = 30
  112. # How long the data proxy waits to establish a TCP connection before timing out, default is 10 seconds.
  113. dialTimeout = 10
  114. # How many seconds the data proxy waits before sending a keepalive request.
  115. keep_alive_seconds = 30
  116. # How many seconds the data proxy waits for a successful TLS Handshake before timing out.
  117. tls_handshake_timeout_seconds = 10
  118. # How many seconds the data proxy will wait for a server's first response headers after
  119. # fully writing the request headers if the request has an "Expect: 100-continue"
  120. # header. A value of 0 will result in the body being sent immediately, without
  121. # waiting for the server to approve.
  122. expect_continue_timeout_seconds = 1
  123. # Optionally limits the total number of connections per host, including connections in the dialing,
  124. # active, and idle states. On limit violation, dials will block.
  125. # A value of zero (0) means no limit.
  126. max_conns_per_host = 0
  127. # The maximum number of idle connections that Grafana will keep alive.
  128. max_idle_connections = 100
  129. # How many seconds the data proxy keeps an idle connection open before timing out.
  130. idle_conn_timeout_seconds = 90
  131. # If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request.
  132. send_user_header = false
  133. # Limit the amount of bytes that will be read/accepted from responses of outgoing HTTP requests.
  134. response_limit = 0
  135. # Limits the number of rows that Grafana will process from SQL data sources.
  136. row_limit = 1000000
  137. #################################### Analytics ###########################
  138. [analytics]
  139. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  140. # No ip addresses are being tracked, only simple counters to track
  141. # running instances, dashboard and error counts. It is very helpful to us.
  142. # Change this option to false to disable reporting.
  143. reporting_enabled = true
  144. # The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs
  145. reporting_distributor = grafana-labs
  146. # Set to false to disable all checks to https://grafana.com
  147. # for new versions of grafana. The check is used
  148. # in some UI views to notify that a grafana update exists.
  149. # This option does not cause any auto updates, nor send any information
  150. # only a GET request to https://raw.githubusercontent.com/grafana/grafana/main/latest.json to get the latest version.
  151. check_for_updates = true
  152. # Set to false to disable all checks to https://grafana.com
  153. # for new versions of plugins. The check is used
  154. # in some UI views to notify that a plugin update exists.
  155. # This option does not cause any auto updates, nor send any information
  156. # only a GET request to https://grafana.com to get the latest versions.
  157. check_for_plugin_updates = true
  158. # Google Analytics universal tracking code, only enabled if you specify an id here
  159. google_analytics_ua_id =
  160. # Google Tag Manager ID, only enabled if you specify an id here
  161. google_tag_manager_id =
  162. # Rudderstack write key, enabled only if rudderstack_data_plane_url is also set
  163. rudderstack_write_key =
  164. # Rudderstack data plane url, enabled only if rudderstack_write_key is also set
  165. rudderstack_data_plane_url =
  166. # Rudderstack SDK url, optional, only valid if rudderstack_write_key and rudderstack_data_plane_url is also set
  167. rudderstack_sdk_url =
  168. # Rudderstack Config url, optional, used by Rudderstack SDK to fetch source config
  169. rudderstack_config_url =
  170. # Application Insights connection string. Specify an URL string to enable this feature.
  171. application_insights_connection_string =
  172. # Optional. Specifies an Application Insights endpoint URL where the endpoint string is wrapped in backticks ``.
  173. application_insights_endpoint_url =
  174. # Controls if the UI contains any links to user feedback forms
  175. feedback_links_enabled = true
  176. #################################### Security ############################
  177. [security]
  178. # disable creation of admin user on first start of grafana
  179. disable_initial_admin_creation = false
  180. # default admin user, created on startup
  181. admin_user = admin
  182. # default admin password, can be changed before first start of grafana, or in profile settings
  183. admin_password = admin
  184. # used for signing
  185. secret_key = SW2YcwTIb9zpOOhoPsMm
  186. # current key provider used for envelope encryption, default to static value specified by secret_key
  187. encryption_provider = secretKey.v1
  188. # list of configured key providers, space separated (Enterprise only): e.g., awskms.v1 azurekv.v1
  189. available_encryption_providers =
  190. # disable gravatar profile images
  191. disable_gravatar = false
  192. # data source proxy whitelist (ip_or_domain:port separated by spaces)
  193. data_source_proxy_whitelist =
  194. # disable protection against brute force login attempts
  195. disable_brute_force_login_protection = false
  196. # set to true if you host Grafana behind HTTPS. default is false.
  197. cookie_secure = false
  198. # set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
  199. cookie_samesite = lax
  200. # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
  201. allow_embedding = false
  202. # Set to true if you want to enable http strict transport security (HSTS) response header.
  203. # HSTS tells browsers that the site should only be accessed using HTTPS.
  204. strict_transport_security = false
  205. # Sets how long a browser should cache HSTS. Only applied if strict_transport_security is enabled.
  206. strict_transport_security_max_age_seconds = 86400
  207. # Set to true if to enable HSTS preloading option. Only applied if strict_transport_security is enabled.
  208. strict_transport_security_preload = false
  209. # Set to true if to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled.
  210. strict_transport_security_subdomains = false
  211. # Set to true to enable the X-Content-Type-Options response header.
  212. # The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
  213. # in the Content-Type headers should not be changed and be followed.
  214. x_content_type_options = true
  215. # Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
  216. # when they detect reflected cross-site scripting (XSS) attacks.
  217. x_xss_protection = true
  218. # Enable adding the Content-Security-Policy header to your requests.
  219. # CSP allows to control resources the user agent is allowed to load and helps prevent XSS attacks.
  220. content_security_policy = false
  221. # Set Content Security Policy template used when adding the Content-Security-Policy header to your requests.
  222. # $NONCE in the template includes a random nonce.
  223. # $ROOT_PATH is server.root_url without the protocol.
  224. content_security_policy_template = """script-src 'self' 'unsafe-eval' 'unsafe-inline' 'strict-dynamic' $NONCE;object-src 'none';font-src 'self';style-src 'self' 'unsafe-inline' blob:;img-src * data:;base-uri 'self';connect-src 'self' grafana.com ws://$ROOT_PATH wss://$ROOT_PATH;manifest-src 'self';media-src 'none';form-action 'self';"""
  225. # Controls if old angular plugins are supported or not. This will be disabled by default in future release
  226. angular_support_enabled = true
  227. [security.encryption]
  228. # Defines the time-to-live (TTL) for decrypted data encryption keys stored in memory (cache).
  229. # Please note that small values may cause performance issues due to a high frequency decryption operations.
  230. data_keys_cache_ttl = 15m
  231. # Defines the frequency of data encryption keys cache cleanup interval.
  232. # On every interval, decrypted data encryption keys that reached the TTL are removed from the cache.
  233. data_keys_cache_cleanup_interval = 1m
  234. #################################### Snapshots ###########################
  235. [snapshots]
  236. # snapshot sharing options
  237. external_enabled = true
  238. external_snapshot_url = https://snapshots.raintank.io
  239. external_snapshot_name = Publish to snapshots.raintank.io
  240. # Set to true to enable this Grafana instance act as an external snapshot server and allow unauthenticated requests for
  241. # creating and deleting snapshots.
  242. public_mode = false
  243. # remove expired snapshot
  244. snapshot_remove_expired = true
  245. #################################### Dashboards ##################
  246. [dashboards]
  247. # Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
  248. versions_to_keep = 20
  249. # 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.
  250. # 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.
  251. min_refresh_interval = 5s
  252. # Path to the default home dashboard. If this value is empty, then Grafana uses StaticRootPath + "dashboards/home.json"
  253. default_home_dashboard_path =
  254. ################################### Data sources #########################
  255. [datasources]
  256. # 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.
  257. datasource_limit = 5000
  258. #################################### Users ###############################
  259. [users]
  260. # disable user signup / registration
  261. allow_sign_up = false
  262. # Allow non admin users to create organizations
  263. allow_org_create = false
  264. # Set to true to automatically assign new users to the default organization (id 1)
  265. auto_assign_org = true
  266. # Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
  267. auto_assign_org_id = 1
  268. # Default role new users will be automatically assigned (if auto_assign_org above is set to true)
  269. auto_assign_org_role = Viewer
  270. # Require email validation before sign up completes
  271. verify_email_enabled = false
  272. # Background text for the user field on the login page
  273. login_hint = email or username
  274. password_hint = password
  275. # Default UI theme ("dark" or "light")
  276. default_theme = dark
  277. # 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.
  278. home_page =
  279. # External user management
  280. external_manage_link_url =
  281. external_manage_link_name =
  282. external_manage_info =
  283. # Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
  284. viewers_can_edit = false
  285. # Editors can administrate dashboard, folders and teams they create
  286. editors_can_admin = false
  287. # 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).
  288. user_invite_max_lifetime_duration = 24h
  289. # Enter a comma-separated list of usernames to hide them in the Grafana UI. These users are shown to Grafana admins and to themselves.
  290. hidden_users =
  291. [auth]
  292. # Login cookie name
  293. login_cookie_name = grafana_session
  294. # 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).
  295. login_maximum_inactive_lifetime_duration =
  296. # 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).
  297. login_maximum_lifetime_duration =
  298. # How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
  299. token_rotation_interval_minutes = 10
  300. # Set to true to disable (hide) the login form, useful if you use OAuth
  301. disable_login_form = false
  302. # Set to true to disable the sign out link in the side menu. Useful if you use auth.proxy or auth.jwt.
  303. disable_signout_menu = false
  304. # URL to redirect the user to after sign out
  305. signout_redirect_url =
  306. # Set to true to attempt login with OAuth automatically, skipping the login screen.
  307. # This setting is ignored if multiple OAuth providers are configured.
  308. oauth_auto_login = false
  309. # OAuth state max age cookie duration in seconds. Defaults to 600 seconds.
  310. oauth_state_cookie_max_age = 600
  311. # Skip forced assignment of OrgID 1 or 'auto_assign_org_id' for social logins
  312. oauth_skip_org_role_update_sync = false
  313. # limit of api_key seconds to live before expiration
  314. api_key_max_seconds_to_live = -1
  315. # Set to true to enable SigV4 authentication option for HTTP-based datasources
  316. sigv4_auth_enabled = false
  317. # Set to true to enable verbose logging of SigV4 request signing
  318. sigv4_verbose_logging = false
  319. #################################### Anonymous Auth ######################
  320. [auth.anonymous]
  321. # enable anonymous access
  322. enabled = false
  323. # specify organization name that should be used for unauthenticated users
  324. org_name = Main Org.
  325. # specify role for unauthenticated users
  326. org_role = Viewer
  327. # mask the Grafana version number for unauthenticated users
  328. hide_version = false
  329. #################################### GitHub Auth #########################
  330. [auth.github]
  331. enabled = false
  332. allow_sign_up = true
  333. client_id = some_id
  334. client_secret =
  335. scopes = user:email,read:org
  336. auth_url = https://github.com/login/oauth/authorize
  337. token_url = https://github.com/login/oauth/access_token
  338. api_url = https://api.github.com/user
  339. allowed_domains =
  340. team_ids =
  341. allowed_organizations =
  342. #################################### GitLab Auth #########################
  343. [auth.gitlab]
  344. enabled = false
  345. allow_sign_up = true
  346. client_id = some_id
  347. client_secret =
  348. scopes = api
  349. auth_url = https://gitlab.com/oauth/authorize
  350. token_url = https://gitlab.com/oauth/token
  351. api_url = https://gitlab.com/api/v4
  352. allowed_domains =
  353. allowed_groups =
  354. role_attribute_path =
  355. role_attribute_strict = false
  356. #################################### Google Auth #########################
  357. [auth.google]
  358. enabled = false
  359. allow_sign_up = true
  360. client_id = some_client_id
  361. client_secret =
  362. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  363. auth_url = https://accounts.google.com/o/oauth2/auth
  364. token_url = https://accounts.google.com/o/oauth2/token
  365. api_url = https://www.googleapis.com/oauth2/v1/userinfo
  366. allowed_domains =
  367. hosted_domain =
  368. #################################### Grafana.com Auth ####################
  369. # legacy key names (so they work in env variables)
  370. [auth.grafananet]
  371. enabled = false
  372. allow_sign_up = true
  373. client_id = some_id
  374. client_secret =
  375. scopes = user:email
  376. allowed_organizations =
  377. [auth.grafana_com]
  378. enabled = false
  379. allow_sign_up = true
  380. client_id = some_id
  381. client_secret =
  382. scopes = user:email
  383. allowed_organizations =
  384. #################################### Azure AD OAuth #######################
  385. [auth.azuread]
  386. name = Azure AD
  387. enabled = false
  388. allow_sign_up = true
  389. client_id = some_client_id
  390. client_secret =
  391. scopes = openid email profile
  392. auth_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
  393. token_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
  394. allowed_domains =
  395. allowed_groups =
  396. role_attribute_strict = false
  397. #################################### Okta OAuth #######################
  398. [auth.okta]
  399. name = Okta
  400. icon = okta
  401. enabled = false
  402. allow_sign_up = true
  403. client_id = some_id
  404. client_secret =
  405. scopes = openid profile email groups
  406. auth_url = https://<tenant-id>.okta.com/oauth2/v1/authorize
  407. token_url = https://<tenant-id>.okta.com/oauth2/v1/token
  408. api_url = https://<tenant-id>.okta.com/oauth2/v1/userinfo
  409. allowed_domains =
  410. allowed_groups =
  411. role_attribute_path =
  412. role_attribute_strict = false
  413. #################################### Generic OAuth #######################
  414. [auth.generic_oauth]
  415. name = OAuth
  416. icon = signin
  417. enabled = false
  418. allow_sign_up = true
  419. client_id = some_id
  420. client_secret =
  421. scopes = user:email
  422. empty_scopes = false
  423. email_attribute_name = email:primary
  424. email_attribute_path =
  425. login_attribute_path =
  426. name_attribute_path =
  427. role_attribute_path =
  428. role_attribute_strict = false
  429. groups_attribute_path =
  430. id_token_attribute_name =
  431. team_ids_attribute_path =
  432. auth_url =
  433. token_url =
  434. api_url =
  435. teams_url =
  436. allowed_domains =
  437. team_ids =
  438. allowed_organizations =
  439. tls_skip_verify_insecure = false
  440. tls_client_cert =
  441. tls_client_key =
  442. tls_client_ca =
  443. use_pkce = false
  444. #################################### Basic Auth ##########################
  445. [auth.basic]
  446. enabled = true
  447. #################################### Auth Proxy ##########################
  448. [auth.proxy]
  449. enabled = false
  450. header_name = X-WEBAUTH-USER
  451. header_property = username
  452. auto_sign_up = true
  453. sync_ttl = 60
  454. whitelist =
  455. headers =
  456. headers_encoded = false
  457. enable_login_token = false
  458. #################################### Auth JWT ##########################
  459. [auth.jwt]
  460. enabled = false
  461. header_name =
  462. email_claim =
  463. username_claim =
  464. jwk_set_url =
  465. jwk_set_file =
  466. cache_ttl = 60m
  467. expected_claims = {}
  468. key_file =
  469. auto_sign_up = false
  470. #################################### Auth LDAP ###########################
  471. [auth.ldap]
  472. enabled = false
  473. config_file = /etc/grafana/ldap.toml
  474. allow_sign_up = true
  475. # LDAP background sync (Enterprise only)
  476. # At 1 am every day
  477. sync_cron = "0 1 * * *"
  478. active_sync_enabled = true
  479. #################################### AWS ###########################
  480. [aws]
  481. # Enter a comma-separated list of allowed AWS authentication providers.
  482. # Options are: default (AWS SDK Default), keys (Access && secret key), credentials (Credentials field), ec2_iam_role (EC2 IAM Role)
  483. allowed_auth_providers = default,keys,credentials
  484. # Allow AWS users to assume a role using temporary security credentials.
  485. # If true, assume role will be enabled for all AWS authentication providers that are specified in aws_auth_providers
  486. assume_role_enabled = true
  487. # Specify max no of pages to be returned by the ListMetricPages API
  488. list_metrics_page_limit = 500
  489. #################################### Azure ###############################
  490. [azure]
  491. # Azure cloud environment where Grafana is hosted
  492. # Possible values are AzureCloud, AzureChinaCloud, AzureUSGovernment and AzureGermanCloud
  493. # Default value is AzureCloud (i.e. public cloud)
  494. cloud = AzureCloud
  495. # Specifies whether Grafana hosted in Azure service with Managed Identity configured (e.g. Azure Virtual Machines instance)
  496. # If enabled, the managed identity can be used for authentication of Grafana in Azure services
  497. # Disabled by default, needs to be explicitly enabled
  498. managed_identity_enabled = false
  499. # Client ID to use for user-assigned managed identity
  500. # Should be set for user-assigned identity and should be empty for system-assigned identity
  501. managed_identity_client_id =
  502. #################################### Role-based Access Control ###########
  503. [rbac]
  504. enabled = true
  505. # If enabled, cache permissions in a in memory cache (Enterprise only)
  506. permission_cache = true
  507. #################################### SMTP / Emailing #####################
  508. [smtp]
  509. enabled = false
  510. host = localhost:25
  511. user =
  512. # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
  513. password =
  514. cert_file =
  515. key_file =
  516. skip_verify = false
  517. from_address = admin@grafana.localhost
  518. from_name = Grafana
  519. ehlo_identity =
  520. startTLS_policy =
  521. [emails]
  522. welcome_email_on_sign_up = false
  523. templates_pattern = emails/*.html, emails/*.txt
  524. content_types = text/html
  525. #################################### Logging ##########################
  526. [log]
  527. # Either "console", "file", "syslog". Default is console and file
  528. # Use space to separate multiple modes, e.g. "console file"
  529. mode = console file
  530. # Either "debug", "info", "warn", "error", "critical", default is "info"
  531. level = info
  532. # optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
  533. filters =
  534. # For "console" mode only
  535. [log.console]
  536. level =
  537. # log line format, valid options are text, console and json
  538. format = console
  539. # For "file" mode only
  540. [log.file]
  541. level =
  542. # log line format, valid options are text, console and json
  543. format = text
  544. # This enables automated log rotate(switch of following options), default is true
  545. log_rotate = true
  546. # Max line number of single file, default is 1000000
  547. max_lines = 1000000
  548. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  549. max_size_shift = 28
  550. # Segment log daily, default is true
  551. daily_rotate = true
  552. # Expired days of log file(delete after max days), default is 7
  553. max_days = 7
  554. [log.syslog]
  555. level =
  556. # log line format, valid options are text, console and json
  557. format = text
  558. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  559. network =
  560. address =
  561. # Syslog facility. user, daemon and local0 through local7 are valid.
  562. facility =
  563. # Syslog tag. By default, the process' argv[0] is used.
  564. tag =
  565. [log.frontend]
  566. # Should Sentry javascript agent be initialized
  567. enabled = false
  568. # Sentry DSN if you want to send events to Sentry.
  569. sentry_dsn =
  570. # Custom HTTP endpoint to send events captured by the Sentry agent to. Default will log the events to stdout.
  571. custom_endpoint = /log
  572. # Rate of events to be reported between 0 (none) and 1 (all), float
  573. sample_rate = 1.0
  574. # Requests per second limit enforced per an extended period, for Grafana backend log ingestion endpoint (/log).
  575. log_endpoint_requests_per_second_limit = 3
  576. # Max requests accepted per short interval of time for Grafana backend log ingestion endpoint (/log)
  577. log_endpoint_burst_limit = 15
  578. #################################### Usage Quotas ########################
  579. [quota]
  580. enabled = false
  581. #### set quotas to -1 to make unlimited. ####
  582. # limit number of users per Org.
  583. org_user = 10
  584. # limit number of dashboards per Org.
  585. org_dashboard = 100
  586. # limit number of data_sources per Org.
  587. org_data_source = 10
  588. # limit number of api_keys per Org.
  589. org_api_key = 10
  590. # limit number of alerts per Org.
  591. org_alert_rule = 100
  592. # limit number of orgs a user can create.
  593. user_org = 10
  594. # Global limit of users.
  595. global_user = -1
  596. # global limit of orgs.
  597. global_org = -1
  598. # global limit of dashboards
  599. global_dashboard = -1
  600. # global limit of api_keys
  601. global_api_key = -1
  602. # global limit on number of logged in users.
  603. global_session = -1
  604. # global limit of alerts
  605. global_alert_rule = -1
  606. #################################### Unified Alerting ####################
  607. [unified_alerting]
  608. # Enable the Unified Alerting sub-system and interface. When enabled we'll migrate all of your alert rules and notification channels to the new system. New alert rules will be created and your notification channels will be converted into an Alertmanager configuration. Previous data is preserved to enable backwards compatibility but new data is removed when switching. When this configuration section and flag are not defined, the state is defined at runtime. See the documentation for more details.
  609. enabled =
  610. # Comma-separated list of organization IDs for which to disable unified alerting. Only supported if unified alerting is enabled.
  611. disabled_orgs =
  612. # Specify the frequency of polling for admin config changes.
  613. # 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.
  614. admin_config_poll_interval = 60s
  615. # Specify the frequency of polling for Alertmanager config changes.
  616. # 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.
  617. alertmanager_config_poll_interval = 60s
  618. # Listen address/hostname and port to receive unified alerting messages for other Grafana instances. The port is used for both TCP and UDP. It is assumed other Grafana instances are also running on the same port.
  619. ha_listen_address = "0.0.0.0:9094"
  620. # Explicit address/hostname and port to advertise other Grafana instances. The port is used for both TCP and UDP.
  621. ha_advertise_address = ""
  622. # Comma-separated list of initial instances (in a format of host:port) that will form the HA cluster. Configuring this setting will enable High Availability mode for alerting.
  623. ha_peers = ""
  624. # Time to wait for an instance to send a notification via the Alertmanager. In HA, each Grafana instance will
  625. # be assigned a position (e.g. 0, 1). We then multiply this position with the timeout to indicate how long should
  626. # each instance wait before sending the notification to take into account replication lag.
  627. # 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.
  628. ha_peer_timeout = 15s
  629. # The interval between sending gossip messages. By lowering this value (more frequent) gossip messages are propagated
  630. # across cluster more quickly at the expense of increased bandwidth usage.
  631. # 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.
  632. ha_gossip_interval = 200ms
  633. # The interval between gossip full state syncs. Setting this interval lower (more frequent) will increase convergence speeds
  634. # across larger clusters at the expense of increased bandwidth usage.
  635. # 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.
  636. ha_push_pull_interval = 60s
  637. # Enable or disable alerting rule execution. The alerting UI remains visible. This option has a legacy version in the `[alerting]` section that takes precedence.
  638. execute_alerts = true
  639. # Alert evaluation timeout when fetching data from the datasource. This option has a legacy version in the `[alerting]` section that takes precedence.
  640. # The timeout string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
  641. evaluation_timeout = 30s
  642. # Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. This option has a legacy version in the `[alerting]` section that takes precedence.
  643. max_attempts = 3
  644. # Minimum interval to enforce between rule evaluations. Rules will be adjusted if they are less than this value or if they are not multiple of the scheduler interval (10s). Higher values can help with resource management as we'll schedule fewer evaluations over time. This option has a legacy version in the `[alerting]` section that takes precedence.
  645. # 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.
  646. min_interval = 10s
  647. [unified_alerting.screenshots]
  648. # Enable screenshots in notifications. This option requires a remote HTTP image rendering service. Please
  649. # see [rendering] for further configuration options.
  650. capture = false
  651. # The maximum number of screenshots that can be taken at the same time. This option is different from
  652. # concurrent_render_request_limit as max_concurrent_screenshots sets the number of concurrent screenshots
  653. # that can be taken at the same time for all firing alerts where as concurrent_render_request_limit sets
  654. # the total number of concurrent screenshots across all Grafana services.
  655. max_concurrent_screenshots = 5
  656. # Uploads screenshots to the local Grafana server or remote storage such as Azure, S3 and GCS. Please
  657. # see [external_image_storage] for further configuration options. If this option is false then
  658. # screenshots will be persisted to disk for up to temp_data_lifetime.
  659. upload_external_image_storage = false
  660. #################################### Alerting ############################
  661. [alerting]
  662. # Enable the legacy alerting sub-system and interface. If Unified Alerting is already enabled and you try to go back to legacy alerting, all data that is part of Unified Alerting will be deleted. When this configuration section and flag are not defined, the state is defined at runtime. See the documentation for more details.
  663. enabled =
  664. # Makes it possible to turn off alert execution but alerting UI is visible
  665. execute_alerts = true
  666. # Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
  667. error_or_timeout = alerting
  668. # Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
  669. nodata_or_nullvalues = no_data
  670. # Alert notifications can include images, but rendering many images at the same time can overload the server
  671. # This limit will protect the server from render overloading and make sure notifications are sent out quickly
  672. concurrent_render_limit = 5
  673. # Default setting for alert calculation timeout. Default value is 30
  674. evaluation_timeout_seconds = 30
  675. # Default setting for alert notification timeout. Default value is 30
  676. notification_timeout_seconds = 30
  677. # Default setting for max attempts to sending alert notifications. Default value is 3
  678. max_attempts = 3
  679. # Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
  680. min_interval_seconds = 1
  681. # Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
  682. # This setting should be expressed as an duration. Ex 6h (hours), 10d (days), 2w (weeks), 1M (month).
  683. max_annotation_age =
  684. # Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
  685. max_annotations_to_keep =
  686. #################################### Annotations #########################
  687. [annotations]
  688. # Configures the batch size for the annotation clean-up job. This setting is used for dashboard, API, and alert annotations.
  689. cleanupjob_batchsize = 100
  690. [annotations.dashboard]
  691. # Dashboard annotations means that annotations are associated with the dashboard they are created on.
  692. # Configures how long dashboard annotations are stored. Default is 0, which keeps them forever.
  693. # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
  694. max_age =
  695. # Configures max number of dashboard annotations that Grafana stores. Default value is 0, which keeps all dashboard annotations.
  696. max_annotations_to_keep =
  697. [annotations.api]
  698. # API annotations means that the annotations have been created using the API without any
  699. # association with a dashboard.
  700. # Configures how long Grafana stores API annotations. Default is 0, which keeps them forever.
  701. # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
  702. max_age =
  703. # Configures max number of API annotations that Grafana keeps. Default value is 0, which keeps all API annotations.
  704. max_annotations_to_keep =
  705. #################################### Explore #############################
  706. [explore]
  707. # Enable the Explore section
  708. enabled = true
  709. #################################### Help #############################
  710. [help]
  711. # Enable the Help section
  712. enabled = true
  713. #################################### Profile #############################
  714. [profile]
  715. # Enable the Profile section
  716. enabled = true
  717. #################################### Query History #############################
  718. [query_history]
  719. # Enable the Query history
  720. enabled = true
  721. #################################### Internal Grafana Metrics ############
  722. # Metrics available at HTTP URL /metrics and /metrics/plugins/:pluginId
  723. [metrics]
  724. enabled = true
  725. interval_seconds = 10
  726. # Disable total stats (stat_totals_*) metrics to be generated
  727. disable_total_stats = false
  728. #If both are set, basic auth will be required for the metrics endpoints.
  729. basic_auth_username =
  730. basic_auth_password =
  731. # Metrics environment info adds dimensions to the `grafana_environment_info` metric, which
  732. # can expose more information about the Grafana instance.
  733. [metrics.environment_info]
  734. #exampleLabel1 = exampleValue1
  735. #exampleLabel2 = exampleValue2
  736. # Send internal Grafana metrics to graphite
  737. [metrics.graphite]
  738. # Enable by setting the address setting (ex localhost:2003)
  739. address =
  740. prefix = prod.grafana.%(instance_name)s.
  741. #################################### Grafana.com integration ##########################
  742. [grafana_net]
  743. url = https://grafana.com
  744. [grafana_com]
  745. url = https://grafana.com
  746. #################################### Distributed tracing ############
  747. # Opentracing is deprecated use opentelemetry instead
  748. [tracing.jaeger]
  749. # jaeger destination (ex localhost:6831)
  750. address =
  751. # tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
  752. always_included_tag =
  753. # Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
  754. sampler_type = const
  755. # jaeger samplerconfig param
  756. # for "const" sampler, 0 or 1 for always false/true respectively
  757. # for "probabilistic" sampler, a probability between 0 and 1
  758. # for "rateLimiting" sampler, the number of spans per second
  759. # for "remote" sampler, param is the same as for "probabilistic"
  760. # and indicates the initial sampling rate before the actual one
  761. # is received from the mothership
  762. sampler_param = 1
  763. # sampling_server_url is the URL of a sampling manager providing a sampling strategy.
  764. sampling_server_url =
  765. # Whether or not to use Zipkin span propagation (x-b3- HTTP headers).
  766. zipkin_propagation = false
  767. # Setting this to true disables shared RPC spans.
  768. # Not disabling is the most common setting when using Zipkin elsewhere in your infrastructure.
  769. disable_shared_zipkin_spans = false
  770. [tracing.opentelemetry.jaeger]
  771. # jaeger destination (ex http://localhost:14268/api/traces)
  772. address =
  773. # Propagation specifies the text map propagation format: w3c, jaeger
  774. propagation =
  775. # This is a configuration for OTLP exporter with GRPC protocol
  776. [tracing.opentelemetry.otlp]
  777. # otlp destination (ex localhost:4317)
  778. address =
  779. # Propagation specifies the text map propagation format: w3c, jaeger
  780. propagation =
  781. #################################### External Image Storage ##############
  782. [external_image_storage]
  783. # Used for uploading images to public servers so they can be included in slack/email messages.
  784. # You can choose between (s3, webdav, gcs, azure_blob, local)
  785. provider =
  786. [external_image_storage.s3]
  787. endpoint =
  788. path_style_access =
  789. bucket_url =
  790. bucket =
  791. region =
  792. path =
  793. access_key =
  794. secret_key =
  795. [external_image_storage.webdav]
  796. url =
  797. username =
  798. password =
  799. public_url =
  800. [external_image_storage.gcs]
  801. key_file =
  802. bucket =
  803. path =
  804. enable_signed_urls = false
  805. signed_url_expiration =
  806. [external_image_storage.azure_blob]
  807. account_name =
  808. account_key =
  809. container_name =
  810. [external_image_storage.local]
  811. # does not require any configuration
  812. [rendering]
  813. # Options to configure a remote HTTP image rendering service, e.g. using https://github.com/grafana/grafana-image-renderer.
  814. # 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.
  815. server_url =
  816. # 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/.
  817. callback_url =
  818. # Concurrent render request limit affects when the /render HTTP endpoint is used. Rendering many images at the same time can overload the server,
  819. # which this setting can help protect against by only allowing a certain amount of concurrent requests.
  820. concurrent_render_request_limit = 30
  821. [panels]
  822. # here for to support old env variables, can remove after a few months
  823. enable_alpha = false
  824. disable_sanitize_html = false
  825. [plugins]
  826. enable_alpha = false
  827. app_tls_skip_verify_insecure = false
  828. # Enter a comma-separated list of plugin identifiers to identify plugins to load even if they are unsigned. Plugins with modified signatures are never loaded.
  829. allow_loading_unsigned_plugins =
  830. # Enable or disable installing / uninstalling / updating plugins directly from within Grafana.
  831. plugin_admin_enabled = true
  832. plugin_admin_external_manage_enabled = false
  833. plugin_catalog_url = https://grafana.com/grafana/plugins/
  834. # Enter a comma-separated list of plugin identifiers to hide in the plugin catalog.
  835. plugin_catalog_hidden_plugins =
  836. #################################### Grafana Live ##########################################
  837. [live]
  838. # max_connections to Grafana Live WebSocket endpoint per Grafana server instance. See Grafana Live docs
  839. # if you are planning to make it higher than default 100 since this can require some OS and infrastructure
  840. # tuning. 0 disables Live, -1 means unlimited connections.
  841. max_connections = 100
  842. # allowed_origins is a comma-separated list of origins that can establish connection with Grafana Live.
  843. # If not set then origin will be matched over root_url. Supports wildcard symbol "*".
  844. allowed_origins =
  845. # engine defines an HA (high availability) engine to use for Grafana Live. By default no engine used - in
  846. # this case Live features work only on a single Grafana server.
  847. # Available options: "redis".
  848. # Setting ha_engine is an EXPERIMENTAL feature.
  849. ha_engine =
  850. # ha_engine_address sets a connection address for Live HA engine. Depending on engine type address format can differ.
  851. # For now we only support Redis connection address in "host:port" format.
  852. # This option is EXPERIMENTAL.
  853. ha_engine_address = "127.0.0.1:6379"
  854. #################################### Grafana Image Renderer Plugin ##########################
  855. [plugin.grafana-image-renderer]
  856. # Instruct headless browser instance to use a default timezone when not provided by Grafana, e.g. when rendering panel image of alert.
  857. # See ICU’s metaZones.txt (https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt) for a list of supported
  858. # timezone IDs. Fallbacks to TZ environment variable if not set.
  859. rendering_timezone =
  860. # Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
  861. # 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'.
  862. rendering_language =
  863. # Instruct headless browser instance to use a default device scale factor when not provided by Grafana, e.g. when rendering panel image of alert.
  864. # Default is 1. Using a higher value will produce more detailed images (higher DPI), but will require more disk space to store an image.
  865. rendering_viewport_device_scale_factor =
  866. # Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored. Due to
  867. # the security risk it's not recommended to ignore HTTPS errors.
  868. rendering_ignore_https_errors =
  869. # Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is false and will
  870. # only capture and log error messages. When enabled, debug messages are captured and logged as well.
  871. # For the verbose information to be included in the Grafana server log you have to adjust the rendering log level to debug, configure
  872. # [log].filter = rendering:debug.
  873. rendering_verbose_logging =
  874. # Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service.
  875. # Default is false. This can be useful to enable (true) when troubleshooting.
  876. rendering_dumpio =
  877. # Additional arguments to pass to the headless browser instance. Default is --no-sandbox. The list of Chromium flags can be found
  878. # here (https://peter.sh/experiments/chromium-command-line-switches/). Multiple arguments is separated with comma-character.
  879. rendering_args =
  880. # You can configure the plugin to use a different browser binary instead of the pre-packaged version of Chromium.
  881. # Please note that this is not recommended, since you may encounter problems if the installed version of Chrome/Chromium is not
  882. # compatible with the plugin.
  883. rendering_chrome_bin =
  884. # Instruct how headless browser instances are created. Default is 'default' and will create a new browser instance on each request.
  885. # Mode 'clustered' will make sure that only a maximum of browsers/incognito pages can execute concurrently.
  886. # Mode 'reusable' will have one browser instance and will create a new incognito page on each request.
  887. rendering_mode =
  888. # When rendering_mode = clustered, you can instruct how many browsers or incognito pages can execute concurrently. Default is 'browser'
  889. # and will cluster using browser instances.
  890. # Mode 'context' will cluster using incognito pages.
  891. rendering_clustering_mode =
  892. # When rendering_mode = clustered, you can define the maximum number of browser instances/incognito pages that can execute concurrently. Default is '5'.
  893. rendering_clustering_max_concurrency =
  894. # When rendering_mode = clustered, you can specify the duration a rendering request can take before it will time out. Default is `30` seconds.
  895. rendering_clustering_timeout =
  896. # Limit the maximum viewport width, height and device scale factor that can be requested.
  897. rendering_viewport_max_width =
  898. rendering_viewport_max_height =
  899. rendering_viewport_max_device_scale_factor =
  900. # 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
  901. # a port not in use.
  902. grpc_host =
  903. grpc_port =
  904. [enterprise]
  905. license_path =
  906. [feature_toggles]
  907. # there are currently two ways to enable feature toggles in the `grafana.ini`.
  908. # you can either pass an array of feature you want to enable to the `enable` field or
  909. # configure each toggle by setting the name of the toggle to true/false. Toggles set to true/false
  910. # will take precedence over toggles in the `enable` list.
  911. # enable = feature1,feature2
  912. enable =
  913. # The new prometheus visual query builder
  914. promQueryBuilder = true
  915. # The new loki visual query builder
  916. lokiQueryBuilder = true
  917. # Experimental Explore to Dashboard workflow
  918. explore2Dashboard = true
  919. # Experimental Command Palette
  920. commandPalette = true
  921. # Use dynamic labels in CloudWatch datasource
  922. cloudWatchDynamicLabels = true
  923. # feature1 = true
  924. # feature2 = false
  925. [date_formats]
  926. # For information on what formatting patterns that are supported https://momentjs.com/docs/#/displaying/
  927. # Default system date format used in time range picker and other places where full time is displayed
  928. full_date = YYYY-MM-DD HH:mm:ss
  929. # Used by graph and other places where we only show small intervals
  930. interval_second = HH:mm:ss
  931. interval_minute = HH:mm
  932. interval_hour = MM/DD HH:mm
  933. interval_day = MM/DD
  934. interval_month = YYYY-MM
  935. interval_year = YYYY
  936. # Experimental feature
  937. use_browser_locale = false
  938. # 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.
  939. default_timezone = browser
  940. [expressions]
  941. # Enable or disable the expressions functionality.
  942. enabled = true
  943. [geomap]
  944. # Set the JSON configuration for the default basemap
  945. default_baselayer_config =
  946. # Enable or disable loading other base map layers
  947. enable_custom_baselayers = true
  948. #################################### Dashboard previews #####################################
  949. [dashboard_previews.crawler]
  950. # Number of dashboards rendered in parallel. Default is 6.
  951. thread_count =
  952. # Timeout passed down to the Image Renderer plugin. It is used in two separate places within a single rendering request:
  953. # First during the initial navigation to the dashboard and then when waiting for all the panels to load. Default is 20s.
  954. # This setting should be expressed as a duration. Examples: 10s (seconds), 1m (minutes).
  955. rendering_timeout =
  956. # Maximum duration of a single crawl. Default is 1h.
  957. # This setting should be expressed as a duration. Examples: 10s (seconds), 1m (minutes).
  958. max_crawl_duration =
  959. # Minimum interval between two subsequent scheduler runs. Default is 12h.
  960. # This setting should be expressed as a duration. Examples: 10s (seconds), 1m (minutes).
  961. scheduler_interval =
  962. # Enterprise only
  963. [white_labeling]
  964. # Set to your company name to override application title
  965. app_title =
  966. # Set to main title on the login page
  967. login_title =
  968. # Set to login subtitle
  969. login_subtitle =
  970. # Set to complete url to override login logo
  971. login_logo =
  972. # Set to complete css background expression to override login background
  973. # example: login_background = url(http://www.bhmpics.com/wallpapers/starfield-1920x1080.jpg)
  974. login_background =
  975. # Set to complete css background expression to override login box background
  976. login_box_background =
  977. # Set to complete url to override menu logo
  978. menu_logo =
  979. # Set to complete url to override fav icon (icon shown in browser tab)
  980. fav_icon =
  981. # Set to complete url to override apple/ios icon
  982. apple_touch_icon =
  983. # Set to complete url to override loading logo
  984. loading_logo =
  985. # List the links id's to use here, Grafana will look for matching links configurations
  986. # the link id's should be space separated and contain no whitespace
  987. footer_links =
  988. [usage_insights.export]
  989. # Enable the usage insights export feature
  990. enabled = false
  991. # Storage type
  992. storage = loki
  993. [usage_insights.export.storage.loki]
  994. # Set the communication protocol to use with Loki (can be grpc or http)
  995. type = grpc
  996. # Set the address for writing logs to Loki (format must be host:port)
  997. # For Grafana Cloud Loki you need to include your credentials in the URL (user:api-key@host:port)
  998. # Example: url = 13811:eyJrIjoiMTM5@logs-prod-us-central1.grafana.net
  999. url = localhost:9095
  1000. # Defaults to true. If true, it establishes a secure connection to Loki
  1001. tls = true
  1002. [reporting]
  1003. # Enable/disable the reporting feature. If disabled, no reports will be generated
  1004. enabled = true
  1005. # Set timeout for each panel rendering request
  1006. rendering_timeout = 10s
  1007. # Set maximum number of concurrent calls to the rendering service
  1008. concurrent_render_limit = 4
  1009. # Set the scale factor for rendering images. 2 is enough for monitor resolutions
  1010. # 4 would be better for printed material. Setting a higher value affects performance and memory
  1011. image_scale_factor = 2
  1012. # Set the maximum file size in megabytes for the CSV attachments
  1013. max_attachment_size_mb = 10
  1014. # Path to the directory containing fonts
  1015. fonts_path =
  1016. # Name of the TrueType font file with Regular style
  1017. font_regular = DejaVuSansCondensed.ttf
  1018. # Name of the TrueType font file with Bold style
  1019. font_bold = DejaVuSansCondensed-Bold.ttf
  1020. # Name of the TrueType font file with Italic style
  1021. font_italic = DejaVuSansCondensed-Oblique.ttf
  1022. [analytics.summaries]
  1023. # Set interval for writing dashboard usage stats buffer to database
  1024. buffer_write_interval = 30s
  1025. # Set timeout for writing dashboard usage stats buffer to database
  1026. buffer_write_timeout = 3s
  1027. # Set interval for trying to rollup per dashboard usage summary
  1028. # only rolled up at most once per day
  1029. rollup_interval = 4h
  1030. # Set timeout for trying to rollup per dashboard usage summary
  1031. rollup_timeout = 60s
  1032. [analytics.views]
  1033. # Set age for recent active users
  1034. recent_users_age = 10m
  1035. [auditing]
  1036. # Enable the auditing feature
  1037. enabled = false
  1038. # List of enabled loggers
  1039. loggers = file
  1040. # Keep dashboard content in the logs (request or response fields); this can significantly increase the size of your logs.
  1041. log_dashboard_content = false
  1042. [auditing.logs.file]
  1043. # Path to logs folder
  1044. path = data/log
  1045. # Maximum log files to keep
  1046. max_files = 5
  1047. # Max size in megabytes per log file
  1048. max_file_size_mb = 256
  1049. [auditing.logs.loki]
  1050. # Set the communication protocol to use with Loki (can be grpc or http)
  1051. type = grpc
  1052. # Set the address for writing logs to Loki (format must be host:port)
  1053. # For Grafana Cloud Loki you need to include your credentials in the URL (user:api-key@host:port)
  1054. # Example: url = 13811:eyJrIjoiMTM5@logs-prod-us-central1.grafana.net
  1055. url = localhost:9095
  1056. # Defaults to true. If true, it establishes a secure connection to Loki
  1057. tls = true
  1058. #################################### SAML Auth ###########################
  1059. [auth.saml]
  1060. # Defaults to false. If true, the feature is enabled
  1061. enabled = false
  1062. # Enable SAML single logout
  1063. single_logout = false
  1064. # Defaults to true. Allow new Grafana users to be created through SAML login.
  1065. allow_sign_up = true
  1066. # Base64-encoded public X.509 certificate. Used to sign requests to the IdP
  1067. certificate =
  1068. # Path to the public X.509 certificate. Used to sign requests to the IdP
  1069. certificate_path =
  1070. # Base64-encoded private key. Used to decrypt assertions from the IdP
  1071. private_key =
  1072. # Path to the private key. Used to decrypt assertions from the IdP
  1073. private_key_path =
  1074. # Signature algorithm using for signing requests to the IdP. Supported values are rsa-sha1, rsa-sha256, rsa-sha512.
  1075. # If non-empty, authentication requests will be signed. Default is empty (requests not signed).
  1076. signature_algorithm =
  1077. # Base64-encoded IdP SAML metadata XML. Used to verify and obtain binding locations from the IdP
  1078. idp_metadata =
  1079. # Path to the SAML metadata XML. Used to verify and obtain binding locations from the IdP
  1080. idp_metadata_path =
  1081. # URL to fetch SAML IdP metadata. Used to verify and obtain binding locations from the IdP
  1082. idp_metadata_url =
  1083. # Duration, since the IdP issued a response and the SP is allowed to process it. Defaults to 90 seconds
  1084. max_issue_delay = 90s
  1085. # Duration, for how long the SP's metadata should be valid. Defaults to 48 hours
  1086. metadata_valid_duration = 48h
  1087. # Allow IdP-initiated SSO
  1088. allow_idp_initiated = false
  1089. # Relay state for IdP-initiated SSO. Should match relay state configured in IdP
  1090. relay_state =
  1091. # Friendly name or name of the attribute within the SAML assertion to use as the user's name
  1092. assertion_attribute_name = displayName
  1093. # Friendly name or name of the attribute within the SAML assertion to use as the user's login handle
  1094. assertion_attribute_login = mail
  1095. # Friendly name or name of the attribute within the SAML assertion to use as the user's email
  1096. assertion_attribute_email = mail
  1097. # Friendly name or name of the attribute within the SAML assertion to use as the user's groups
  1098. assertion_attribute_groups =
  1099. # Friendly name or name of the attribute within the SAML assertion to use as the user's roles
  1100. assertion_attribute_role =
  1101. # Friendly name or name of the attribute within the SAML assertion to use as the user's organization
  1102. assertion_attribute_org =
  1103. # List of comma- or space-separated organizations. User should be a member of at least one organization to log in.
  1104. allowed_organizations =
  1105. # List of comma- or space-separated Organization:OrgId:Role mappings. Organization can be `*` meaning "All users". Role is optional and can have the following values: `Viewer`, `Editor` or `Admin`.
  1106. org_mapping =
  1107. # List of comma- or space-separated roles which will be mapped into the Editor role
  1108. role_values_editor =
  1109. # List of comma- or space-separated roles which will be mapped into the Admin role
  1110. role_values_admin =
  1111. # List of comma- or space-separated roles which will be mapped into the Grafana Admin (Super Admin) role
  1112. role_values_grafana_admin =
  1113. # Name identifier format to use with the IdP
  1114. name_id_format = urn:oasis:names:tc:SAML:2.0:nameid-format:transient
  1115. [keystore.vault]
  1116. # Location of the Vault server
  1117. url =
  1118. # Vault's namespace if using Vault with multi-tenancy
  1119. namespace =
  1120. # Method for authenticating towards Vault. Vault is inactive if this option is not set
  1121. # Possible values: token
  1122. auth_method =
  1123. # Secret token to connect to Vault when auth_method is token
  1124. token =
  1125. # Time between checking if there are any secrets which needs to be renewed.
  1126. lease_renewal_interval = 5m
  1127. # Time until expiration for tokens which are renewed. Should have a value higher the lease_renewal_interval
  1128. lease_renewal_expires_within = 15m
  1129. # New duration for renewed tokens. Vault may be configured to ignore this value and impose a stricter limit.
  1130. lease_renewal_increment = 1h
  1131. [auth.security]
  1132. # Protected roles defines a set of user roles for which Grafana will not try to map users that have previously logged in
  1133. # with one solution with another. Configuration values are separated by space,
  1134. # possible values are = all editors viewers org_admins server_admins
  1135. protected_roles =
  1136. [security.egress]
  1137. # Allow and deny lists can be used to control what hosts can be accessed based on what a user can configure through the ui.
  1138. # This includes:
  1139. # - datasource requests
  1140. # - alerting channels
  1141. # a list of hostnames or IP adresses separated by spaces for which outgoing requests will be blocked
  1142. host_deny_list =
  1143. # a list of hostnames or IP adresses separated by spaces for which requests will be allowed, all other requests will be blocked
  1144. host_allow_list =
  1145. # a list of headers that will be stripped from outgoing datasource and alerting requests
  1146. header_drop_list =
  1147. # a list of cookies that will be stripped from outgoing datasource requests
  1148. cookie_drop_list =
  1149. [security.encryption]
  1150. # Encryption algorithm used to encrypt secrets stored into the database and cookies,
  1151. # possible values are aes-cfb and aes-gcm.
  1152. algorithm =
  1153. # Example of AWS Key Management Service provider setup
  1154. [security.encryption.awskms.v1]
  1155. # Reference to KMS key - either key ID, key ARN, alias name or ARN.
  1156. # Alias needs to be prefixed with "alias".
  1157. # To specify a KMS key in a different AWS account, use the ARN or alias.
  1158. # Examples of each type:
  1159. # Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
  1160. # Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
  1161. # Alias name: alias/ExampleAlias
  1162. # Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias
  1163. key_id =
  1164. # AWS access key ID
  1165. access_key_id =
  1166. # AWS secret access key
  1167. secret_access_key =
  1168. # AWS region (e.g., eu-north-1)
  1169. region =
  1170. # Example of Azure Key Vault provider setup
  1171. [security.encryption.azurekv.v1]
  1172. # Azure Application directory ID (tenant)
  1173. tenant_id =
  1174. # Azure Application application ID (client)
  1175. client_id =
  1176. # Azure Application client secret
  1177. client_secret =
  1178. # Azure Key Vault key name
  1179. key_id =
  1180. # Azure Key Vault uri
  1181. vault_uri =
  1182. # Example of Google Cloud KMS provider setup
  1183. [security.encryption.googlekms.v1]
  1184. # Google Cloud KMS key ID, see details https://cloud.google.com/kms/docs/getting-resource-ids#getting_the_id_for_a_key_and_version
  1185. key_id =
  1186. # Path to service credentials JSON file, see details https://cloud.google.com/docs/authentication/getting-started
  1187. credentials_file =
  1188. # Example of Hashicorp Vault provider setup
  1189. [security.encryption.hashicorpvault.v1]
  1190. # Token used to authenticate within Vault. We suggest to use periodic tokens: more on token types https://www.vaultproject.io/docs/concepts/tokens#service-tokens
  1191. token =
  1192. # Location of the Vault server
  1193. url = http://localhost:8200
  1194. # Mount point of the transit secret engine
  1195. transit_engine_path = transit
  1196. # Key ring name
  1197. key_ring =
  1198. # Specifies how often to check if a token needs to be renewed, should be less than a token's TTL or period value
  1199. token_renewal_interval = 5m
  1200. # Caching is disabled on all data source by default
  1201. # Visit the data source settings to enable caching
  1202. [caching]
  1203. # The caching backend to use when storing cached queries. Options: redis, memory
  1204. backend = "memory"
  1205. # Setting 'enabled' to true enables query caching for data sources with configured caching.
  1206. # To disable caching for a specific data source, refer to the data source’s configuration page.
  1207. enabled = true
  1208. # The default TTL (time to live) if no other TTL is available.
  1209. ttl = 5m
  1210. # This value limits the size of a single cache value. If a cache value (or query result) is submitted that exceeds this size, then it will be rejected.
  1211. # To disable this limit, set this value to zero.
  1212. max_value_mb = 10
  1213. [caching.encryption]
  1214. # Setting 'enabled' to true enables encryption of the values in the cache.
  1215. enabled = false
  1216. # The key used for the encryption of the values in the cache. If it is not specified and encryption is enabled, the key will be randomly
  1217. # generated on startup. This must be specified to allow the encrypted cache to persist between Grafana restarts. If not specified, the cache
  1218. # will be cleared upon restarts.
  1219. encryption_key = ""
  1220. [caching.memory]
  1221. # When storing cache data, how often a background process will clean up stale data from the in-memory cache
  1222. gc_interval = 1m
  1223. # The maximum size of the in-memory cache in megabytes. Once this size is reached, new cache items will be rejected. For more flexible control over cache eviction policies and size, please use the Redis or Memcached backend
  1224. # To disable the maximum, set this value to 0. WARNING: Disabling the maximum is not recommended in production environments.
  1225. max_size_mb = 25
  1226. [caching.redis]
  1227. # url should be a redis URL
  1228. url = "redis://localhost:6379"
  1229. # prefix redis keys with this string. Example: 'grafana:<key>'. This value can be left empty and no prefix will be set.
  1230. prefix = "grafana"
  1231. # a comma-separated list of Redis cluster members in host:port format
  1232. # if cluster is specified, the value for url is ignored
  1233. cluster =
  1234. [caching.memcached]
  1235. # A space-separated list of memcached servers
  1236. memcached_servers = "localhost:11211"
  1237. [feature_highlights]
  1238. # Enable or disable the feature highlights functionality
  1239. enabled = false