Advertisement
G0nz0uk

grafana.ini

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