grafana.ini 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  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. #################################### Paths ####################################
  10. [paths]
  11. # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
  12. ;data = /var/lib/grafana
  13. # Temporary files in `data` directory older than given duration will be removed
  14. ;temp_data_lifetime = 24h
  15. # Directory where grafana can store logs
  16. ;logs = /var/log/grafana
  17. # Directory where grafana will automatically scan and look for plugins
  18. ;plugins = /var/lib/grafana/plugins
  19. # folder that contains provisioning config files that grafana will apply on startup and while running.
  20. ;provisioning = conf/provisioning
  21. #################################### Server ####################################
  22. [server]
  23. # Protocol (http, https, h2, socket)
  24. ;protocol = http
  25. # The ip address to bind to, empty will bind to all interfaces
  26. ;http_addr =
  27. # The http port to use
  28. ;http_port = 3000
  29. # The public facing domain name used to access grafana from a browser
  30. ;domain = localhost
  31. # Redirect to correct domain if host header does not match domain
  32. # Prevents DNS rebinding attacks
  33. ;enforce_domain = false
  34. # The full public facing url you use in browser, used for redirects and emails
  35. # If you use reverse proxy and sub path specify full url (with sub path)
  36. ;root_url = %(protocol)s://%(domain)s:%(http_port)s/
  37. # Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
  38. ;serve_from_sub_path = false
  39. # Log web requests
  40. ;router_logging = false
  41. # the path relative working path
  42. ;static_root_path = public
  43. # enable gzip
  44. ;enable_gzip = false
  45. # https certs & key file
  46. ;cert_file =
  47. ;cert_key =
  48. # Unix socket path
  49. ;socket =
  50. #################################### Database ####################################
  51. [database]
  52. # You can configure the database connection by specifying type, host, name, user and password
  53. # as separate properties or as on string using the url properties.
  54. # Either "mysql", "postgres" or "sqlite3", it's your choice
  55. ;type = sqlite3
  56. ;host = 127.0.0.1:3306
  57. ;name = grafana
  58. ;user = root
  59. # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
  60. ;password =
  61. # Use either URL or the previous fields to configure the database
  62. # Example: mysql://user:secret@host:port/database
  63. ;url =
  64. # For "postgres" only, either "disable", "require" or "verify-full"
  65. ;ssl_mode = disable
  66. ;ca_cert_path =
  67. ;client_key_path =
  68. ;client_cert_path =
  69. ;server_cert_name =
  70. # For "sqlite3" only, path relative to data_path setting
  71. ;path = grafana.db
  72. # Max idle conn setting default is 2
  73. ;max_idle_conn = 2
  74. # Max conn setting default is 0 (mean not set)
  75. ;max_open_conn =
  76. # Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
  77. ;conn_max_lifetime = 14400
  78. # Set to true to log the sql calls and execution times.
  79. ;log_queries =
  80. # For "sqlite3" only. cache mode setting used for connecting to the database. (private, shared)
  81. ;cache_mode = private
  82. #################################### Cache server #############################
  83. [remote_cache]
  84. # Either "redis", "memcached" or "database" default is "database"
  85. ;type = database
  86. # cache connectionstring options
  87. # database: will use Grafana primary database.
  88. # 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'.
  89. # memcache: 127.0.0.1:11211
  90. ;connstr =
  91. #################################### Data proxy ###########################
  92. [dataproxy]
  93. # This enables data proxy logging, default is false
  94. ;logging = false
  95. # How long the data proxy should wait before timing out default is 30 (seconds)
  96. ;timeout = 30
  97. # If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false.
  98. ;send_user_header = false
  99. #################################### Analytics ####################################
  100. [analytics]
  101. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  102. # No ip addresses are being tracked, only simple counters to track
  103. # running instances, dashboard and error counts. It is very helpful to us.
  104. # Change this option to false to disable reporting.
  105. ;reporting_enabled = true
  106. # Set to false to disable all checks to https://grafana.net
  107. # for new vesions (grafana itself and plugins), check is used
  108. # in some UI views to notify that grafana or plugin update exists
  109. # This option does not cause any auto updates, nor send any information
  110. # only a GET request to http://grafana.com to get latest versions
  111. ;check_for_updates = true
  112. # Google Analytics universal tracking code, only enabled if you specify an id here
  113. ;google_analytics_ua_id =
  114. # Google Tag Manager ID, only enabled if you specify an id here
  115. ;google_tag_manager_id =
  116. #################################### Security ####################################
  117. [security]
  118. # disable creation of admin user on first start of grafana
  119. ;disable_initial_admin_creation = false
  120. # default admin user, created on startup
  121. ;admin_user = admin
  122. # default admin password, can be changed before first start of grafana, or in profile settings
  123. ;admin_password = admin
  124. # used for signing
  125. ;secret_key = SW2YcwTIb9zpOOhoPsMm
  126. # disable gravatar profile images
  127. ;disable_gravatar = false
  128. # data source proxy whitelist (ip_or_domain:port separated by spaces)
  129. ;data_source_proxy_whitelist =
  130. # disable protection against brute force login attempts
  131. ;disable_brute_force_login_protection = false
  132. # set to true if you host Grafana behind HTTPS. default is false.
  133. ;cookie_secure = false
  134. # set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
  135. ;cookie_samesite = none
  136. # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
  137. allow_embedding = true
  138. # Set to true if you want to enable http strict transport security (HSTS) response header.
  139. # This is only sent when HTTPS is enabled in this configuration.
  140. # HSTS tells browsers that the site should only be accessed using HTTPS.
  141. # The default version will change to true in the next minor release, 6.3.
  142. ;strict_transport_security = false
  143. # Sets how long a browser should cache HSTS. Only applied if strict_transport_security is enabled.
  144. ;strict_transport_security_max_age_seconds = 86400
  145. # Set to true if to enable HSTS preloading option. Only applied if strict_transport_security is enabled.
  146. ;strict_transport_security_preload = false
  147. # Set to true if to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled.
  148. ;strict_transport_security_subdomains = false
  149. # Set to true to enable the X-Content-Type-Options response header.
  150. # The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
  151. # in the Content-Type headers should not be changed and be followed. The default will change to true in the next minor release, 6.3.
  152. ;x_content_type_options = false
  153. # Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
  154. # when they detect reflected cross-site scripting (XSS) attacks. The default will change to true in the next minor release, 6.3.
  155. ;x_xss_protection = false
  156. #################################### Snapshots ###########################
  157. [snapshots]
  158. # snapshot sharing options
  159. ;external_enabled = true
  160. ;external_snapshot_url = https://snapshots-origin.raintank.io
  161. ;external_snapshot_name = Publish to snapshot.raintank.io
  162. # Set to true to enable this Grafana instance act as an external snapshot server and allow unauthenticated requests for
  163. # creating and deleting snapshots.
  164. ;public_mode = false
  165. # remove expired snapshot
  166. ;snapshot_remove_expired = true
  167. #################################### Dashboards History ##################
  168. [dashboards]
  169. # Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
  170. ;versions_to_keep = 20
  171. # 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.
  172. # 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.
  173. ;min_refresh_interval = 5s
  174. #################################### Users ###############################
  175. [users]
  176. # disable user signup / registration
  177. ;allow_sign_up = true
  178. # Allow non admin users to create organizations
  179. ;allow_org_create = true
  180. # Set to true to automatically assign new users to the default organization (id 1)
  181. ;auto_assign_org = true
  182. # Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
  183. ;auto_assign_org_id = 1
  184. # Default role new users will be automatically assigned (if disabled above is set to true)
  185. ;auto_assign_org_role = Viewer
  186. # Require email validation before sign up completes
  187. ;verify_email_enabled = false
  188. # Background text for the user field on the login page
  189. ;login_hint = email or username
  190. ;password_hint = password
  191. # Default UI theme ("dark" or "light")
  192. ;default_theme = dark
  193. # External user management, these options affect the organization users view
  194. ;external_manage_link_url =
  195. ;external_manage_link_name =
  196. ;external_manage_info =
  197. # Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
  198. ;viewers_can_edit = false
  199. # Editors can administrate dashboard, folders and teams they create
  200. ;editors_can_admin = false
  201. [auth]
  202. # Login cookie name
  203. ;login_cookie_name = grafana_session
  204. # The lifetime (days) an authenticated user can be inactive before being required to login at next visit. Default is 7 days,
  205. ;login_maximum_inactive_lifetime_days = 7
  206. # The maximum lifetime (days) an authenticated user can be logged in since login time before being required to login. Default is 30 days.
  207. ;login_maximum_lifetime_days = 30
  208. # How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
  209. ;token_rotation_interval_minutes = 10
  210. # Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
  211. ;disable_login_form = false
  212. # Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false
  213. ;disable_signout_menu = false
  214. # URL to redirect the user to after sign out
  215. ;signout_redirect_url =
  216. # Set to true to attempt login with OAuth automatically, skipping the login screen.
  217. # This setting is ignored if multiple OAuth providers are configured.
  218. ;oauth_auto_login = false
  219. # OAuth state max age cookie duration. Defaults to 60 seconds.
  220. ;oauth_state_cookie_max_age = 60
  221. # limit of api_key seconds to live before expiration
  222. ;api_key_max_seconds_to_live = -1
  223. #################################### Anonymous Auth ######################
  224. [auth.anonymous]
  225. # enable anonymous access
  226. enabled = true
  227. # specify organization name that should be used for unauthenticated users
  228. ;org_name = Main Org.
  229. # specify role for unauthenticated users
  230. ;org_role = Viewer
  231. #################################### Github Auth ##########################
  232. [auth.github]
  233. ;enabled = false
  234. ;allow_sign_up = true
  235. ;client_id = some_id
  236. ;client_secret = some_secret
  237. ;scopes = user:email,read:org
  238. ;auth_url = https://github.com/login/oauth/authorize
  239. ;token_url = https://github.com/login/oauth/access_token
  240. ;api_url = https://api.github.com/user
  241. ;allowed_domains =
  242. ;team_ids =
  243. ;allowed_organizations =
  244. #################################### GitLab Auth #########################
  245. [auth.gitlab]
  246. ;enabled = false
  247. ;allow_sign_up = true
  248. ;client_id = some_id
  249. ;client_secret = some_secret
  250. ;scopes = api
  251. ;auth_url = https://gitlab.com/oauth/authorize
  252. ;token_url = https://gitlab.com/oauth/token
  253. ;api_url = https://gitlab.com/api/v4
  254. ;allowed_domains =
  255. ;allowed_groups =
  256. #################################### Google Auth ##########################
  257. [auth.google]
  258. ;enabled = false
  259. ;allow_sign_up = true
  260. ;client_id = some_client_id
  261. ;client_secret = some_client_secret
  262. ;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  263. ;auth_url = https://accounts.google.com/o/oauth2/auth
  264. ;token_url = https://accounts.google.com/o/oauth2/token
  265. ;api_url = https://www.googleapis.com/oauth2/v1/userinfo
  266. ;allowed_domains =
  267. ;hosted_domain =
  268. #################################### Grafana.com Auth ####################
  269. [auth.grafana_com]
  270. ;enabled = false
  271. ;allow_sign_up = true
  272. ;client_id = some_id
  273. ;client_secret = some_secret
  274. ;scopes = user:email
  275. ;allowed_organizations =
  276. #################################### Azure AD OAuth #######################
  277. [auth.azuread]
  278. ;name = Azure AD
  279. ;enabled = false
  280. ;allow_sign_up = true
  281. ;client_id = some_client_id
  282. ;client_secret = some_client_secret
  283. ;scopes = openid email profile
  284. ;auth_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
  285. ;token_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
  286. ;allowed_domains =
  287. ;allowed_groups =
  288. #################################### Okta OAuth #######################
  289. [auth.okta]
  290. ;name = Okta
  291. ;enabled = false
  292. ;allow_sign_up = true
  293. ;client_id = some_id
  294. ;client_secret = some_secret
  295. ;scopes = openid profile email groups
  296. ;auth_url = https://<tenant-id>.okta.com/oauth2/v1/authorize
  297. ;token_url = https://<tenant-id>.okta.com/oauth2/v1/token
  298. ;api_url = https://<tenant-id>.okta.com/oauth2/v1/userinfo
  299. ;allowed_domains =
  300. ;allowed_groups =
  301. ;role_attribute_path =
  302. #################################### Generic OAuth ##########################
  303. [auth.generic_oauth]
  304. ;enabled = false
  305. ;name = OAuth
  306. ;allow_sign_up = true
  307. ;client_id = some_id
  308. ;client_secret = some_secret
  309. ;scopes = user:email,read:org
  310. ;email_attribute_name = email:primary
  311. ;email_attribute_path =
  312. ;auth_url = https://foo.bar/login/oauth/authorize
  313. ;token_url = https://foo.bar/login/oauth/access_token
  314. ;api_url = https://foo.bar/user
  315. ;allowed_domains =
  316. ;team_ids =
  317. ;allowed_organizations =
  318. ;role_attribute_path =
  319. ;tls_skip_verify_insecure = false
  320. ;tls_client_cert =
  321. ;tls_client_key =
  322. ;tls_client_ca =
  323. #################################### Basic Auth ##########################
  324. [auth.basic]
  325. ;enabled = true
  326. #################################### Auth Proxy ##########################
  327. [auth.proxy]
  328. ;enabled = false
  329. ;header_name = X-WEBAUTH-USER
  330. ;header_property = username
  331. ;auto_sign_up = true
  332. ;sync_ttl = 60
  333. ;whitelist = 192.168.1.1, 192.168.2.1
  334. ;headers = Email:X-User-Email, Name:X-User-Name
  335. # Read the auth proxy docs for details on what the setting below enables
  336. ;enable_login_token = false
  337. #################################### Auth LDAP ##########################
  338. [auth.ldap]
  339. ;enabled = false
  340. ;config_file = /etc/grafana/ldap.toml
  341. ;allow_sign_up = true
  342. # LDAP backround sync (Enterprise only)
  343. # At 1 am every day
  344. ;sync_cron = "0 0 1 * * *"
  345. ;active_sync_enabled = true
  346. #################################### SMTP / Emailing ##########################
  347. [smtp]
  348. ;enabled = false
  349. ;host = localhost:25
  350. ;user =
  351. # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
  352. ;password =
  353. ;cert_file =
  354. ;key_file =
  355. ;skip_verify = false
  356. ;from_address = admin@grafana.localhost
  357. ;from_name = Grafana
  358. # EHLO identity in SMTP dialog (defaults to instance_name)
  359. ;ehlo_identity = dashboard.example.com
  360. [emails]
  361. ;welcome_email_on_sign_up = false
  362. ;templates_pattern = emails/*.html
  363. #################################### Logging ##########################
  364. [log]
  365. # Either "console", "file", "syslog". Default is console and file
  366. # Use space to separate multiple modes, e.g. "console file"
  367. ;mode = console file
  368. # Either "debug", "info", "warn", "error", "critical", default is "info"
  369. ;level = info
  370. # optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
  371. ;filters =
  372. # For "console" mode only
  373. [log.console]
  374. ;level =
  375. # log line format, valid options are text, console and json
  376. ;format = console
  377. # For "file" mode only
  378. [log.file]
  379. ;level =
  380. # log line format, valid options are text, console and json
  381. ;format = text
  382. # This enables automated log rotate(switch of following options), default is true
  383. ;log_rotate = true
  384. # Max line number of single file, default is 1000000
  385. ;max_lines = 1000000
  386. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  387. ;max_size_shift = 28
  388. # Segment log daily, default is true
  389. ;daily_rotate = true
  390. # Expired days of log file(delete after max days), default is 7
  391. ;max_days = 7
  392. [log.syslog]
  393. ;level =
  394. # log line format, valid options are text, console and json
  395. ;format = text
  396. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  397. ;network =
  398. ;address =
  399. # Syslog facility. user, daemon and local0 through local7 are valid.
  400. ;facility =
  401. # Syslog tag. By default, the process' argv[0] is used.
  402. ;tag =
  403. #################################### Usage Quotas ########################
  404. [quota]
  405. ; enabled = false
  406. #### set quotas to -1 to make unlimited. ####
  407. # limit number of users per Org.
  408. ; org_user = 10
  409. # limit number of dashboards per Org.
  410. ; org_dashboard = 100
  411. # limit number of data_sources per Org.
  412. ; org_data_source = 10
  413. # limit number of api_keys per Org.
  414. ; org_api_key = 10
  415. # limit number of orgs a user can create.
  416. ; user_org = 10
  417. # Global limit of users.
  418. ; global_user = -1
  419. # global limit of orgs.
  420. ; global_org = -1
  421. # global limit of dashboards
  422. ; global_dashboard = -1
  423. # global limit of api_keys
  424. ; global_api_key = -1
  425. # global limit on number of logged in users.
  426. ; global_session = -1
  427. #################################### Alerting ############################
  428. [alerting]
  429. # Disable alerting engine & UI features
  430. ;enabled = true
  431. # Makes it possible to turn off alert rule execution but alerting UI is visible
  432. ;execute_alerts = true
  433. # Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
  434. ;error_or_timeout = alerting
  435. # Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
  436. ;nodata_or_nullvalues = no_data
  437. # Alert notifications can include images, but rendering many images at the same time can overload the server
  438. # This limit will protect the server from render overloading and make sure notifications are sent out quickly
  439. ;concurrent_render_limit = 5
  440. # Default setting for alert calculation timeout. Default value is 30
  441. ;evaluation_timeout_seconds = 30
  442. # Default setting for alert notification timeout. Default value is 30
  443. ;notification_timeout_seconds = 30
  444. # Default setting for max attempts to sending alert notifications. Default value is 3
  445. ;max_attempts = 3
  446. # Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
  447. ;min_interval_seconds = 1
  448. #################################### Explore #############################
  449. [explore]
  450. # Enable the Explore section
  451. ;enabled = true
  452. #################################### Internal Grafana Metrics ##########################
  453. # Metrics available at HTTP API Url /metrics
  454. [metrics]
  455. # Disable / Enable internal metrics
  456. ;enabled = true
  457. # Graphite Publish interval
  458. ;interval_seconds = 10
  459. # Disable total stats (stat_totals_*) metrics to be generated
  460. ;disable_total_stats = false
  461. #If both are set, basic auth will be required for the metrics endpoint.
  462. ; basic_auth_username =
  463. ; basic_auth_password =
  464. # Send internal metrics to Graphite
  465. [metrics.graphite]
  466. # Enable by setting the address setting (ex localhost:2003)
  467. ;address =
  468. ;prefix = prod.grafana.%(instance_name)s.
  469. #################################### Grafana.com integration ##########################
  470. # Url used to import dashboards directly from Grafana.com
  471. [grafana_com]
  472. ;url = https://grafana.com
  473. #################################### Distributed tracing ############
  474. [tracing.jaeger]
  475. # Enable by setting the address sending traces to jaeger (ex localhost:6831)
  476. ;address = localhost:6831
  477. # Tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
  478. ;always_included_tag = tag1:value1
  479. # Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
  480. ;sampler_type = const
  481. # jaeger samplerconfig param
  482. # for "const" sampler, 0 or 1 for always false/true respectively
  483. # for "probabilistic" sampler, a probability between 0 and 1
  484. # for "rateLimiting" sampler, the number of spans per second
  485. # for "remote" sampler, param is the same as for "probabilistic"
  486. # and indicates the initial sampling rate before the actual one
  487. # is received from the mothership
  488. ;sampler_param = 1
  489. # Whether or not to use Zipkin propagation (x-b3- HTTP headers).
  490. ;zipkin_propagation = false
  491. # Setting this to true disables shared RPC spans.
  492. # Not disabling is the most common setting when using Zipkin elsewhere in your infrastructure.
  493. ;disable_shared_zipkin_spans = false
  494. #################################### External image storage ##########################
  495. [external_image_storage]
  496. # Used for uploading images to public servers so they can be included in slack/email messages.
  497. # you can choose between (s3, webdav, gcs, azure_blob, local)
  498. ;provider =
  499. [external_image_storage.s3]
  500. ;endpoint =
  501. ;path_style_access =
  502. ;bucket =
  503. ;region =
  504. ;path =
  505. ;access_key =
  506. ;secret_key =
  507. [external_image_storage.webdav]
  508. ;url =
  509. ;public_url =
  510. ;username =
  511. ;password =
  512. [external_image_storage.gcs]
  513. ;key_file =
  514. ;bucket =
  515. ;path =
  516. [external_image_storage.azure_blob]
  517. ;account_name =
  518. ;account_key =
  519. ;container_name =
  520. [external_image_storage.local]
  521. # does not require any configuration
  522. [rendering]
  523. # Options to configure a remote HTTP image rendering service, e.g. using https://github.com/grafana/grafana-image-renderer.
  524. # 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.
  525. ;server_url =
  526. # 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/.
  527. ;callback_url =
  528. # Concurrent render request limit affects when the /render HTTP endpoint is used. Rendering many images at the same time can overload the server,
  529. # which this setting can help protect against by only allowing a certain amount of concurrent requests.
  530. ;concurrent_render_request_limit = 30
  531. [panels]
  532. # If set to true Grafana will allow script tags in text panels. Not recommended as it enable XSS vulnerabilities.
  533. ;disable_sanitize_html = false
  534. [plugins]
  535. ;enable_alpha = false
  536. ;app_tls_skip_verify_insecure = false
  537. # Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature.
  538. ;allow_loading_unsigned_plugins =
  539. #################################### Grafana Image Renderer Plugin ##########################
  540. [plugin.grafana-image-renderer]
  541. # Instruct headless browser instance to use a default timezone when not provided by Grafana, e.g. when rendering panel image of alert.
  542. # See ICU’s metaZones.txt (https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt) for a list of supported
  543. # timezone IDs. Fallbacks to TZ environment variable if not set.
  544. ;rendering_timezone =
  545. # Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
  546. # 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'.
  547. ;rendering_language =
  548. # Instruct headless browser instance to use a default device scale factor when not provided by Grafana, e.g. when rendering panel image of alert.
  549. # Default is 1. Using a higher value will produce more detailed images (higher DPI), but will require more disk space to store an image.
  550. ;rendering_viewport_device_scale_factor =
  551. # Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored. Due to
  552. # the security risk it's not recommended to ignore HTTPS errors.
  553. ;rendering_ignore_https_errors =
  554. # Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is false and will
  555. # only capture and log error messages. When enabled, debug messages are captured and logged as well.
  556. # For the verbose information to be included in the Grafana server log you have to adjust the rendering log level to debug, configure
  557. # [log].filter = rendering:debug.
  558. ;rendering_verbose_logging =
  559. # Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service.
  560. # Default is false. This can be useful to enable (true) when troubleshooting.
  561. ;rendering_dumpio =
  562. # Additional arguments to pass to the headless browser instance. Default is --no-sandbox. The list of Chromium flags can be found
  563. # here (https://peter.sh/experiments/chromium-command-line-switches/). Multiple arguments is separated with comma-character.
  564. ;rendering_args =
  565. # You can configure the plugin to use a different browser binary instead of the pre-packaged version of Chromium.
  566. # Please note that this is not recommended, since you may encounter problems if the installed version of Chrome/Chromium is not
  567. # compatible with the plugin.
  568. ;rendering_chrome_bin =
  569. # Instruct how headless browser instances are created. Default is 'default' and will create a new browser instance on each request.
  570. # Mode 'clustered' will make sure that only a maximum of browsers/incognito pages can execute concurrently.
  571. # Mode 'reusable' will have one browser instance and will create a new incognito page on each request.
  572. ;rendering_mode =
  573. # When rendering_mode = clustered you can instruct how many browsers or incognito pages can execute concurrently. Default is 'browser'
  574. # and will cluster using browser instances.
  575. # Mode 'context' will cluster using incognito pages.
  576. ;rendering_clustering_mode =
  577. # When rendering_mode = clustered you can define maximum number of browser instances/incognito pages that can execute concurrently..
  578. ;rendering_clustering_max_concurrency =
  579. # Limit the maxiumum viewport width, height and device scale factor that can be requested.
  580. ;rendering_viewport_max_width =
  581. ;rendering_viewport_max_height =
  582. ;rendering_viewport_max_device_scale_factor =
  583. # 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
  584. # a port not in use.
  585. ;grpc_host =
  586. ;grpc_port =
  587. [enterprise]
  588. # Path to a valid Grafana Enterprise license.jwt file
  589. ;license_path =
  590. [feature_toggles]
  591. # enable features, separated by spaces
  592. ;enable =