Debian Codegraph @

docker/mqtt-composer/grafana.ini

raw symbols SCIP
1 ##################### Grafana Configuration Example #####################
2 #
3 # Everything has defaults so you only need to uncomment things you want to
4 # change
5
6 # possible values : production, development
7 ;app_mode = production
8
9 # instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
10 ;instance_name = ${HOSTNAME}
11
12 # force migration will run migrations that might cause dataloss
13 # Deprecated, use clean_upgrade option in [unified_alerting.upgrade] instead.
14 ;force_migration = false
15
16 #################################### Paths ####################################
17 [paths]
18 # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
19 ;data = /var/lib/grafana
20
21 # Temporary files in `data` directory older than given duration will be removed
22 ;temp_data_lifetime = 24h
23
24 # Directory where grafana can store logs
25 ;logs = /var/log/grafana
26
27 # Directory where grafana will automatically scan and look for plugins
28 ;plugins = /var/lib/grafana/plugins
29
30 # folder that contains provisioning config files that grafana will apply on startup and while running.
31 ;provisioning = conf/provisioning
32
33 #################################### Server ####################################
34 [server]
35 # Protocol (http, https, h2, socket)
36 ;protocol = http
37
38 # This is the minimum TLS version allowed. By default, this value is empty. Accepted values are: TLS1.2, TLS1.3. If nothing is set TLS1.2 would be taken
39 ;min_tls_version = ""
40
41 # The ip address to bind to, empty will bind to all interfaces
42 ;http_addr =
43
44 # The http port to use
45 ;http_port = 3000
46
47 # The public facing domain name used to access grafana from a browser
48 ;domain = localhost
49
50 # Redirect to correct domain if host header does not match domain
51 # Prevents DNS rebinding attacks
52 ;enforce_domain = false
53
54 # The full public facing url you use in browser, used for redirects and emails
55 # If you use reverse proxy and sub path specify full url (with sub path)
56 ;root_url = %(protocol)s://%(domain)s:%(http_port)s/
57
58 # Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
59 ;serve_from_sub_path = false
60
61 # Log web requests
62 ;router_logging = false
63
64 # the path relative working path
65 ;static_root_path = public
66
67 # enable gzip
68 ;enable_gzip = false
69
70 # https certs & key file
71 ;cert_file =
72 ;cert_key =
73
74 # Unix socket gid
75 # Changing the gid of a file without privileges requires that the target group is in the group of the process and that the process is the file owner
76 # It is recommended to set the gid as http server user gid
77 # Not set when the value is -1
78 ;socket_gid =
79
80 # Unix socket mode
81 ;socket_mode =
82
83 # Unix socket path
84 ;socket =
85
86 # CDN Url
87 ;cdn_url =
88
89 # Sets the maximum time using a duration format (5s/5m/5ms) before timing out read of an incoming request and closing idle connections.
90 # `0` means there is no timeout for reading the request.
91 ;read_timeout = 0
92
93 # This setting enables you to specify additional headers that the server adds to HTTP(S) responses.
94 [server.custom_response_headers]
95 #exampleHeader1 = exampleValue1
96 #exampleHeader2 = exampleValue2
97
98 #################################### GRPC Server #########################
99 ;[grpc_server]
100 ;network = "tcp"
101 ;address = "127.0.0.1:10000"
102 ;use_tls = false
103 ;cert_file =
104 ;key_file =
105
106 #################################### Database ####################################
107 [database]
108 # You can configure the database connection by specifying type, host, name, user and password
109 # as separate properties or as on string using the url properties.
110
111 # Either "mysql", "postgres" or "sqlite3", it's your choice
112 ;type = sqlite3
113 ;host = 127.0.0.1:3306
114 ;name = grafana
115 ;user = root
116 # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
117 ;password =
118
119 # Use either URL or the previous fields to configure the database
120 # Example: mysql://user:secret@host:port/database
121 ;url =
122
123 # For "postgres", use either "disable", "require" or "verify-full"
124 # For "mysql", use either "true", "false", or "skip-verify".
125 ;ssl_mode = disable
126
127 # Database drivers may support different transaction isolation levels.
128 # Currently, only "mysql" driver supports isolation levels.
129 # If the value is empty - driver's default isolation level is applied.
130 # For "mysql" use "READ-UNCOMMITTED", "READ-COMMITTED", "REPEATABLE-READ" or "SERIALIZABLE".
131 ;isolation_level =
132
133 ;ca_cert_path =
134 ;client_key_path =
135 ;client_cert_path =
136 ;server_cert_name =
137
138 # For "sqlite3" only, path relative to data_path setting
139 ;path = grafana.db
140
141 # Max idle conn setting default is 2
142 ;max_idle_conn = 2
143
144 # Max conn setting default is 0 (mean not set)
145 ;max_open_conn =
146
147 # Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
148 ;conn_max_lifetime = 14400
149
150 # Set to true to log the sql calls and execution times.
151 ;log_queries =
152
153 # For "sqlite3" only. cache mode setting used for connecting to the database. (private, shared)
154 ;cache_mode = private
155
156 # For "sqlite3" only. Enable/disable Write-Ahead Logging, https://sqlite.org/wal.html. Default is false.
157 ;wal = false
158
159 # For "mysql" only if migrationLocking feature toggle is set. How many seconds to wait before failing to lock the database for the migrations, default is 0.
160 ;locking_attempt_timeout_sec = 0
161
162 # For "sqlite" only. How many times to retry query in case of database is locked failures. Default is 0 (disabled).
163 ;query_retries = 0
164
165 # For "sqlite" only. How many times to retry transaction in case of database is locked failures. Default is 5.
166 ;transaction_retries = 5
167
168 # Set to true to add metrics and tracing for database queries.
169 ;instrument_queries = false
170
171 ################################### Data sources #########################
172 [datasources]
173 # 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.
174 ;datasource_limit = 5000
175
176 #################################### Cache server #############################
177 [remote_cache]
178 # Either "redis", "memcached" or "database" default is "database"
179 ;type = database
180
181 # cache connectionstring options
182 # database: will use Grafana primary database.
183 # 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'.
184 # memcache: 127.0.0.1:11211
185 ;connstr =
186
187 # prefix prepended to all the keys in the remote cache
188 ; prefix =
189
190 # This enables encryption of values stored in the remote cache
191 ;encryption =
192
193 #################################### Data proxy ###########################
194 [dataproxy]
195
196 # This enables data proxy logging, default is false
197 ;logging = false
198
199 # How long the data proxy waits to read the headers of the response before timing out, default is 30 seconds.
200 # This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set.
201 ;timeout = 30
202
203 # How long the data proxy waits to establish a TCP connection before timing out, default is 10 seconds.
204 ;dialTimeout = 10
205
206 # How many seconds the data proxy waits before sending a keepalive probe request.
207 ;keep_alive_seconds = 30
208
209 # How many seconds the data proxy waits for a successful TLS Handshake before timing out.
210 ;tls_handshake_timeout_seconds = 10
211
212 # How many seconds the data proxy will wait for a server's first response headers after
213 # fully writing the request headers if the request has an "Expect: 100-continue"
214 # header. A value of 0 will result in the body being sent immediately, without
215 # waiting for the server to approve.
216 ;expect_continue_timeout_seconds = 1
217
218 # Optionally limits the total number of connections per host, including connections in the dialing,
219 # active, and idle states. On limit violation, dials will block.
220 # A value of zero (0) means no limit.
221 ;max_conns_per_host = 0
222
223 # The maximum number of idle connections that Grafana will keep alive.
224 ;max_idle_connections = 100
225
226 # How many seconds the data proxy keeps an idle connection open before timing out.
227 ;idle_conn_timeout_seconds = 90
228
229 # If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false.
230 ;send_user_header = false
231
232 # Limit the amount of bytes that will be read/accepted from responses of outgoing HTTP requests.
233 ;response_limit = 0
234
235 # Limits the number of rows that Grafana will process from SQL data sources.
236 ;row_limit = 1000000
237
238 # Sets a custom value for the `User-Agent` header for outgoing data proxy requests. If empty, the default value is `Grafana/<BuildVersion>` (for example `Grafana/9.0.0`).
239 ;user_agent =
240
241 #################################### Analytics ####################################
242 [analytics]
243 # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
244 # No ip addresses are being tracked, only simple counters to track
245 # running instances, dashboard and error counts. It is very helpful to us.
246 # Change this option to false to disable reporting.
247 ;reporting_enabled = true
248
249 # The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs
250 ;reporting_distributor = grafana-labs
251
252 # Set to false to disable all checks to https://grafana.com
253 # for new versions of grafana. The check is used
254 # in some UI views to notify that a grafana update exists.
255 # This option does not cause any auto updates, nor send any information
256 # only a GET request to https://raw.githubusercontent.com/grafana/grafana/main/latest.json to get the latest version.
257 ;check_for_updates = true
258
259 # Set to false to disable all checks to https://grafana.com
260 # for new versions of plugins. The check is used
261 # in some UI views to notify that a plugin update exists.
262 # This option does not cause any auto updates, nor send any information
263 # only a GET request to https://grafana.com to get the latest versions.
264 ;check_for_plugin_updates = true
265
266 # Google Analytics universal tracking code, only enabled if you specify an id here
267 ;google_analytics_ua_id =
268
269 # Google Analytics 4 tracking code, only enabled if you specify an id here
270 ;google_analytics_4_id =
271
272 # When Google Analytics 4 Enhanced event measurement is enabled, we will try to avoid sending duplicate events and let Google Analytics 4 detect navigation changes, etc.
273 ;google_analytics_4_send_manual_page_views = false
274
275 # Google Tag Manager ID, only enabled if you specify an id here
276 ;google_tag_manager_id =
277
278 # Rudderstack write key, enabled only if rudderstack_data_plane_url is also set
279 ;rudderstack_write_key =
280
281 # Rudderstack data plane url, enabled only if rudderstack_write_key is also set
282 ;rudderstack_data_plane_url =
283
284 # Rudderstack SDK url, optional, only valid if rudderstack_write_key and rudderstack_data_plane_url is also set
285 ;rudderstack_sdk_url =
286
287 # Rudderstack Config url, optional, used by Rudderstack SDK to fetch source config
288 ;rudderstack_config_url =
289
290 # Rudderstack Integrations URL, optional. Only valid if you pass the SDK version 1.1 or higher
291 ;rudderstack_integrations_url =
292
293 # Intercom secret, optional, used to hash user_id before passing to Intercom via Rudderstack
294 ;intercom_secret =
295
296 # Controls if the UI contains any links to user feedback forms
297 ;feedback_links_enabled = true
298
299 #################################### Security ####################################
300 [security]
301 # disable creation of admin user on first start of grafana
302 ;disable_initial_admin_creation = false
303
304 # default admin user, created on startup
305 ;admin_user = admin
306
307 # default admin password, can be changed before first start of grafana, or in profile settings
308 ;admin_password = admin
309
310 # default admin email, created on startup
311 ;admin_email = admin@localhost
312
313 # used for signing
314 ;secret_key = SW2YcwTIb9zpOOhoPsMm
315
316 # current key provider used for envelope encryption, default to static value specified by secret_key
317 ;encryption_provider = secretKey.v1
318
319 # list of configured key providers, space separated (Enterprise only): e.g., awskms.v1 azurekv.v1
320 ;available_encryption_providers =
321
322 # disable gravatar profile images
323 ;disable_gravatar = false
324
325 # data source proxy whitelist (ip_or_domain:port separated by spaces)
326 ;data_source_proxy_whitelist =
327
328 # disable protection against brute force login attempts
329 ;disable_brute_force_login_protection = false
330
331 # set to true if you host Grafana behind HTTPS. default is false.
332 ;cookie_secure = false
333
334 # set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
335 ;cookie_samesite = lax
336
337 # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
338 ;allow_embedding = false
339
340 # Set to true if you want to enable http strict transport security (HSTS) response header.
341 # HSTS tells browsers that the site should only be accessed using HTTPS.
342 ;strict_transport_security = false
343
344 # Sets how long a browser should cache HSTS. Only applied if strict_transport_security is enabled.
345 ;strict_transport_security_max_age_seconds = 86400
346
347 # Set to true if to enable HSTS preloading option. Only applied if strict_transport_security is enabled.
348 ;strict_transport_security_preload = false
349
350 # Set to true if to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled.
351 ;strict_transport_security_subdomains = false
352
353 # Set to true to enable the X-Content-Type-Options response header.
354 # The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised
355 # in the Content-Type headers should not be changed and be followed.
356 ;x_content_type_options = true
357
358 # Set to true to enable the X-XSS-Protection header, which tells browsers to stop pages from loading
359 # when they detect reflected cross-site scripting (XSS) attacks.
360 ;x_xss_protection = true
361
362 # Enable adding the Content-Security-Policy header to your requests.
363 # CSP allows to control resources the user agent is allowed to load and helps prevent XSS attacks.
364 ;content_security_policy = false
365
366 # Set Content Security Policy template used when adding the Content-Security-Policy header to your requests.
367 # $NONCE in the template includes a random nonce.
368 # $ROOT_PATH is server.root_url without the protocol.
369 ;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';"""
370
371 # Enable adding the Content-Security-Policy-Report-Only header to your requests.
372 # Allows you to monitor the effects of a policy without enforcing it.
373 ;content_security_policy_report_only = false
374
375 # Set Content Security Policy Report Only template used when adding the Content-Security-Policy-Report-Only header to your requests.
376 # $NONCE in the template includes a random nonce.
377 # $ROOT_PATH is server.root_url without the protocol.
378 ;content_security_policy_report_only_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';"""
379 # Controls if old angular plugins are supported or not. This will be disabled by default in future release
380 ;angular_support_enabled = true
381
382 # List of additional allowed URLs to pass by the CSRF check, separated by spaces. Suggested when authentication comes from an IdP.
383 ;csrf_trusted_origins = example.com
384
385 # List of allowed headers to be set by the user, separated by spaces. Suggested to use for if authentication lives behind reverse proxies.
386 ;csrf_additional_headers =
387
388 # The CSRF check will be executed even if the request has no login cookie.
389 ;csrf_always_check = false
390
391 # Comma-separated list of plugins ids that won't be loaded inside the frontend sandbox
392 ;disable_frontend_sandbox_for_plugins =
393
394 [security.encryption]
395 # Defines the time-to-live (TTL) for decrypted data encryption keys stored in memory (cache).
396 # Please note that small values may cause performance issues due to a high frequency decryption operations.
397 ;data_keys_cache_ttl = 15m
398
399 # Defines the frequency of data encryption keys cache cleanup interval.
400 # On every interval, decrypted data encryption keys that reached the TTL are removed from the cache.
401 ;data_keys_cache_cleanup_interval = 1m
402
403 #################################### Snapshots ###########################
404 [snapshots]
405 # set to false to remove snapshot functionality
406 ;enabled = true
407
408 # snapshot sharing options
409 ;external_enabled = true
410 ;external_snapshot_url = https://snapshots.raintank.io
411 ;external_snapshot_name = Publish to snapshots.raintank.io
412
413 # Set to true to enable this Grafana instance act as an external snapshot server and allow unauthenticated requests for
414 # creating and deleting snapshots.
415 ;public_mode = false
416
417 # remove expired snapshot
418 ;snapshot_remove_expired = true
419
420 #################################### Dashboards History ##################
421 [dashboards]
422 # Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
423 ;versions_to_keep = 20
424
425 # 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.
426 # 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.
427 min_refresh_interval = 1s
428
429 # Path to the default home dashboard. If this value is empty, then Grafana uses StaticRootPath + "dashboards/home.json"
430 ;default_home_dashboard_path =
431
432 #################################### Users ###############################
433 [users]
434 # disable user signup / registration
435 ;allow_sign_up = true
436
437 # Allow non admin users to create organizations
438 ;allow_org_create = true
439
440 # Set to true to automatically assign new users to the default organization (id 1)
441 ;auto_assign_org = true
442
443 # Set this value to automatically add new users to the provided organization (if auto_assign_org above is set to true)
444 ;auto_assign_org_id = 1
445
446 # Default role new users will be automatically assigned
447 ;auto_assign_org_role = Viewer
448
449 # Require email validation before sign up completes
450 ;verify_email_enabled = false
451
452 # Background text for the user field on the login page
453 ;login_hint = email or username
454 ;password_hint = password
455
456 # Default UI theme ("dark" or "light")
457 ;default_theme = dark
458
459 # Default UI language (supported IETF language tag, such as en-US)
460 ;default_language = en-US
461
462 # 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.
463 ;home_page =
464
465 # External user management, these options affect the organization users view
466 ;external_manage_link_url =
467 ;external_manage_link_name =
468 ;external_manage_info =
469
470 # Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
471 ;viewers_can_edit = false
472
473 # Editors can administrate dashboard, folders and teams they create
474 ;editors_can_admin = false
475
476 # 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).
477 ;user_invite_max_lifetime_duration = 24h
478
479 # Enter a comma-separated list of users login to hide them in the Grafana UI. These users are shown to Grafana admins and themselves.
480 ; hidden_users =
481
482 [secretscan]
483 # Enable secretscan feature
484 ;enabled = false
485
486 # Interval to check for token leaks
487 ;interval = 5m
488
489 # base URL of the grafana token leak check service
490 ;base_url = https://secret-scanning.grafana.net
491
492 # URL to send outgoing webhooks to in case of detection
493 ;oncall_url =
494
495 # Whether to revoke the token if a leak is detected or just send a notification
496 ;revoke = true
497
498 [service_accounts]
499 # Service account maximum expiration date in days.
500 # When set, Grafana will not allow the creation of tokens with expiry greater than this setting.
501 ; token_expiration_day_limit =
502
503 [auth]
504 # Login cookie name
505 ;login_cookie_name = grafana_session
506
507 # Disable usage of Grafana build-in login solution.
508 ;disable_login = false
509
510 # 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.
511 ;login_maximum_inactive_lifetime_duration =
512
513 # 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).
514 ;login_maximum_lifetime_duration =
515
516 # How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
517 ;token_rotation_interval_minutes = 10
518
519 # Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
520 ;disable_login_form = false
521
522 # 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
523 ;disable_signout_menu = false
524
525 # URL to redirect the user to after sign out
526 ;signout_redirect_url =
527
528 # Set to true to attempt login with OAuth automatically, skipping the login screen.
529 # This setting is ignored if multiple OAuth providers are configured.
530 # Deprecated, use auto_login option for specific provider instead.
531 ;oauth_auto_login = false
532
533 # OAuth state max age cookie duration in seconds. Defaults to 600 seconds.
534 ;oauth_state_cookie_max_age = 600
535
536 # Skip forced assignment of OrgID 1 or 'auto_assign_org_id' for social logins
537 # Deprecated, use skip_org_role_sync option for specific provider instead.
538 ;oauth_skip_org_role_update_sync = false
539
540 # limit of api_key seconds to live before expiration
541 ;api_key_max_seconds_to_live = -1
542
543 # Set to true to enable SigV4 authentication option for HTTP-based datasources.
544 ;sigv4_auth_enabled = false
545
546 # Set to true to enable verbose logging of SigV4 request signing
547 ;sigv4_verbose_logging = false
548
549 # Set to true to enable Azure authentication option for HTTP-based datasources.
550 ;azure_auth_enabled = false
551
552 # Set to skip the organization role from JWT login and use system's role assignment instead.
553 ; skip_org_role_sync = false
554
555 # Use email lookup in addition to the unique ID provided by the IdP
556 ;oauth_allow_insecure_email_lookup = false
557
558 # Set to true to include id of identity as a response header
559 ;id_response_header_enabled = false
560
561 # Prefix used for the id response header, X-Grafana-Identity-Id
562 ;id_response_header_prefix = X-Grafana
563
564 # List of identity namespaces to add id response headers for, separated by space.
565 # Available namespaces are user, api-key and service-account.
566 # The header value will encode the namespace ("user:<id>", "api-key:<id>", "service-account:<id>")
567 ;id_response_header_namespaces = user api-key service-account
568
569 #################################### Anonymous Auth ######################
570 [auth.anonymous]
571 # enable anonymous access
572 ;enabled = false
573
574 # specify organization name that should be used for unauthenticated users
575 ;org_name = Main Org.
576
577 # specify role for unauthenticated users
578 ;org_role = Viewer
579
580 # mask the Grafana version number for unauthenticated users
581 ;hide_version = false
582
583 #################################### GitHub Auth ##########################
584 [auth.github]
585 ;name = GitHub
586 ;icon = github
587 ;enabled = false
588 ;allow_sign_up = true
589 ;auto_login = false
590 ;client_id = some_id
591 ;client_secret = some_secret
592 ;scopes = user:email,read:org
593 ;auth_url = https://github.com/login/oauth/authorize
594 ;token_url = https://github.com/login/oauth/access_token
595 ;api_url = https://api.github.com/user
596 ;signout_redirect_url =
597 ;allowed_domains =
598 ;team_ids =
599 ;allowed_organizations =
600 ;role_attribute_path =
601 ;role_attribute_strict = false
602 ;allow_assign_grafana_admin = false
603 ;skip_org_role_sync = false
604
605 #################################### GitLab Auth #########################
606 [auth.gitlab]
607 ;name = GitLab
608 ;icon = gitlab
609 ;enabled = false
610 ;allow_sign_up = true
611 ;auto_login = false
612 ;client_id = some_id
613 ;client_secret = some_secret
614 ;scopes = openid email profile
615 ;auth_url = https://gitlab.com/oauth/authorize
616 ;token_url = https://gitlab.com/oauth/token
617 ;api_url = https://gitlab.com/api/v4
618 ;signout_redirect_url =
619 ;allowed_domains =
620 ;allowed_groups =
621 ;role_attribute_path =
622 ;role_attribute_strict = false
623 ;allow_assign_grafana_admin = false
624 ;skip_org_role_sync = false
625 ;tls_skip_verify_insecure = false
626 ;tls_client_cert =
627 ;tls_client_key =
628 ;tls_client_ca =
629 ;use_pkce = true
630
631 #################################### Google Auth ##########################
632 [auth.google]
633 ;name = Google
634 ;icon = google
635 ;enabled = false
636 ;allow_sign_up = true
637 ;auto_login = false
638 ;client_id = some_client_id
639 ;client_secret = some_client_secret
640 ;scopes = openid email profile
641 ;auth_url = https://accounts.google.com/o/oauth2/v2/auth
642 ;token_url = https://oauth2.googleapis.com/token
643 ;api_url = https://openidconnect.googleapis.com/v1/userinfo
644 ;signout_redirect_url =
645 ;allowed_domains =
646 ;hosted_domain =
647 ;allowed_groups =
648 ;role_attribute_path =
649 ;role_attribute_strict = false
650 ;allow_assign_grafana_admin = false
651 ;skip_org_role_sync = false
652 ;use_pkce = true
653
654 #################################### Grafana.com Auth ####################
655 [auth.grafana_com]
656 ;name = Grafana.com
657 ;icon = grafana
658 ;enabled = false
659 ;allow_sign_up = true
660 ;auto_login = false
661 ;client_id = some_id
662 ;client_secret = some_secret
663 ;scopes = user:email
664 ;allowed_organizations =
665 ;skip_org_role_sync = false
666
667 #################################### Azure AD OAuth #######################
668 [auth.azuread]
669 ;name = Microsoft
670 ;icon = microsoft
671 ;enabled = false
672 ;allow_sign_up = true
673 ;auto_login = false
674 ;client_id = some_client_id
675 ;client_secret = some_client_secret
676 ;scopes = openid email profile
677 ;auth_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
678 ;token_url = https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
679 ;signout_redirect_url =
680 ;allowed_domains =
681 ;allowed_groups =
682 ;allowed_organizations =
683 ;role_attribute_strict = false
684 ;allow_assign_grafana_admin = false
685 ;use_pkce = true
686 # prevent synchronizing users organization roles
687 ;skip_org_role_sync = false
688
689 #################################### Okta OAuth #######################
690 [auth.okta]
691 ;name = Okta
692 ;enabled = false
693 ;allow_sign_up = true
694 ;auto_login = false
695 ;client_id = some_id
696 ;client_secret = some_secret
697 ;scopes = openid profile email groups
698 ;auth_url = https://<tenant-id>.okta.com/oauth2/v1/authorize
699 ;token_url = https://<tenant-id>.okta.com/oauth2/v1/token
700 ;api_url = https://<tenant-id>.okta.com/oauth2/v1/userinfo
701 ;signout_redirect_url =
702 ;allowed_domains =
703 ;allowed_groups =
704 ;role_attribute_path =
705 ;role_attribute_strict = false
706 ;allow_assign_grafana_admin = false
707 ;skip_org_role_sync = false
708 ;use_pkce = true
709
710 #################################### Generic OAuth ##########################
711 [auth.generic_oauth]
712 ;enabled = false
713 ;name = OAuth
714 ;allow_sign_up = true
715 ;auto_login = false
716 ;client_id = some_id
717 ;client_secret = some_secret
718 ;scopes = user:email,read:org
719 ;empty_scopes = false
720 ;email_attribute_name = email:primary
721 ;email_attribute_path =
722 ;login_attribute_path =
723 ;name_attribute_path =
724 ;id_token_attribute_name =
725 ;auth_url = https://foo.bar/login/oauth/authorize
726 ;token_url = https://foo.bar/login/oauth/access_token
727 ;api_url = https://foo.bar/user
728 ;signout_redirect_url =
729 ;teams_url =
730 ;allowed_domains =
731 ;team_ids =
732 ;allowed_organizations =
733 ;role_attribute_path =
734 ;role_attribute_strict = false
735 ;groups_attribute_path =
736 ;team_ids_attribute_path =
737 ;tls_skip_verify_insecure = false
738 ;tls_client_cert =
739 ;tls_client_key =
740 ;tls_client_ca =
741 ;use_pkce = false
742 ;auth_style =
743 ;allow_assign_grafana_admin = false
744
745 #################################### Basic Auth ##########################
746 [auth.basic]
747 ;enabled = true
748
749 #################################### Auth Proxy ##########################
750 [auth.proxy]
751 ;enabled = false
752 ;header_name = X-WEBAUTH-USER
753 ;header_property = username
754 ;auto_sign_up = true
755 ;sync_ttl = 60
756 ;whitelist = 192.168.1.1, 192.168.2.1
757 ;headers = Email:X-User-Email, Name:X-User-Name
758 # Non-ASCII strings in header values are encoded using quoted-printable encoding
759 ;headers_encoded = false
760 # Read the auth proxy docs for details on what the setting below enables
761 ;enable_login_token = false
762
763 #################################### Auth JWT ##########################
764 [auth.jwt]
765 ;enabled = true
766 ;header_name = X-JWT-Assertion
767 ;email_claim = sub
768 ;username_claim = sub
769 ;jwk_set_url = https://foo.bar/.well-known/jwks.json
770 ;jwk_set_file = /path/to/jwks.json
771 ;cache_ttl = 60m
772 ;expect_claims = {"aud": ["foo", "bar"]}
773 ;key_file = /path/to/key/file
774 # Use in conjunction with key_file in case the JWT token's header specifies a key ID in "kid" field
775 ;key_id = some-key-id
776 ;role_attribute_path =
777 ;role_attribute_strict = false
778 ;auto_sign_up = false
779 ;url_login = false
780 ;allow_assign_grafana_admin = false
781
782 #################################### Auth LDAP ##########################
783 [auth.ldap]
784 ;enabled = false
785 ;config_file = /etc/grafana/ldap.toml
786 ;allow_sign_up = true
787 # prevent synchronizing ldap users organization roles
788 ;skip_org_role_sync = false
789
790 # LDAP background sync (Enterprise only)
791 # At 1 am every day
792 ;sync_cron = "0 1 * * *"
793 ;active_sync_enabled = true
794
795 #################################### AWS ###########################
796 [aws]
797 # Enter a comma-separated list of allowed AWS authentication providers.
798 # Options are: default (AWS SDK Default), keys (Access && secret key), credentials (Credentials field), ec2_iam_role (EC2 IAM Role)
799 ; allowed_auth_providers = default,keys,credentials
800
801 # Allow AWS users to assume a role using temporary security credentials.
802 # If true, assume role will be enabled for all AWS authentication providers that are specified in aws_auth_providers
803 ; assume_role_enabled = true
804
805 # Specify max no of pages to be returned by the ListMetricPages API
806 ; list_metrics_page_limit = 500
807
808 # Experimental, for use in Grafana Cloud only. Please do not set.
809 ; external_id =
810
811 #################################### Azure ###############################
812 [azure]
813 # Azure cloud environment where Grafana is hosted
814 # Possible values are AzureCloud, AzureChinaCloud, AzureUSGovernment and AzureGermanCloud
815 # Default value is AzureCloud (i.e. public cloud)
816 ;cloud = AzureCloud
817
818 # Specifies whether Grafana hosted in Azure service with Managed Identity configured (e.g. Azure Virtual Machines instance)
819 # If enabled, the managed identity can be used for authentication of Grafana in Azure services
820 # Disabled by default, needs to be explicitly enabled
821 ;managed_identity_enabled = false
822
823 # Client ID to use for user-assigned managed identity
824 # Should be set for user-assigned identity and should be empty for system-assigned identity
825 ;managed_identity_client_id =
826
827 # Specifies whether Azure AD Workload Identity authentication should be enabled in datasources that support it
828 # For more documentation on Azure AD Workload Identity, review this documentation:
829 # https://azure.github.io/azure-workload-identity/docs/
830 # Disabled by default, needs to be explicitly enabled
831 ;workload_identity_enabled = false
832
833 # Tenant ID of the Azure AD Workload Identity
834 # Allows to override default tenant ID of the Azure AD identity associated with the Kubernetes service account
835 ;workload_identity_tenant_id =
836
837 # Client ID of the Azure AD Workload Identity
838 # Allows to override default client ID of the Azure AD identity associated with the Kubernetes service account
839 ;workload_identity_client_id =
840
841 # Custom path to token file for the Azure AD Workload Identity
842 # Allows to set a custom path to the projected service account token file
843 ;workload_identity_token_file =
844
845 # Specifies whether user identity authentication (on behalf of currently signed-in user) should be enabled in datasources
846 # that support it (requires AAD authentication)
847 # Disabled by default, needs to be explicitly enabled
848 ;user_identity_enabled = false
849
850 # Override token URL for Azure Active Directory
851 # By default is the same as token URL configured for AAD authentication settings
852 ;user_identity_token_url =
853
854 # Override ADD application ID which would be used to exchange users token to an access token for the datasource
855 # By default is the same as used in AAD authentication or can be set to another application (for OBO flow)
856 ;user_identity_client_id =
857
858 # Override the AAD application client secret
859 # By default is the same as used in AAD authentication or can be set to another application (for OBO flow)
860 ;user_identity_client_secret =
861
862 # Set the plugins that will receive Azure settings for each request (via plugin context)
863 # By default this will include all Grafana Labs owned Azure plugins, or those that make use of Azure settings (Azure Monitor, Azure Data Explorer, Prometheus, MSSQL).
864 ;forward_settings_to_plugins = grafana-azure-monitor-datasource, prometheus, grafana-azure-data-explorer-datasource, mssql
865
866 #################################### Role-based Access Control ###########
867 [rbac]
868 ;permission_cache = true
869
870 # Reset basic roles permissions on boot
871 # Warning left to true, basic roles permissions will be reset on every boot
872 #reset_basic_roles = false
873
874 # Validate permissions' action and scope on role creation and update
875 ; permission_validation_enabled = true
876
877 #################################### SMTP / Emailing ##########################
878 [smtp]
879 ;enabled = false
880 ;host = localhost:25
881 ;user =
882 # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
883 ;password =
884 ;cert_file =
885 ;key_file =
886 ;skip_verify = false
887 ;from_address = [email protected]
888 ;from_name = Grafana
889 # EHLO identity in SMTP dialog (defaults to instance_name)
890 ;ehlo_identity = dashboard.example.com
891 # SMTP startTLS policy (defaults to 'OpportunisticStartTLS')
892 ;startTLS_policy = NoStartTLS
893
894 [smtp.static_headers]
895 # Include custom static headers in all outgoing emails
896 ;Foo-Header = bar
897 ;Foo = bar
898
899 [emails]
900 ;welcome_email_on_sign_up = false
901 ;templates_pattern = emails/*.html, emails/*.txt
902 ;content_types = text/html
903
904 #################################### Logging ##########################
905 [log]
906 # Either "console", "file", "syslog". Default is console and file
907 # Use space to separate multiple modes, e.g. "console file"
908 ;mode = console file
909
910 # Either "debug", "info", "warn", "error", "critical", default is "info"
911 ;level = info
912
913 # optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
914 ;filters =
915
916 # Set the default error message shown to users. This message is displayed instead of sensitive backend errors which should be obfuscated. Default is the same as the sample value.
917 ;user_facing_default_error = "please inspect Grafana server log for details"
918
919 # For "console" mode only
920 [log.console]
921 ;level =
922
923 # log line format, valid options are text, console and json
924 ;format = console
925
926 # For "file" mode only
927 [log.file]
928 ;level =
929
930 # log line format, valid options are text, console and json
931 ;format = text
932
933 # This enables automated log rotate(switch of following options), default is true
934 ;log_rotate = true
935
936 # Max line number of single file, default is 1000000
937 ;max_lines = 1000000
938
939 # Max size shift of single file, default is 28 means 1 << 28, 256MB
940 ;max_size_shift = 28
941
942 # Segment log daily, default is true
943 ;daily_rotate = true
944
945 # Expired days of log file(delete after max days), default is 7
946 ;max_days = 7
947
948 [log.syslog]
949 ;level =
950
951 # log line format, valid options are text, console and json
952 ;format = text
953
954 # Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
955 ;network =
956 ;address =
957
958 # Syslog facility. user, daemon and local0 through local7 are valid.
959 ;facility =
960
961 # Syslog tag. By default, the process' argv[0] is used.
962 ;tag =
963
964 [log.frontend]
965 # Should Faro javascript agent be initialized
966 ;enabled = false
967
968 # Custom HTTP endpoint to send events to. Default will log the events to stdout.
969 ;custom_endpoint = /log-grafana-javascript-agent
970
971 # Requests per second limit enforced an extended period, for Grafana backend log ingestion endpoint (/log).
972 ;log_endpoint_requests_per_second_limit = 3
973
974 # Max requests accepted per short interval of time for Grafana backend log ingestion endpoint (/log).
975 ;log_endpoint_burst_limit = 15
976
977 # Should error instrumentation be enabled, only affects Grafana Javascript Agent
978 ;instrumentations_errors_enabled = true
979
980 # Should console instrumentation be enabled, only affects Grafana Javascript Agent
981 ;instrumentations_console_enabled = false
982
983 # Should webvitals instrumentation be enabled, only affects Grafana Javascript Agent
984 ;instrumentations_webvitals_enabled = false
985
986 # Api Key, only applies to Grafana Javascript Agent provider
987 ;api_key = testApiKey
988
989 #################################### Usage Quotas ########################
990 [quota]
991 ; enabled = false
992
993 #### set quotas to -1 to make unlimited. ####
994 # limit number of users per Org.
995 ; org_user = 10
996
997 # limit number of dashboards per Org.
998 ; org_dashboard = 100
999
1000 # limit number of data_sources per Org.
1001 ; org_data_source = 10
1002
1003 # limit number of api_keys per Org.
1004 ; org_api_key = 10
1005
1006 # limit number of alerts per Org.
1007 ;org_alert_rule = 100
1008
1009 # limit number of orgs a user can create.
1010 ; user_org = 10
1011
1012 # Global limit of users.
1013 ; global_user = -1
1014
1015 # global limit of orgs.
1016 ; global_org = -1
1017
1018 # global limit of dashboards
1019 ; global_dashboard = -1
1020
1021 # global limit of api_keys
1022 ; global_api_key = -1
1023
1024 # global limit on number of logged in users.
1025 ; global_session = -1
1026
1027 # global limit of alerts
1028 ;global_alert_rule = -1
1029
1030 # global limit of correlations
1031 ; global_correlations = -1
1032
1033 #################################### Unified Alerting ####################
1034 [unified_alerting]
1035 #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.```
1036 ;enabled = true
1037
1038 # Comma-separated list of organization IDs for which to disable unified alerting. Only supported if unified alerting is enabled.
1039 ;disabled_orgs =
1040
1041 # Specify the frequency of polling for admin config changes.
1042 # 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.
1043 ;admin_config_poll_interval = 60s
1044
1045 # Specify the frequency of polling for Alertmanager config changes.
1046 # 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.
1047 ;alertmanager_config_poll_interval = 60s
1048
1049 # The redis server address that should be connected to.
1050 ;ha_redis_address =
1051
1052 # The username that should be used to authenticate with the redis server.
1053 ;ha_redis_username =
1054
1055 # The password that should be used to authenticate with the redis server.
1056 ;ha_redis_password =
1057
1058 # The redis database, by default it's 0.
1059 ;ha_redis_db =
1060
1061 # A prefix that is used for every key or channel that is created on the redis server
1062 # as part of HA for alerting.
1063 ;ha_redis_prefix =
1064
1065 # The name of the cluster peer that will be used as identifier. If none is
1066 # provided, a random one will be generated.
1067 ;ha_redis_peer_name =
1068
1069 # 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`.
1070 ;ha_listen_address = "0.0.0.0:9094"
1071
1072 # 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`.
1073 ;ha_advertise_address = ""
1074
1075 # 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.
1076 ;ha_peers = ""
1077
1078 # Time to wait for an instance to send a notification via the Alertmanager. In HA, each Grafana instance will
1079 # be assigned a position (e.g. 0, 1). We then multiply this position with the timeout to indicate how long should
1080 # each instance wait before sending the notification to take into account replication lag.
1081 # 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.
1082 ;ha_peer_timeout = "15s"
1083
1084 # The label is an optional string to include on each packet and stream.
1085 # It uniquely identifies the cluster and prevents cross-communication
1086 # issues when sending gossip messages in an enviromenet with multiple clusters.
1087 ;ha_label =
1088
1089 # The interval between sending gossip messages. By lowering this value (more frequent) gossip messages are propagated
1090 # across cluster more quickly at the expense of increased bandwidth usage.
1091 # 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.
1092 ;ha_gossip_interval = "200ms"
1093
1094 # The interval between gossip full state syncs. Setting this interval lower (more frequent) will increase convergence speeds
1095 # across larger clusters at the expense of increased bandwidth usage.
1096 # 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.
1097 ;ha_push_pull_interval = "60s"
1098
1099 # Enable or disable alerting rule execution. The alerting UI remains visible. This option has a legacy version in the `[alerting]` section that takes precedence.
1100 ;execute_alerts = true
1101
1102 # Alert evaluation timeout when fetching data from the datasource. This option has a legacy version in the `[alerting]` section that takes precedence.
1103 # 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.
1104 ;evaluation_timeout = 30s
1105
1106 # Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. The default value is 1.
1107 ;max_attempts = 1
1108
1109 # 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.
1110 # 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.
1111 ;min_interval = 10s
1112
1113 [unified_alerting.reserved_labels]
1114 # Comma-separated list of reserved labels added by the Grafana Alerting engine that should be disabled.
1115 # For example: `disabled_labels=grafana_folder`
1116 ;disabled_labels =
1117
1118 [unified_alerting.state_history]
1119 # Enable the state history functionality in Unified Alerting. The previous states of alert rules will be visible in panels and in the UI.
1120 ; enabled = true
1121
1122 # Select which pluggable state history backend to use. Either "annotations", "loki", or "multiple"
1123 # "loki" writes state history to an external Loki instance. "multiple" allows history to be written to multiple backends at once.
1124 # Defaults to "annotations".
1125 ; backend = "multiple"
1126
1127 # For "multiple" only.
1128 # Indicates the main backend used to serve state history queries.
1129 # Either "annotations" or "loki"
1130 ; primary = "loki"
1131
1132 # For "multiple" only.
1133 # Comma-separated list of additional backends to write state history data to.
1134 ; secondaries = "annotations"
1135
1136 # For "loki" only.
1137 # URL of the external Loki instance.
1138 # Either "loki_remote_url", or both of "loki_remote_read_url" and "loki_remote_write_url" is required for the "loki" backend.
1139 ; loki_remote_url = "http://loki:3100"
1140
1141 # For "loki" only.
1142 # URL of the external Loki's read path. To be used in configurations where Loki has separated read and write URLs.
1143 # Either "loki_remote_url", or both of "loki_remote_read_url" and "loki_remote_write_url" is required for the "loki" backend.
1144 ; loki_remote_read_url = "http://loki-querier:3100"
1145
1146 # For "loki" only.
1147 # URL of the external Loki's write path. To be used in configurations where Loki has separated read and write URLs.
1148 # Either "loki_remote_url", or both of "loki_remote_read_url" and "loki_remote_write_url" is required for the "loki" backend.
1149 ; loki_remote_write_url = "http://loki-distributor:3100"
1150
1151 # For "loki" only.
1152 # Optional tenant ID to attach to requests sent to Loki.
1153 ; loki_tenant_id = 123
1154
1155 # For "loki" only.
1156 # Optional username for basic authentication on requests sent to Loki. Can be left blank to disable basic auth.
1157 ; loki_basic_auth_username = "myuser"
1158
1159 # For "loki" only.
1160 # Optional password for basic authentication on requests sent to Loki. Can be left blank.
1161 ; loki_basic_auth_password = "mypass"
1162
1163 [unified_alerting.state_history.external_labels]
1164 # Optional extra labels to attach to outbound state history records or log streams.
1165 # Any number of label key-value-pairs can be provided.
1166 ; mylabelkey = mylabelvalue
1167
1168 [unified_alerting.upgrade]
1169 # If set to true when upgrading from legacy alerting to Unified Alerting, grafana will first delete all existing
1170 # Unified Alerting resources, thus re-upgrading all organizations from scratch. If false or unset, organizations that
1171 # have previously upgraded will not lose their existing Unified Alerting data when switching between legacy and
1172 # Unified Alerting. Should be kept false when not needed as it may cause unintended data-loss if left enabled.
1173 ;clean_upgrade = false
1174
1175 #################################### Alerting ############################
1176 [alerting]
1177 # Disable legacy alerting engine & UI features
1178 ;enabled = false
1179
1180 # Makes it possible to turn off alert execution but alerting UI is visible
1181 ;execute_alerts = true
1182
1183 # Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
1184 ;error_or_timeout = alerting
1185
1186 # Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
1187 ;nodata_or_nullvalues = no_data
1188
1189 # Alert notifications can include images, but rendering many images at the same time can overload the server
1190 # This limit will protect the server from render overloading and make sure notifications are sent out quickly
1191 ;concurrent_render_limit = 5
1192
1193 # Default setting for alert calculation timeout. Default value is 30
1194 ;evaluation_timeout_seconds = 30
1195
1196 # Default setting for alert notification timeout. Default value is 30
1197 ;notification_timeout_seconds = 30
1198
1199 # Default setting for max attempts to sending alert notifications. Default value is 3
1200 ;max_attempts = 3
1201
1202 # Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
1203 ;min_interval_seconds = 1
1204
1205 # Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
1206 # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
1207 ;max_annotation_age =
1208
1209 # Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
1210 ;max_annotations_to_keep =
1211
1212 #################################### Annotations #########################
1213 [annotations]
1214 # Configures the batch size for the annotation clean-up job. This setting is used for dashboard, API, and alert annotations.
1215 ;cleanupjob_batchsize = 100
1216
1217 # Enforces the maximum allowed length of the tags for any newly introduced annotations. It can be between 500 and 4096 inclusive (which is the respective's column length). Default value is 500.
1218 # Setting it to a higher value would impact performance therefore is not recommended.
1219 ;tags_length = 500
1220
1221 [annotations.dashboard]
1222 # Dashboard annotations means that annotations are associated with the dashboard they are created on.
1223
1224 # Configures how long dashboard annotations are stored. Default is 0, which keeps them forever.
1225 # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
1226 ;max_age =
1227
1228 # Configures max number of dashboard annotations that Grafana stores. Default value is 0, which keeps all dashboard annotations.
1229 ;max_annotations_to_keep =
1230
1231 [annotations.api]
1232 # API annotations means that the annotations have been created using the API without any
1233 # association with a dashboard.
1234
1235 # Configures how long Grafana stores API annotations. Default is 0, which keeps them forever.
1236 # This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
1237 ;max_age =
1238
1239 # Configures max number of API annotations that Grafana keeps. Default value is 0, which keeps all API annotations.
1240 ;max_annotations_to_keep =
1241
1242 #################################### Explore #############################
1243 [explore]
1244 # Enable the Explore section
1245 ;enabled = true
1246
1247 #################################### Help #############################
1248 [help]
1249 # Enable the Help section
1250 ;enabled = true
1251
1252 #################################### Profile #############################
1253 [profile]
1254 # Enable the Profile section
1255 ;enabled = true
1256
1257 #################################### News #############################
1258 [news]
1259 # Enable the news feed section
1260 ; news_feed_enabled = true
1261
1262 #################################### Query #############################
1263 [query]
1264 # Set the number of data source queries that can be executed concurrently in mixed queries. Default is the number of CPUs.
1265 ;concurrent_query_limit =
1266
1267 #################################### Query History #############################
1268 [query_history]
1269 # Enable the Query history
1270 ;enabled = true
1271
1272 #################################### Internal Grafana Metrics ##########################
1273 # Metrics available at HTTP URL /metrics and /metrics/plugins/:pluginId
1274 [metrics]
1275 # Disable / Enable internal metrics
1276 ;enabled = true
1277 # Graphite Publish interval
1278 ;interval_seconds = 10
1279 # Disable total stats (stat_totals_*) metrics to be generated
1280 ;disable_total_stats = false
1281 # The interval at which the total stats collector will update the stats. Default is 1800 seconds.
1282 ;total_stats_collector_interval_seconds = 1800
1283
1284 #If both are set, basic auth will be required for the metrics endpoints.
1285 ; basic_auth_username =
1286 ; basic_auth_password =
1287
1288 # Metrics environment info adds dimensions to the `grafana_environment_info` metric, which
1289 # can expose more information about the Grafana instance.
1290 [metrics.environment_info]
1291 #exampleLabel1 = exampleValue1
1292 #exampleLabel2 = exampleValue2
1293
1294 # Send internal metrics to Graphite
1295 [metrics.graphite]
1296 # Enable by setting the address setting (ex localhost:2003)
1297 ;address =
1298 ;prefix = prod.grafana.%(instance_name)s.
1299
1300 #################################### Grafana.com integration ##########################
1301 # Url used to import dashboards directly from Grafana.com
1302 [grafana_com]
1303 ;url = https://grafana.com
1304 ;api_url = https://grafana.com/api
1305
1306 #################################### Distributed tracing ############
1307 # Opentracing is deprecated use opentelemetry instead
1308 [tracing.jaeger]
1309 # Enable by setting the address sending traces to jaeger (ex localhost:6831)
1310 ;address = localhost:6831
1311 # Tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
1312 ;always_included_tag = tag1:value1
1313 # Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
1314 ;sampler_type = const
1315 # jaeger samplerconfig param
1316 # for "const" sampler, 0 or 1 for always false/true respectively
1317 # for "probabilistic" sampler, a probability between 0 and 1
1318 # for "rateLimiting" sampler, the number of spans per second
1319 # for "remote" sampler, param is the same as for "probabilistic"
1320 # and indicates the initial sampling rate before the actual one
1321 # is received from the mothership
1322 ;sampler_param = 1
1323 # sampling_server_url is the URL of a sampling manager providing a sampling strategy.
1324 ;sampling_server_url =
1325 # Whether or not to use Zipkin propagation (x-b3- HTTP headers).
1326 ;zipkin_propagation = false
1327 # Setting this to true disables shared RPC spans.
1328 # Not disabling is the most common setting when using Zipkin elsewhere in your infrastructure.
1329 ;disable_shared_zipkin_spans = false
1330
1331 [tracing.opentelemetry]
1332 # attributes that will always be included in when creating new spans. ex (key1:value1,key2:value2)
1333 ;custom_attributes = key1:value1,key2:value2
1334 # Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
1335 ; sampler_type = remote
1336 # Sampler configuration parameter
1337 # for "const" sampler, 0 or 1 for always false/true respectively
1338 # for "probabilistic" sampler, a probability between 0.0 and 1.0
1339 # for "rateLimiting" sampler, the number of spans per second
1340 # for "remote" sampler, param is the same as for "probabilistic"
1341 # and indicates the initial sampling rate before the actual one
1342 # is received from the sampling server (set at sampling_server_url)
1343 ; sampler_param = 0.5
1344 # specifies the URL of the sampling server when sampler_type is remote
1345 ; sampling_server_url = http://localhost:5778/sampling
1346
1347 [tracing.opentelemetry.jaeger]
1348 # jaeger destination (ex http://localhost:14268/api/traces)
1349 ; address = http://localhost:14268/api/traces
1350 # Propagation specifies the text map propagation format: w3c, jaeger
1351 ; propagation = jaeger
1352
1353 # This is a configuration for OTLP exporter with GRPC protocol
1354 [tracing.opentelemetry.otlp]
1355 # otlp destination (ex localhost:4317)
1356 ; address = localhost:4317
1357 # Propagation specifies the text map propagation format: w3c, jaeger
1358 ; propagation = w3c
1359
1360 #################################### External image storage ##########################
1361 [external_image_storage]
1362 # Used for uploading images to public servers so they can be included in slack/email messages.
1363 # you can choose between (s3, webdav, gcs, azure_blob, local)
1364 ;provider =
1365
1366 [external_image_storage.s3]
1367 ;endpoint =
1368 ;path_style_access =
1369 ;bucket =
1370 ;region =
1371 ;path =
1372 ;access_key =
1373 ;secret_key =
1374
1375 [external_image_storage.webdav]
1376 ;url =
1377 ;public_url =
1378 ;username =
1379 ;password =
1380
1381 [external_image_storage.gcs]
1382 ;key_file =
1383 ;bucket =
1384 ;path =
1385
1386 [external_image_storage.azure_blob]
1387 ;account_name =
1388 ;account_key =
1389 ;container_name =
1390 ;sas_token_expiration_days =
1391
1392 [external_image_storage.local]
1393 # does not require any configuration
1394
1395 [rendering]
1396 # Options to configure a remote HTTP image rendering service, e.g. using https://github.com/grafana/grafana-image-renderer.
1397 # 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.
1398 ;server_url =
1399 # 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/.
1400 ;callback_url =
1401 # An auth token that will be sent to and verified by the renderer. The renderer will deny any request without an auth token matching the one configured on the renderer side.
1402 ;renderer_token = -
1403 # Concurrent render request limit affects when the /render HTTP endpoint is used. Rendering many images at the same time can overload the server,
1404 # which this setting can help protect against by only allowing a certain amount of concurrent requests.
1405 ;concurrent_render_request_limit = 30
1406 # Determines the lifetime of the render key used by the image renderer to access and render Grafana.
1407 # This setting should be expressed as a duration. Examples: 10s (seconds), 5m (minutes), 2h (hours).
1408 # Default is 5m. This should be more than enough for most deployments.
1409 # Change the value only if image rendering is failing and you see `Failed to get the render key from cache` in Grafana logs.
1410 ;render_key_lifetime = 5m
1411
1412 [panels]
1413 # If set to true Grafana will allow script tags in text panels. Not recommended as it enable XSS vulnerabilities.
1414 ;disable_sanitize_html = false
1415
1416 [plugins]
1417 ;enable_alpha = false
1418 ;app_tls_skip_verify_insecure = false
1419 # 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.
1420 ;allow_loading_unsigned_plugins =
1421 # Enable or disable installing / uninstalling / updating plugins directly from within Grafana.
1422 ;plugin_admin_enabled = false
1423 ;plugin_admin_external_manage_enabled = false
1424 ;plugin_catalog_url = https://grafana.com/grafana/plugins/
1425 # Enter a comma-separated list of plugin identifiers to hide in the plugin catalog.
1426 ;plugin_catalog_hidden_plugins =
1427 # Log all backend requests for core and external plugins.
1428 ;log_backend_requests = false
1429 # Disable download of the public key for verifying plugin signature.
1430 ; public_key_retrieval_disabled = false
1431 # Force download of the public key for verifying plugin signature on startup. If disabled, the public key will be retrieved every 10 days.
1432 # Requires public_key_retrieval_disabled to be false to have any effect.
1433 ; public_key_retrieval_on_startup = false
1434 # Enter a comma-separated list of plugin identifiers to avoid loading (including core plugins). These plugins will be hidden in the catalog.
1435 ; disable_plugins =
1436
1437 #################################### Grafana Live ##########################################
1438 [live]
1439 # max_connections to Grafana Live WebSocket endpoint per Grafana server instance. See Grafana Live docs
1440 # if you are planning to make it higher than default 100 since this can require some OS and infrastructure
1441 # tuning. 0 disables Live, -1 means unlimited connections.
1442 ;max_connections = 100
1443
1444 # allowed_origins is a comma-separated list of origins that can establish connection with Grafana Live.
1445 # If not set then origin will be matched over root_url. Supports wildcard symbol "*".
1446 ;allowed_origins =
1447
1448 # engine defines an HA (high availability) engine to use for Grafana Live. By default no engine used - in
1449 # this case Live features work only on a single Grafana server. Available options: "redis".
1450 # Setting ha_engine is an EXPERIMENTAL feature.
1451 ;ha_engine =
1452
1453 # ha_engine_address sets a connection address for Live HA engine. Depending on engine type address format can differ.
1454 # For now we only support Redis connection address in "host:port" format.
1455 # This option is EXPERIMENTAL.
1456 ;ha_engine_address = "127.0.0.1:6379"
1457
1458 # ha_engine_password allows setting an optional password to authenticate with the engine
1459 ;ha_engine_password = ""
1460
1461 #################################### Grafana Image Renderer Plugin ##########################
1462 [plugin.grafana-image-renderer]
1463 # Instruct headless browser instance to use a default timezone when not provided by Grafana, e.g. when rendering panel image of alert.
1464 # See ICU’s metaZones.txt (https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt) for a list of supported
1465 # timezone IDs. Fallbacks to TZ environment variable if not set.
1466 ;rendering_timezone =
1467
1468 # Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
1469 # 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'.
1470 ;rendering_language =
1471
1472 # Instruct headless browser instance to use a default device scale factor when not provided by Grafana, e.g. when rendering panel image of alert.
1473 # Default is 1. Using a higher value will produce more detailed images (higher DPI), but will require more disk space to store an image.
1474 ;rendering_viewport_device_scale_factor =
1475
1476 # Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored. Due to
1477 # the security risk it's not recommended to ignore HTTPS errors.
1478 ;rendering_ignore_https_errors =
1479
1480 # Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is false and will
1481 # only capture and log error messages. When enabled, debug messages are captured and logged as well.
1482 # For the verbose information to be included in the Grafana server log you have to adjust the rendering log level to debug, configure
1483 # [log].filter = rendering:debug.
1484 ;rendering_verbose_logging =
1485
1486 # Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service.
1487 # Default is false. This can be useful to enable (true) when troubleshooting.
1488 ;rendering_dumpio =
1489
1490 # Additional arguments to pass to the headless browser instance. Default is --no-sandbox. The list of Chromium flags can be found
1491 # here (https://peter.sh/experiments/chromium-command-line-switches/). Multiple arguments is separated with comma-character.
1492 ;rendering_args =
1493
1494 # You can configure the plugin to use a different browser binary instead of the pre-packaged version of Chromium.
1495 # Please note that this is not recommended, since you may encounter problems if the installed version of Chrome/Chromium is not
1496 # compatible with the plugin.
1497 ;rendering_chrome_bin =
1498
1499 # Instruct how headless browser instances are created. Default is 'default' and will create a new browser instance on each request.
1500 # Mode 'clustered' will make sure that only a maximum of browsers/incognito pages can execute concurrently.
1501 # Mode 'reusable' will have one browser instance and will create a new incognito page on each request.
1502 ;rendering_mode =
1503
1504 # When rendering_mode = clustered, you can instruct how many browsers or incognito pages can execute concurrently. Default is 'browser'
1505 # and will cluster using browser instances.
1506 # Mode 'context' will cluster using incognito pages.
1507 ;rendering_clustering_mode =
1508 # When rendering_mode = clustered, you can define the maximum number of browser instances/incognito pages that can execute concurrently. Default is '5'.
1509 ;rendering_clustering_max_concurrency =
1510 # When rendering_mode = clustered, you can specify the duration a rendering request can take before it will time out. Default is `30` seconds.
1511 ;rendering_clustering_timeout =
1512
1513 # Limit the maximum viewport width, height and device scale factor that can be requested.
1514 ;rendering_viewport_max_width =
1515 ;rendering_viewport_max_height =
1516 ;rendering_viewport_max_device_scale_factor =
1517
1518 # 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
1519 # a port not in use.
1520 ;grpc_host =
1521 ;grpc_port =
1522
1523 [support_bundles]
1524 # Enable support bundle creation (default: true)
1525 #enabled = true
1526 # Only server admins can generate and view support bundles (default: true)
1527 #server_admin_only = true
1528 # If set, bundles will be encrypted with the provided public keys separated by whitespace
1529 #public_keys = ""
1530
1531 [enterprise]
1532 # Path to a valid Grafana Enterprise license.jwt file
1533 ;license_path =
1534
1535 [feature_toggles]
1536 # there are currently two ways to enable feature toggles in the `grafana.ini`.
1537 # you can either pass an array of feature you want to enable to the `enable` field or
1538 # configure each toggle by setting the name of the toggle to true/false. Toggles set to true/false
1539 # will take presidence over toggles in the `enable` list.
1540
1541 ;enable = feature1,feature2
1542
1543 ;feature1 = true
1544 ;feature2 = false
1545
1546 [date_formats]
1547 # For information on what formatting patterns that are supported https://momentjs.com/docs/#/displaying/
1548
1549 # Default system date format used in time range picker and other places where full time is displayed
1550 ;full_date = YYYY-MM-DD HH:mm:ss
1551
1552 # Used by graph and other places where we only show small intervals
1553 ;interval_second = HH:mm:ss
1554 ;interval_minute = HH:mm
1555 ;interval_hour = MM/DD HH:mm
1556 ;interval_day = MM/DD
1557 ;interval_month = YYYY-MM
1558 ;interval_year = YYYY
1559
1560 # Experimental feature
1561 ;use_browser_locale = false
1562
1563 # 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.
1564 ;default_timezone = browser
1565
1566 [expressions]
1567 # Enable or disable the expressions functionality.
1568 ;enabled = true
1569
1570 [geomap]
1571 # Set the JSON configuration for the default basemap
1572 ;default_baselayer_config = `{
1573 ; "type": "xyz",
1574 ; "config": {
1575 ; "attribution": "Open street map",
1576 ; "url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
1577 ; }
1578 ;}`
1579
1580 # Enable or disable loading other base map layers
1581 ;enable_custom_baselayers = true
1582
1583 # Move an app plugin referenced by its id (including all its pages) to a specific navigation section
1584 [navigation.app_sections]
1585 # The following will move an app plugin with the id of `my-app-id` under the `cfg` section
1586 # my-app-id = cfg
1587
1588 # Move a specific app plugin page (referenced by its `path` field) to a specific navigation section
1589 [navigation.app_standalone_pages]
1590 # The following will move the page with the path "/a/my-app-id/my-page" from `my-app-id` to the `cfg` section
1591 # /a/my-app-id/my-page = cfg
1592
1593 #################################### Secure Socks5 Datasource Proxy #####################################
1594 [secure_socks_datasource_proxy]
1595 ; enabled = false
1596 ; root_ca_cert =
1597 ; client_key =
1598 ; client_cert =
1599 ; server_name =
1600 # The address of the socks5 proxy datasources should connect to
1601 ; proxy_address =
1602 ; show_ui = true
1603 ; allow_insecure = false
1604
1605 ################################## Feature Management ##############################################
1606 [feature_management]
1607 # Options to configure the experimental Feature Toggle Admin Page feature, which is behind the `featureToggleAdminPage` feature toggle. Use at your own risk.
1608 # Allow editing of feature toggles in the feature management page
1609 ;allow_editing = false
1610 # Allow customization of URL for the controller that manages feature toggles
1611 ;update_webhook =
1612 # Allow configuring an auth token for feature management update requests
1613 ;update_webhook_token =
1614 # Hide specific feature toggles from the feature management page
1615 ;hidden_toggles =
1616 # Disable updating specific feature toggles in the feature management page
1617 ;read_only_toggles =
1618
1619 #################################### Public Dashboards #####################################
1620 [public_dashboards]
1621 # Set to false to disable public dashboards
1622 ;enabled = true