sample.ini 59 KB

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