grafana.ini 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  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 waits before timing out, default is 30 seconds.
  96. # This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set.
  97. ;timeout = 30
  98. # How many seconds the data proxy waits before sending a keepalive probe request.
  99. ;keep_alive_seconds = 30
  100. # How many seconds the data proxy waits for a successful TLS Handshake before timing out.
  101. ;tls_handshake_timeout_seconds = 10
  102. # How many seconds the data proxy will wait for a server's first response headers after
  103. # fully writing the request headers if the request has an "Expect: 100-continue"
  104. # header. A value of 0 will result in the body being sent immediately, without
  105. # waiting for the server to approve.
  106. ;expect_continue_timeout_seconds = 1
  107. # The maximum number of idle connections that Grafana will keep alive.
  108. ;max_idle_connections = 100
  109. # How many seconds the data proxy keeps an idle connection open before timing out.
  110. ;idle_conn_timeout_seconds = 90
  111. # If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false.
  112. ;send_user_header = false
  113. #################################### Analytics ####################################
  114. [analytics]
  115. # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
  116. # No ip addresses are being tracked, only simple counters to track
  117. # running instances, dashboard and error counts. It is very helpful to us.
  118. # Change this option to false to disable reporting.
  119. ;reporting_enabled = true
  120. # Set to false to disable all checks to https://grafana.net
  121. # for new versions (grafana itself and plugins), check is used
  122. # in some UI views to notify that grafana or plugin update exists
  123. # This option does not cause any auto updates, nor send any information
  124. # only a GET request to http://grafana.com to get latest versions
  125. ;check_for_updates = true
  126. # Google Analytics universal tracking code, only enabled if you specify an id here
  127. ;google_analytics_ua_id =
  128. # Google Tag Manager ID, only enabled if you specify an id here
  129. ;google_tag_manager_id =
  130. #################################### Security ####################################
  131. [security]
  132. # disable creation of admin user on first start of grafana
  133. ;disable_initial_admin_creation = false
  134. # default admin user, created on startup
  135. ;admin_user = admin
  136. # default admin password, can be changed before first start of grafana, or in profile settings
  137. ;admin_password = admin
  138. # used for signing
  139. ;secret_key = SW2YcwTIb9zpOOhoPsMm
  140. # disable gravatar profile images
  141. ;disable_gravatar = false
  142. # data source proxy whitelist (ip_or_domain:port separated by spaces)
  143. ;data_source_proxy_whitelist =
  144. # disable protection against brute force login attempts
  145. ;disable_brute_force_login_protection = false
  146. # set to true if you host Grafana behind HTTPS. default is false.
  147. ;cookie_secure = false
  148. # set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
  149. ;cookie_samesite = lax
  150. # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
  151. ;allow_embedding = false
  152. # Set to true if you want to enable http strict transport security (HSTS) response header.
  153. # This is only sent when HTTPS is enabled in this configuration.
  154. # HSTS tells browsers that the site should only be accessed using HTTPS.
  155. ;strict_transport_security = false
  156. # Sets how long a browser should cache HSTS. Only applied if strict_transport_security is enabled.
  157. ;strict_transport_security_max_age_seconds = 86400
  158. # Set to true if to enable HSTS preloading option. Only applied if strict_transport_security is enabled.
  159. ;strict_transport_security_preload = false
  160. # Set to true if to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled.
  161. ;strict_transport_security_subdomains = false
  162. # Set to true to enable the X-Content-Type-Options response header.
  163. # The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
  164. # in the Content-Type headers should not be changed and be followed.
  165. ;x_content_type_options = true
  166. # Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
  167. # when they detect reflected cross-site scripting (XSS) attacks.
  168. ;x_xss_protection = true
  169. #################################### Snapshots ###########################
  170. [snapshots]
  171. # snapshot sharing options
  172. ;external_enabled = true
  173. ;external_snapshot_url = https://snapshots-origin.raintank.io
  174. ;external_snapshot_name = Publish to snapshot.raintank.io
  175. # Set to true to enable this Grafana instance act as an external snapshot server and allow unauthenticated requests for
  176. # creating and deleting snapshots.
  177. ;public_mode = false
  178. # remove expired snapshot
  179. ;snapshot_remove_expired = true
  180. #################################### Dashboards History ##################
  181. [dashboards]
  182. # Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
  183. ;versions_to_keep = 20
  184. # 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.
  185. # 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.
  186. ;min_refresh_interval = 5s
  187. # Path to the default home dashboard. If this value is empty, then Grafana uses StaticRootPath + "dashboards/home.json"
  188. ;default_home_dashboard_path =
  189. #################################### Users ###############################
  190. [users]
  191. # disable user signup / registration
  192. ;allow_sign_up = true
  193. # Allow non admin users to create organizations
  194. ;allow_org_create = true
  195. # Set to true to automatically assign new users to the default organization (id 1)
  196. ;auto_assign_org = true
  197. # Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
  198. ;auto_assign_org_id = 1
  199. # Default role new users will be automatically assigned (if disabled above is set to true)
  200. ;auto_assign_org_role = Viewer
  201. # Require email validation before sign up completes
  202. ;verify_email_enabled = false
  203. # Background text for the user field on the login page
  204. ;login_hint = email or username
  205. ;password_hint = password
  206. # Default UI theme ("dark" or "light")
  207. ;default_theme = dark
  208. # External user management, these options affect the organization users view
  209. ;external_manage_link_url =
  210. ;external_manage_link_name =
  211. ;external_manage_info =
  212. # Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
  213. ;viewers_can_edit = false
  214. # Editors can administrate dashboard, folders and teams they create
  215. ;editors_can_admin = false
  216. # 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).
  217. ;user_invite_max_lifetime_duration = 24h
  218. [auth]
  219. # Login cookie name
  220. ;login_cookie_name = grafana_session
  221. # 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.
  222. ;login_maximum_inactive_lifetime_duration =
  223. # 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).
  224. ;login_maximum_lifetime_duration =
  225. # How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
  226. ;token_rotation_interval_minutes = 10
  227. # Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
  228. ;disable_login_form = false
  229. # Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false
  230. ;disable_signout_menu = false
  231. # URL to redirect the user to after sign out
  232. ;signout_redirect_url =
  233. # Set to true to attempt login with OAuth automatically, skipping the login screen.
  234. # This setting is ignored if multiple OAuth providers are configured.
  235. ;oauth_auto_login = false
  236. # OAuth state max age cookie duration in seconds. Defaults to 600 seconds.
  237. ;oauth_state_cookie_max_age = 600
  238. # limit of api_key seconds to live before expiration
  239. ;api_key_max_seconds_to_live = -1
  240. # Set to true to enable SigV4 authentication option for HTTP-based datasources.
  241. ;sigv4_auth_enabled = false
  242. #################################### Anonymous Auth ######################
  243. [auth.anonymous]
  244. # enable anonymous access
  245. ;enabled = false
  246. # specify organization name that should be used for unauthenticated users
  247. ;org_name = Main Org.
  248. # specify role for unauthenticated users
  249. ;org_role = Viewer
  250. # mask the Grafana version number for unauthenticated users
  251. ;hide_version = false
  252. #################################### GitHub Auth ##########################
  253. [auth.github]
  254. ;enabled = false
  255. ;allow_sign_up = true
  256. ;client_id = some_id
  257. ;client_secret = some_secret
  258. ;scopes = user:email,read:org
  259. ;auth_url = https://github.com/login/oauth/authorize
  260. ;token_url = https://github.com/login/oauth/access_token
  261. ;api_url = https://api.github.com/user
  262. ;allowed_domains =
  263. ;team_ids =
  264. ;allowed_organizations =
  265. #################################### GitLab Auth #########################
  266. [auth.gitlab]
  267. ;enabled = false
  268. ;allow_sign_up = true
  269. ;client_id = some_id
  270. ;client_secret = some_secret
  271. ;scopes = api
  272. ;auth_url = https://gitlab.com/oauth/authorize
  273. ;token_url = https://gitlab.com/oauth/token
  274. ;api_url = https://gitlab.com/api/v4
  275. ;allowed_domains =
  276. ;allowed_groups =
  277. #################################### Google Auth ##########################
  278. [auth.google]
  279. ;enabled = false
  280. ;allow_sign_up = true
  281. ;client_id = some_client_id
  282. ;client_secret = some_client_secret
  283. ;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  284. ;auth_url = https://accounts.google.com/o/oauth2/auth
  285. ;token_url = https://accounts.google.com/o/oauth2/token
  286. ;api_url = https://www.googleapis.com/oauth2/v1/userinfo
  287. ;allowed_domains =
  288. ;hosted_domain =
  289. #################################### Grafana.com Auth ####################
  290. [auth.grafana_com]
  291. ;enabled = false
  292. ;allow_sign_up = true
  293. ;client_id = some_id
  294. ;client_secret = some_secret
  295. ;scopes = user:email
  296. ;allowed_organizations =
  297. #################################### Azure AD OAuth #######################
  298. [auth.azuread]
  299. ;name = Azure AD
  300. ;enabled = false
  301. ;allow_sign_up = true
  302. ;client_id = some_client_id
  303. ;client_secret = some_client_secret
  304. ;scopes = openid email profile
  305. ;auth_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
  306. ;token_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
  307. ;allowed_domains =
  308. ;allowed_groups =
  309. #################################### Okta OAuth #######################
  310. [auth.okta]
  311. ;name = Okta
  312. ;enabled = false
  313. ;allow_sign_up = true
  314. ;client_id = some_id
  315. ;client_secret = some_secret
  316. ;scopes = openid profile email groups
  317. ;auth_url = https://<tenant-id>.okta.com/oauth2/v1/authorize
  318. ;token_url = https://<tenant-id>.okta.com/oauth2/v1/token
  319. ;api_url = https://<tenant-id>.okta.com/oauth2/v1/userinfo
  320. ;allowed_domains =
  321. ;allowed_groups =
  322. ;role_attribute_path =
  323. #################################### Generic OAuth ##########################
  324. [auth.generic_oauth]
  325. ;enabled = false
  326. ;name = OAuth
  327. ;allow_sign_up = true
  328. ;client_id = some_id
  329. ;client_secret = some_secret
  330. ;scopes = user:email,read:org
  331. ;email_attribute_name = email:primary
  332. ;email_attribute_path =
  333. ;login_attribute_path =
  334. ;id_token_attribute_name =
  335. ;auth_url = https://foo.bar/login/oauth/authorize
  336. ;token_url = https://foo.bar/login/oauth/access_token
  337. ;api_url = https://foo.bar/user
  338. ;allowed_domains =
  339. ;team_ids =
  340. ;allowed_organizations =
  341. ;role_attribute_path =
  342. ;tls_skip_verify_insecure = false
  343. ;tls_client_cert =
  344. ;tls_client_key =
  345. ;tls_client_ca =
  346. #################################### Basic Auth ##########################
  347. [auth.basic]
  348. ;enabled = true
  349. #################################### Auth Proxy ##########################
  350. [auth.proxy]
  351. ;enabled = false
  352. ;header_name = X-WEBAUTH-USER
  353. ;header_property = username
  354. ;auto_sign_up = true
  355. ;sync_ttl = 60
  356. ;whitelist = 192.168.1.1, 192.168.2.1
  357. ;headers = Email:X-User-Email, Name:X-User-Name
  358. # Read the auth proxy docs for details on what the setting below enables
  359. ;enable_login_token = false
  360. #################################### Auth LDAP ##########################
  361. [auth.ldap]
  362. ;enabled = false
  363. ;config_file = /etc/grafana/ldap.toml
  364. ;allow_sign_up = true
  365. # LDAP backround sync (Enterprise only)
  366. # At 1 am every day
  367. ;sync_cron = "0 0 1 * * *"
  368. ;active_sync_enabled = true
  369. #################################### SMTP / Emailing ##########################
  370. [smtp]
  371. ;enabled = false
  372. ;host = localhost:25
  373. ;user =
  374. # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
  375. ;password =
  376. ;cert_file =
  377. ;key_file =
  378. ;skip_verify = false
  379. ;from_address = admin@grafana.localhost
  380. ;from_name = Grafana
  381. # EHLO identity in SMTP dialog (defaults to instance_name)
  382. ;ehlo_identity = dashboard.example.com
  383. # SMTP startTLS policy (defaults to 'OpportunisticStartTLS')
  384. ;startTLS_policy = NoStartTLS
  385. [emails]
  386. ;welcome_email_on_sign_up = false
  387. ;templates_pattern = emails/*.html
  388. #################################### Logging ##########################
  389. [log]
  390. # Either "console", "file", "syslog". Default is console and file
  391. # Use space to separate multiple modes, e.g. "console file"
  392. ;mode = console file
  393. # Either "debug", "info", "warn", "error", "critical", default is "info"
  394. ;level = info
  395. # optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
  396. ;filters =
  397. # For "console" mode only
  398. [log.console]
  399. ;level =
  400. # log line format, valid options are text, console and json
  401. ;format = console
  402. # For "file" mode only
  403. [log.file]
  404. ;level =
  405. # log line format, valid options are text, console and json
  406. ;format = text
  407. # This enables automated log rotate(switch of following options), default is true
  408. ;log_rotate = true
  409. # Max line number of single file, default is 1000000
  410. ;max_lines = 1000000
  411. # Max size shift of single file, default is 28 means 1 << 28, 256MB
  412. ;max_size_shift = 28
  413. # Segment log daily, default is true
  414. ;daily_rotate = true
  415. # Expired days of log file(delete after max days), default is 7
  416. ;max_days = 7
  417. [log.syslog]
  418. ;level =
  419. # log line format, valid options are text, console and json
  420. ;format = text
  421. # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
  422. ;network =
  423. ;address =
  424. # Syslog facility. user, daemon and local0 through local7 are valid.
  425. ;facility =
  426. # Syslog tag. By default, the process' argv[0] is used.
  427. ;tag =
  428. #################################### Usage Quotas ########################
  429. [quota]
  430. ; enabled = false
  431. #### set quotas to -1 to make unlimited. ####
  432. # limit number of users per Org.
  433. ; org_user = 10
  434. # limit number of dashboards per Org.
  435. ; org_dashboard = 100
  436. # limit number of data_sources per Org.
  437. ; org_data_source = 10
  438. # limit number of api_keys per Org.
  439. ; org_api_key = 10
  440. # limit number of orgs a user can create.
  441. ; user_org = 10
  442. # Global limit of users.
  443. ; global_user = -1
  444. # global limit of orgs.
  445. ; global_org = -1
  446. # global limit of dashboards
  447. ; global_dashboard = -1
  448. # global limit of api_keys
  449. ; global_api_key = -1
  450. # global limit on number of logged in users.
  451. ; global_session = -1
  452. #################################### Alerting ############################
  453. [alerting]
  454. # Disable alerting engine & UI features
  455. ;enabled = true
  456. # Makes it possible to turn off alert rule execution but alerting UI is visible
  457. ;execute_alerts = true
  458. # Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
  459. ;error_or_timeout = alerting
  460. # Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
  461. ;nodata_or_nullvalues = no_data
  462. # Alert notifications can include images, but rendering many images at the same time can overload the server
  463. # This limit will protect the server from render overloading and make sure notifications are sent out quickly
  464. ;concurrent_render_limit = 5
  465. # Default setting for alert calculation timeout. Default value is 30
  466. ;evaluation_timeout_seconds = 30
  467. # Default setting for alert notification timeout. Default value is 30
  468. ;notification_timeout_seconds = 30
  469. # Default setting for max attempts to sending alert notifications. Default value is 3
  470. ;max_attempts = 3
  471. # Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
  472. ;min_interval_seconds = 1
  473. # Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
  474. # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
  475. ;max_annotation_age =
  476. # Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
  477. ;max_annotations_to_keep =
  478. #################################### Annotations #########################
  479. [annotations.dashboard]
  480. # Dashboard annotations means that annotations are associated with the dashboard they are created on.
  481. # Configures how long dashboard annotations are stored. Default is 0, which keeps them forever.
  482. # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
  483. ;max_age =
  484. # Configures max number of dashboard annotations that Grafana stores. Default value is 0, which keeps all dashboard annotations.
  485. ;max_annotations_to_keep =
  486. [annotations.api]
  487. # API annotations means that the annotations have been created using the API without any
  488. # association with a dashboard.
  489. # Configures how long Grafana stores API annotations. Default is 0, which keeps them forever.
  490. # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
  491. ;max_age =
  492. # Configures max number of API annotations that Grafana keeps. Default value is 0, which keeps all API annotations.
  493. ;max_annotations_to_keep =
  494. #################################### Explore #############################
  495. [explore]
  496. # Enable the Explore section
  497. ;enabled = true
  498. #################################### Internal Grafana Metrics ##########################
  499. # Metrics available at HTTP API Url /metrics
  500. [metrics]
  501. # Disable / Enable internal metrics
  502. ;enabled = true
  503. # Graphite Publish interval
  504. ;interval_seconds = 10
  505. # Disable total stats (stat_totals_*) metrics to be generated
  506. ;disable_total_stats = false
  507. #If both are set, basic auth will be required for the metrics endpoint.
  508. ; basic_auth_username =
  509. ; basic_auth_password =
  510. # Metrics environment info adds dimensions to the `grafana_environment_info` metric, which
  511. # can expose more information about the Grafana instance.
  512. [metrics.environment_info]
  513. #exampleLabel1 = exampleValue1
  514. #exampleLabel2 = exampleValue2
  515. # Send internal metrics to Graphite
  516. [metrics.graphite]
  517. # Enable by setting the address setting (ex localhost:2003)
  518. ;address =
  519. ;prefix = prod.grafana.%(instance_name)s.
  520. #################################### Grafana.com integration ##########################
  521. # Url used to import dashboards directly from Grafana.com
  522. [grafana_com]
  523. ;url = https://grafana.com
  524. #################################### Distributed tracing ############
  525. [tracing.jaeger]
  526. # Enable by setting the address sending traces to jaeger (ex localhost:6831)
  527. ;address = localhost:6831
  528. # Tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
  529. ;always_included_tag = tag1:value1
  530. # Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
  531. ;sampler_type = const
  532. # jaeger samplerconfig param
  533. # for "const" sampler, 0 or 1 for always false/true respectively
  534. # for "probabilistic" sampler, a probability between 0 and 1
  535. # for "rateLimiting" sampler, the number of spans per second
  536. # for "remote" sampler, param is the same as for "probabilistic"
  537. # and indicates the initial sampling rate before the actual one
  538. # is received from the mothership
  539. ;sampler_param = 1
  540. # sampling_server_url is the URL of a sampling manager providing a sampling strategy.
  541. ;sampling_server_url =
  542. # Whether or not to use Zipkin propagation (x-b3- HTTP headers).
  543. ;zipkin_propagation = false
  544. # Setting this to true disables shared RPC spans.
  545. # Not disabling is the most common setting when using Zipkin elsewhere in your infrastructure.
  546. ;disable_shared_zipkin_spans = false
  547. #################################### External image storage ##########################
  548. [external_image_storage]
  549. # Used for uploading images to public servers so they can be included in slack/email messages.
  550. # you can choose between (s3, webdav, gcs, azure_blob, local)
  551. ;provider =
  552. [external_image_storage.s3]
  553. ;endpoint =
  554. ;path_style_access =
  555. ;bucket =
  556. ;region =
  557. ;path =
  558. ;access_key =
  559. ;secret_key =
  560. [external_image_storage.webdav]
  561. ;url =
  562. ;public_url =
  563. ;username =
  564. ;password =
  565. [external_image_storage.gcs]
  566. ;key_file =
  567. ;bucket =
  568. ;path =
  569. [external_image_storage.azure_blob]
  570. ;account_name =
  571. ;account_key =
  572. ;container_name =
  573. [external_image_storage.local]
  574. # does not require any configuration
  575. [rendering]
  576. # Options to configure a remote HTTP image rendering service, e.g. using https://github.com/grafana/grafana-image-renderer.
  577. # 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.
  578. ;server_url =
  579. # 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/.
  580. ;callback_url =
  581. # Concurrent render request limit affects when the /render HTTP endpoint is used. Rendering many images at the same time can overload the server,
  582. # which this setting can help protect against by only allowing a certain amount of concurrent requests.
  583. ;concurrent_render_request_limit = 30
  584. [panels]
  585. # If set to true Grafana will allow script tags in text panels. Not recommended as it enable XSS vulnerabilities.
  586. ;disable_sanitize_html = false
  587. [plugins]
  588. ;enable_alpha = false
  589. ;app_tls_skip_verify_insecure = false
  590. # Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature.
  591. ;allow_loading_unsigned_plugins =
  592. ;marketplace_url = https://grafana.com/grafana/plugins/
  593. #################################### Grafana Image Renderer Plugin ##########################
  594. [plugin.grafana-image-renderer]
  595. # Instruct headless browser instance to use a default timezone when not provided by Grafana, e.g. when rendering panel image of alert.
  596. # See ICU’s metaZones.txt (https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt) for a list of supported
  597. # timezone IDs. Fallbacks to TZ environment variable if not set.
  598. ;rendering_timezone =
  599. # Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
  600. # 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'.
  601. ;rendering_language =
  602. # Instruct headless browser instance to use a default device scale factor when not provided by Grafana, e.g. when rendering panel image of alert.
  603. # Default is 1. Using a higher value will produce more detailed images (higher DPI), but will require more disk space to store an image.
  604. ;rendering_viewport_device_scale_factor =
  605. # Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored. Due to
  606. # the security risk it's not recommended to ignore HTTPS errors.
  607. ;rendering_ignore_https_errors =
  608. # Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is false and will
  609. # only capture and log error messages. When enabled, debug messages are captured and logged as well.
  610. # For the verbose information to be included in the Grafana server log you have to adjust the rendering log level to debug, configure
  611. # [log].filter = rendering:debug.
  612. ;rendering_verbose_logging =
  613. # Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service.
  614. # Default is false. This can be useful to enable (true) when troubleshooting.
  615. ;rendering_dumpio =
  616. # Additional arguments to pass to the headless browser instance. Default is --no-sandbox. The list of Chromium flags can be found
  617. # here (https://peter.sh/experiments/chromium-command-line-switches/). Multiple arguments is separated with comma-character.
  618. ;rendering_args =
  619. # You can configure the plugin to use a different browser binary instead of the pre-packaged version of Chromium.
  620. # Please note that this is not recommended, since you may encounter problems if the installed version of Chrome/Chromium is not
  621. # compatible with the plugin.
  622. ;rendering_chrome_bin =
  623. # Instruct how headless browser instances are created. Default is 'default' and will create a new browser instance on each request.
  624. # Mode 'clustered' will make sure that only a maximum of browsers/incognito pages can execute concurrently.
  625. # Mode 'reusable' will have one browser instance and will create a new incognito page on each request.
  626. ;rendering_mode =
  627. # When rendering_mode = clustered you can instruct how many browsers or incognito pages can execute concurrently. Default is 'browser'
  628. # and will cluster using browser instances.
  629. # Mode 'context' will cluster using incognito pages.
  630. ;rendering_clustering_mode =
  631. # When rendering_mode = clustered you can define maximum number of browser instances/incognito pages that can execute concurrently..
  632. ;rendering_clustering_max_concurrency =
  633. # Limit the maximum viewport width, height and device scale factor that can be requested.
  634. ;rendering_viewport_max_width =
  635. ;rendering_viewport_max_height =
  636. ;rendering_viewport_max_device_scale_factor =
  637. # 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
  638. # a port not in use.
  639. ;grpc_host =
  640. ;grpc_port =
  641. [enterprise]
  642. # Path to a valid Grafana Enterprise license.jwt file
  643. ;license_path =
  644. [feature_toggles]
  645. # enable features, separated by spaces
  646. ;enable =
  647. [date_formats]
  648. # For information on what formatting patterns that are supported https://momentjs.com/docs/#/displaying/
  649. # Default system date format used in time range picker and other places where full time is displayed
  650. ;full_date = YYYY-MM-DD HH:mm:ss
  651. # Used by graph and other places where we only show small intervals
  652. ;interval_second = HH:mm:ss
  653. ;interval_minute = HH:mm
  654. ;interval_hour = MM/DD HH:mm
  655. ;interval_day = MM/DD
  656. ;interval_month = YYYY-MM
  657. ;interval_year = YYYY
  658. # Experimental feature
  659. ;use_browser_locale = false
  660. # 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.
  661. ;default_timezone = browser