<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Set up Grafana on Grafana Labs</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/</link><description>Recent content in Set up Grafana on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v10.0/setup-grafana/index.xml" rel="self" type="application/rss+xml"/><item><title>Install Grafana</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/installation/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/installation/</guid><content><![CDATA[&lt;h1 id=&#34;install-grafana&#34;&gt;Install Grafana&lt;/h1&gt;
&lt;p&gt;This page lists the minimum hardware and software requirements to install Grafana.&lt;/p&gt;
&lt;p&gt;To run Grafana, you must have a supported operating system, hardware that meets or exceeds minimum requirements, a supported database, and a supported browser.&lt;/p&gt;
&lt;p&gt;Grafana relies on other open source software to operate. For a list of open source software that Grafana uses, refer to &lt;a href=&#34;https://github.com/grafana/grafana/blob/main/package.json&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;package.json&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;supported-operating-systems&#34;&gt;Supported operating systems&lt;/h2&gt;
&lt;p&gt;Grafana supports the following operating systems:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;debian/&#34;&gt;Debian or Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;redhat-rhel-fedora/&#34;&gt;Red Hat, RHEL, or Fedora&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;suse-opensuse/&#34;&gt;SUSE or openSUSE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;mac/&#34;&gt;macOS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;windows/&#34;&gt;Windows&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Installation of Grafana on other operating systems is possible, but is not recommended or supported.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;hardware-recommendations&#34;&gt;Hardware recommendations&lt;/h2&gt;
&lt;p&gt;Grafana requires the minimum system resources:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Minimum recommended memory: 255 MB&lt;/li&gt;
&lt;li&gt;Minimum recommended CPU: 1&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some features might require more memory or CPUs, including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;/grafana/plugins/grafana-image-renderer#requirements&#34;&gt;Server side rendering of images&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../alerting/&#34;&gt;Alerting&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../developers/http_api/data_source/&#34;&gt;Data source proxy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;supported-databases&#34;&gt;Supported databases&lt;/h2&gt;
&lt;p&gt;Grafana requires a database to store its configuration data, such as users, data sources, and dashboards. The exact requirements depend on the size of the Grafana installation and the features you use.&lt;/p&gt;
&lt;p&gt;Grafana supports the following databases:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://www.sqlite.org/index.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;SQLite 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.mysql.com/support/supportedplatforms/database.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;MySQL 5.7&#43;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.postgresql.org/support/versioning/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;PostgreSQL 10&#43;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By default Grafana uses an embedded SQLite database, which is stored in the Grafana installation location.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;SQLite works well if your environment is small, but is not recommended when your environment starts growing. For more information about the limitations of SQLite, refer to &lt;a href=&#34;https://www.sqlite.org/whentouse.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Appropriate Uses For SQLite&lt;/a&gt;. If you want &lt;a href=&#34;/docs/grafana/latest/setup-grafana/set-up-for-high-availability/&#34;&gt;high availability&lt;/a&gt;, you must use either a MySQL or PostgreSQL database. For information about how to define the database configuration parameters inside the &lt;code&gt;grafana.ini&lt;/code&gt; file, refer to &lt;a href=&#34;/docs/grafana/latest/setup-grafana/configure-grafana/#database&#34;&gt;[database]&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Grafana supports the versions of these databases that are officially supported by the project at the time a version of Grafana is released. When a Grafana version becomes unsupported, Grafana Labs might also drop support for that database version. See the links above for the support policies for each project.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;PostgreSQL versions 10.9, 11.4, and 12-beta2 are affected by a bug (tracked by the PostgreSQL project as &lt;a href=&#34;https://www.postgresql.org/message-id/flat/15865-17940eacc8f8b081%40postgresql.org&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;bug #15865&lt;/a&gt;) which prevents those versions from being used with Grafana. The bug has been fixed in more recent versions of PostgreSQL.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Grafana can report errors when relying on read-only MySQL servers, such as in high-availability failover scenarios or serverless AWS Aurora MySQL. This is a known issue; for more information, see &lt;a href=&#34;https://github.com/grafana/grafana/issues/13399&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;issue #13399&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;supported-web-browsers&#34;&gt;Supported web browsers&lt;/h2&gt;
&lt;p&gt;Grafana supports the current version of the following browsers. Older versions of these browsers might not be supported, so you should always upgrade to the latest browser version when using Grafana.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Enable JavaScript in your browser. Running Grafana without JavaScript enabled in the browser is not supported.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Chrome/Chromium&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Safari&lt;/li&gt;
&lt;li&gt;Microsoft Edge&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-grafana">Install Grafana&lt;/h1>
&lt;p>This page lists the minimum hardware and software requirements to install Grafana.&lt;/p>
&lt;p>To run Grafana, you must have a supported operating system, hardware that meets or exceeds minimum requirements, a supported database, and a supported browser.&lt;/p></description></item><item><title>Configure Grafana</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/configure-grafana/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/configure-grafana/</guid><content><![CDATA[&lt;h1 id=&#34;configure-grafana&#34;&gt;Configure Grafana&lt;/h1&gt;
&lt;p&gt;Grafana has default and custom configuration files. You can customize your Grafana instance by modifying the custom configuration file or by using environment variables. To see the list of settings for a Grafana instance, refer to &lt;a href=&#34;../../administration/stats-and-license/#view-server-settings&#34;&gt;View server settings&lt;/a&gt;.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;After you add custom options, &lt;a href=&#34;#remove-comments-in-the-ini-files&#34;&gt;uncomment&lt;/a&gt; the relevant sections of the configuration file. Restart Grafana for your changes to take effect.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;configuration-file-location&#34;&gt;Configuration file location&lt;/h2&gt;
&lt;p&gt;The default settings for a Grafana instance are stored in the &lt;code&gt;$WORKING_DIR/conf/defaults.ini&lt;/code&gt; file. &lt;em&gt;Do not&lt;/em&gt; change this file.&lt;/p&gt;
&lt;p&gt;Depending on your OS, your custom configuration file is either the &lt;code&gt;$WORKING_DIR/conf/custom.ini&lt;/code&gt; file or the &lt;code&gt;/usr/local/etc/grafana/grafana.ini&lt;/code&gt; file. The custom configuration file path can be overridden using the &lt;code&gt;--config&lt;/code&gt; parameter.&lt;/p&gt;
&lt;h3 id=&#34;linux&#34;&gt;Linux&lt;/h3&gt;
&lt;p&gt;If you installed Grafana using the &lt;code&gt;deb&lt;/code&gt; or &lt;code&gt;rpm&lt;/code&gt; packages, then your configuration file is located at &lt;code&gt;/etc/grafana/grafana.ini&lt;/code&gt; and a separate &lt;code&gt;custom.ini&lt;/code&gt; is not used. This path is specified in the Grafana init.d script using &lt;code&gt;--config&lt;/code&gt; file parameter.&lt;/p&gt;
&lt;h3 id=&#34;docker&#34;&gt;Docker&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-docker/&#34;&gt;Configure a Grafana Docker image&lt;/a&gt; for information about environmental variables, persistent storage, and building custom Docker images.&lt;/p&gt;
&lt;h3 id=&#34;windows&#34;&gt;Windows&lt;/h3&gt;
&lt;p&gt;On Windows, the &lt;code&gt;sample.ini&lt;/code&gt; file is located in the same directory as &lt;code&gt;defaults.ini&lt;/code&gt; file. It contains all the settings commented out. Copy &lt;code&gt;sample.ini&lt;/code&gt; and name it &lt;code&gt;custom.ini&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;macos&#34;&gt;macOS&lt;/h3&gt;
&lt;p&gt;By default, the configuration file is located at &lt;code&gt;/usr/local/etc/grafana/grafana.ini&lt;/code&gt;. For a Grafana instance installed using Homebrew, edit the &lt;code&gt;grafana.ini&lt;/code&gt; file directly. Otherwise, add a configuration file named &lt;code&gt;custom.ini&lt;/code&gt; to the &lt;code&gt;conf&lt;/code&gt; folder to override the settings defined in &lt;code&gt;conf/defaults.ini&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;remove-comments-in-the-ini-files&#34;&gt;Remove comments in the .ini files&lt;/h2&gt;
&lt;p&gt;Grafana uses semicolons (the &lt;code&gt;;&lt;/code&gt; char) to comment out lines in a &lt;code&gt;.ini&lt;/code&gt; file. You must uncomment each line in the &lt;code&gt;custom.ini&lt;/code&gt; or the &lt;code&gt;grafana.ini&lt;/code&gt; file that you are modify by removing &lt;code&gt;;&lt;/code&gt; from the beginning of that line. Otherwise your changes will be ignored.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;# The HTTP port  to use
;http_port = 3000&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;override-configuration-with-environment-variables&#34;&gt;Override configuration with environment variables&lt;/h2&gt;
&lt;p&gt;Do not use environment variables to &lt;em&gt;add&lt;/em&gt; new configuration settings. Instead, use environmental variables to &lt;em&gt;override&lt;/em&gt; existing options.&lt;/p&gt;
&lt;p&gt;To override an option:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;GF_&amp;lt;SectionName&amp;gt;_&amp;lt;KeyName&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Where the section name is the text within the brackets. Everything should be uppercase, &lt;code&gt;.&lt;/code&gt; and &lt;code&gt;-&lt;/code&gt; should be replaced by &lt;code&gt;_&lt;/code&gt;. For example, if you have these configuration settings:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# default section
instance_name = ${HOSTNAME}

[security]
admin_user = admin

[auth.google]
client_secret = 0ldS3cretKey

[plugin.grafana-image-renderer]
rendering_ignore_https_errors = true

[feature_toggles]
enable = newNavigation&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You can override variables on Linux machines with:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;export GF_DEFAULT_INSTANCE_NAME=my-instance
export GF_SECURITY_ADMIN_USER=owner
export GF_AUTH_GOOGLE_CLIENT_SECRET=newS3cretKey
export GF_PLUGIN_GRAFANA_IMAGE_RENDERER_RENDERING_IGNORE_HTTPS_ERRORS=true
export GF_FEATURE_TOGGLES_ENABLE=newNavigation&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;variable-expansion&#34;&gt;Variable expansion&lt;/h2&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Only available in Grafana 7.1&#43;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;If any of your options contains the expression &lt;code&gt;$__&amp;lt;provider&amp;gt;{&amp;lt;argument&amp;gt;}&lt;/code&gt;
or &lt;code&gt;${&amp;lt;environment variable&amp;gt;}&lt;/code&gt;, then they will be processed by Grafana&amp;rsquo;s
variable expander. The expander runs the provider with the provided argument
to get the final value of the option.&lt;/p&gt;
&lt;p&gt;There are three providers: &lt;code&gt;env&lt;/code&gt;, &lt;code&gt;file&lt;/code&gt;, and &lt;code&gt;vault&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;env-provider&#34;&gt;Env provider&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;env&lt;/code&gt; provider can be used to expand an environment variable. If you
set an option to &lt;code&gt;$__env{PORT}&lt;/code&gt; the &lt;code&gt;PORT&lt;/code&gt; environment variable will be
used in its place. For environment variables you can also use the
short-hand syntax &lt;code&gt;${PORT}&lt;/code&gt;.
Grafana&amp;rsquo;s log directory would be set to the &lt;code&gt;grafana&lt;/code&gt; directory in the
directory behind the &lt;code&gt;LOGDIR&lt;/code&gt; environment variable in the following
example.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;ini&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-ini&#34;&gt;[paths]
logs = $__env{LOGDIR}/grafana&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;file-provider&#34;&gt;File provider&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;file&lt;/code&gt; reads a file from the filesystem. It trims whitespace from the
beginning and the end of files.
The database password in the following example would be replaced by
the content of the &lt;code&gt;/etc/secrets/gf_sql_password&lt;/code&gt; file:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;ini&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-ini&#34;&gt;[database]
password = $__file{/etc/secrets/gf_sql_password}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;vault-provider&#34;&gt;Vault provider&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;vault&lt;/code&gt; provider allows you to manage your secrets with &lt;a href=&#34;https://www.hashicorp.com/products/vault&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Hashicorp Vault&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Vault provider is only available in Grafana Enterprise v7.1&#43;. For more information, refer to &lt;a href=&#34;../configure-security/configure-database-encryption/integrate-with-hashicorp-vault/&#34;&gt;Vault integration&lt;/a&gt; in &lt;a href=&#34;../../introduction/grafana-enterprise/&#34;&gt;Grafana Enterprise&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;app_mode&#34;&gt;app_mode&lt;/h2&gt;
&lt;p&gt;Options are &lt;code&gt;production&lt;/code&gt; and &lt;code&gt;development&lt;/code&gt;. Default is &lt;code&gt;production&lt;/code&gt;. &lt;em&gt;Do not&lt;/em&gt; change this option unless you are working on Grafana development.&lt;/p&gt;
&lt;h2 id=&#34;instance_name&#34;&gt;instance_name&lt;/h2&gt;
&lt;p&gt;Set the name of the grafana-server instance. Used in logging, internal metrics, and clustering info. Defaults to: &lt;code&gt;${HOSTNAME}&lt;/code&gt;, which will be replaced with
environment variable &lt;code&gt;HOSTNAME&lt;/code&gt;, if that is empty or does not exist Grafana will try to use system calls to get the machine name.&lt;/p&gt;
&lt;h3 id=&#34;force_migration&#34;&gt;force_migration&lt;/h3&gt;
&lt;p&gt;Force migration will run migrations that might cause data loss. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Set force_migration=true in your grafana.ini and restart Grafana to roll back and delete Unified Alerting configuration data. Any alert rules created while using Unified Alerting will be deleted by rolling back.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;paths&#34;&gt;[paths]&lt;/h2&gt;
&lt;h3 id=&#34;data&#34;&gt;data&lt;/h3&gt;
&lt;p&gt;Path to where Grafana stores the sqlite3 database (if used), file-based sessions (if used), and other data. This path is usually specified via command line in the init.d script or the systemd service file.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;macOS:&lt;/strong&gt; The default SQLite database is located at &lt;code&gt;/usr/local/var/lib/grafana&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;temp_data_lifetime&#34;&gt;temp_data_lifetime&lt;/h3&gt;
&lt;p&gt;How long temporary images in &lt;code&gt;data&lt;/code&gt; directory should be kept. Defaults to: &lt;code&gt;24h&lt;/code&gt;. Supported modifiers: &lt;code&gt;h&lt;/code&gt; (hours),
&lt;code&gt;m&lt;/code&gt; (minutes), for example: &lt;code&gt;168h&lt;/code&gt;, &lt;code&gt;30m&lt;/code&gt;, &lt;code&gt;10h30m&lt;/code&gt;. Use &lt;code&gt;0&lt;/code&gt; to never clean up temporary files.&lt;/p&gt;
&lt;h3 id=&#34;logs&#34;&gt;logs&lt;/h3&gt;
&lt;p&gt;Path to where Grafana stores logs. This path is usually specified via command line in the init.d script or the systemd service file. You can override it in the configuration file or in the default environment variable file. However, please note that by overriding this the default log path will be used temporarily until Grafana has fully initialized/started.&lt;/p&gt;
&lt;p&gt;Override log path using the command line argument &lt;code&gt;cfg:default.paths.logs&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;./grafana-server --config /custom/config.ini --homepath /custom/homepath cfg:default.paths.logs=/custom/path&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;macOS:&lt;/strong&gt; By default, the log file should be located at &lt;code&gt;/usr/local/var/log/grafana/grafana.log&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;plugins&#34;&gt;plugins&lt;/h3&gt;
&lt;p&gt;Directory where Grafana automatically scans and looks for plugins. For information about manually or automatically installing plugins, refer to &lt;a href=&#34;../../administration/plugin-management/#install-grafana-plugins&#34;&gt;Install Grafana plugins&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;macOS:&lt;/strong&gt; By default, the Mac plugin location is: &lt;code&gt;/usr/local/var/lib/grafana/plugins&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;provisioning&#34;&gt;provisioning&lt;/h3&gt;
&lt;p&gt;Folder that contains &lt;a href=&#34;../../administration/provisioning/&#34;&gt;provisioning&lt;/a&gt; config files that Grafana will apply on startup. Dashboards will be reloaded when the json files changes.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;server&#34;&gt;[server]&lt;/h2&gt;
&lt;h3 id=&#34;protocol&#34;&gt;protocol&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;http&lt;/code&gt;,&lt;code&gt;https&lt;/code&gt;,&lt;code&gt;h2&lt;/code&gt; or &lt;code&gt;socket&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;http_addr&#34;&gt;http_addr&lt;/h3&gt;
&lt;p&gt;The host for the server to listen on. If your machine has more than one network interface, you can use this setting to expose the Grafana service on only one network interface and not have it available on others, such as the loopback interface. An empty value is equivalent to setting the value to &lt;code&gt;0.0.0.0&lt;/code&gt;, which means the Grafana service binds to all interfaces.&lt;/p&gt;
&lt;p&gt;In environments where network address translation (NAT) is used, ensure you use the network interface address and not a final public address; otherwise, you might see errors such as &lt;code&gt;bind: cannot assign requested address&lt;/code&gt; in the logs.&lt;/p&gt;
&lt;h3 id=&#34;http_port&#34;&gt;http_port&lt;/h3&gt;
&lt;p&gt;The port to bind to, defaults to &lt;code&gt;3000&lt;/code&gt;. To use port 80 you need to either give the Grafana binary permission for example:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ sudo setcap &amp;#39;cap_net_bind_service=&amp;#43;ep&amp;#39; /usr/sbin/grafana-server&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Or redirect port 80 to the Grafana port using:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Another way is to put a web server like Nginx or Apache in front of Grafana and have them proxy requests to Grafana.&lt;/p&gt;
&lt;h3 id=&#34;domain&#34;&gt;domain&lt;/h3&gt;
&lt;p&gt;This setting is only used in as a part of the &lt;code&gt;root_url&lt;/code&gt; setting (see below). Important if you use GitHub or Google OAuth.&lt;/p&gt;
&lt;h3 id=&#34;enforce_domain&#34;&gt;enforce_domain&lt;/h3&gt;
&lt;p&gt;Redirect to correct domain if the host header does not match the domain. Prevents DNS rebinding attacks. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;root_url&#34;&gt;root_url&lt;/h3&gt;
&lt;p&gt;This is the full URL used to access Grafana from a web browser. This is
important if you use Google or GitHub OAuth authentication (for the
callback URL to be correct).&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This setting is also important if you have a reverse proxy
in front of Grafana that exposes it through a subpath. In that
case add the subpath to the end of this URL setting.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;serve_from_sub_path&#34;&gt;serve_from_sub_path&lt;/h3&gt;
&lt;p&gt;Serve Grafana from subpath specified in &lt;code&gt;root_url&lt;/code&gt; setting. By default it is set to &lt;code&gt;false&lt;/code&gt; for compatibility reasons.&lt;/p&gt;
&lt;p&gt;By enabling this setting and using a subpath in &lt;code&gt;root_url&lt;/code&gt; above, e.g.&lt;code&gt;root_url = http://localhost:3000/grafana&lt;/code&gt;, Grafana is accessible on &lt;code&gt;http://localhost:3000/grafana&lt;/code&gt;. If accessed without subpath Grafana will redirect to
an URL with the subpath.&lt;/p&gt;
&lt;h3 id=&#34;router_logging&#34;&gt;router_logging&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; for Grafana to log all HTTP requests (not just errors). These are logged as Info level events to the Grafana log.&lt;/p&gt;
&lt;h3 id=&#34;static_root_path&#34;&gt;static_root_path&lt;/h3&gt;
&lt;p&gt;The path to the directory where the front end files (HTML, JS, and CSS
files). Defaults to &lt;code&gt;public&lt;/code&gt; which is why the Grafana binary needs to be
executed with working directory set to the installation path.&lt;/p&gt;
&lt;h3 id=&#34;enable_gzip&#34;&gt;enable_gzip&lt;/h3&gt;
&lt;p&gt;Set this option to &lt;code&gt;true&lt;/code&gt; to enable HTTP compression, this can improve
transfer speed and bandwidth utilization. It is recommended that most
users set it to &lt;code&gt;true&lt;/code&gt;. By default it is set to &lt;code&gt;false&lt;/code&gt; for compatibility
reasons.&lt;/p&gt;
&lt;h3 id=&#34;cert_file&#34;&gt;cert_file&lt;/h3&gt;
&lt;p&gt;Path to the certificate file (if &lt;code&gt;protocol&lt;/code&gt; is set to &lt;code&gt;https&lt;/code&gt; or &lt;code&gt;h2&lt;/code&gt;).&lt;/p&gt;
&lt;h3 id=&#34;cert_key&#34;&gt;cert_key&lt;/h3&gt;
&lt;p&gt;Path to the certificate key file (if &lt;code&gt;protocol&lt;/code&gt; is set to &lt;code&gt;https&lt;/code&gt; or &lt;code&gt;h2&lt;/code&gt;).&lt;/p&gt;
&lt;h3 id=&#34;socket_gid&#34;&gt;socket_gid&lt;/h3&gt;
&lt;p&gt;GID where the socket should be set when &lt;code&gt;protocol=socket&lt;/code&gt;.
Make sure that the target group is in the group of Grafana process and that Grafana process is the file owner before you change this setting.
It is recommended to set the gid as http server user gid.
Not set when the value is -1.&lt;/p&gt;
&lt;h3 id=&#34;socket_mode&#34;&gt;socket_mode&lt;/h3&gt;
&lt;p&gt;Mode where the socket should be set when &lt;code&gt;protocol=socket&lt;/code&gt;. Make sure that Grafana process is the file owner before you change this setting.&lt;/p&gt;
&lt;h3 id=&#34;socket&#34;&gt;socket&lt;/h3&gt;
&lt;p&gt;Path where the socket should be created when &lt;code&gt;protocol=socket&lt;/code&gt;. Make sure Grafana has appropriate permissions for that path before you change this setting.&lt;/p&gt;
&lt;h3 id=&#34;cdn_url&#34;&gt;cdn_url&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v7.4 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Specify a full HTTP URL address to the root of your Grafana CDN assets. Grafana will add edition and version paths.&lt;/p&gt;
&lt;p&gt;For example, given a cdn url like &lt;code&gt;https://cdn.myserver.com&lt;/code&gt; grafana will try to load a javascript file from
&lt;code&gt;http://cdn.myserver.com/grafana-oss/7.4.0/public/build/app.&amp;lt;hash&amp;gt;.js&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;read_timeout&#34;&gt;read_timeout&lt;/h3&gt;
&lt;p&gt;Sets the maximum time using a duration format (5s/5m/5ms) before timing out read of an incoming request and closing idle connections.
&lt;code&gt;0&lt;/code&gt; means there is no timeout for reading the request.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;servercustom_response_headers&#34;&gt;[server.custom_response_headers]&lt;/h2&gt;
&lt;p&gt;This setting enables you to specify additional headers that the server adds to HTTP(S) responses.&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;exampleHeader1 = exampleValue1
exampleHeader2 = exampleValue2&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;database&#34;&gt;[database]&lt;/h2&gt;
&lt;p&gt;Grafana needs a database to store users and dashboards (and other
things). By default it is configured to use &lt;a href=&#34;https://www.sqlite.org/index.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;sqlite3&lt;/code&gt;&lt;/a&gt; which is an
embedded database (included in the main Grafana binary).&lt;/p&gt;
&lt;h3 id=&#34;type&#34;&gt;type&lt;/h3&gt;
&lt;p&gt;Either &lt;code&gt;mysql&lt;/code&gt;, &lt;code&gt;postgres&lt;/code&gt; or &lt;code&gt;sqlite3&lt;/code&gt;, it&amp;rsquo;s your choice.&lt;/p&gt;
&lt;h3 id=&#34;host&#34;&gt;host&lt;/h3&gt;
&lt;p&gt;Only applicable to MySQL or Postgres. Includes IP or hostname and port or in case of Unix sockets the path to it.
For example, for MySQL running on the same host as Grafana: &lt;code&gt;host = 127.0.0.1:3306&lt;/code&gt; or with Unix sockets: &lt;code&gt;host = /var/run/mysqld/mysqld.sock&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;name&#34;&gt;name&lt;/h3&gt;
&lt;p&gt;The name of the Grafana database. Leave it set to &lt;code&gt;grafana&lt;/code&gt; or some
other name.&lt;/p&gt;
&lt;h3 id=&#34;user&#34;&gt;user&lt;/h3&gt;
&lt;p&gt;The database user (not applicable for &lt;code&gt;sqlite3&lt;/code&gt;).&lt;/p&gt;
&lt;h3 id=&#34;password&#34;&gt;password&lt;/h3&gt;
&lt;p&gt;The database user&amp;rsquo;s password (not applicable for &lt;code&gt;sqlite3&lt;/code&gt;). If the password contains &lt;code&gt;#&lt;/code&gt; or &lt;code&gt;;&lt;/code&gt; you have to wrap it with triple quotes. For example &lt;code&gt;&amp;quot;&amp;quot;&amp;quot;#password;&amp;quot;&amp;quot;&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;url&#34;&gt;url&lt;/h3&gt;
&lt;p&gt;Use either URL or the other fields below to configure the database
Example: &lt;code&gt;mysql://user:secret@host:port/database&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;max_idle_conn&#34;&gt;max_idle_conn&lt;/h3&gt;
&lt;p&gt;The maximum number of connections in the idle connection pool.&lt;/p&gt;
&lt;h3 id=&#34;max_open_conn&#34;&gt;max_open_conn&lt;/h3&gt;
&lt;p&gt;The maximum number of open connections to the database.&lt;/p&gt;
&lt;h3 id=&#34;conn_max_lifetime&#34;&gt;conn_max_lifetime&lt;/h3&gt;
&lt;p&gt;Sets the maximum amount of time a connection may be reused. The default is 14400 (which means 14400 seconds or 4 hours). For MySQL, this setting should be shorter than the &lt;a href=&#34;https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_wait_timeout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;wait_timeout&lt;/code&gt;&lt;/a&gt; variable.&lt;/p&gt;
&lt;h3 id=&#34;locking_attempt_timeout_sec&#34;&gt;locking_attempt_timeout_sec&lt;/h3&gt;
&lt;p&gt;For &amp;ldquo;mysql&amp;rdquo;, if the &lt;code&gt;migrationLocking&lt;/code&gt; feature toggle is set, specify the time (in seconds) to wait before failing to lock the database for the migrations. Default is 0.&lt;/p&gt;
&lt;h3 id=&#34;log_queries&#34;&gt;log_queries&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to log the sql calls and execution times.&lt;/p&gt;
&lt;h3 id=&#34;ssl_mode&#34;&gt;ssl_mode&lt;/h3&gt;
&lt;p&gt;For Postgres, use either &lt;code&gt;disable&lt;/code&gt;, &lt;code&gt;require&lt;/code&gt; or &lt;code&gt;verify-full&lt;/code&gt;.
For MySQL, use either &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;, or &lt;code&gt;skip-verify&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;isolation_level&#34;&gt;isolation_level&lt;/h3&gt;
&lt;p&gt;Only the MySQL driver supports isolation levels in Grafana. In case the value is empty, the driver&amp;rsquo;s default isolation level is applied. Available options are &amp;ldquo;READ-UNCOMMITTED&amp;rdquo;, &amp;ldquo;READ-COMMITTED&amp;rdquo;, &amp;ldquo;REPEATABLE-READ&amp;rdquo; or &amp;ldquo;SERIALIZABLE&amp;rdquo;.&lt;/p&gt;
&lt;h3 id=&#34;ca_cert_path&#34;&gt;ca_cert_path&lt;/h3&gt;
&lt;p&gt;The path to the CA certificate to use. On many Linux systems, certs can be found in &lt;code&gt;/etc/ssl/certs&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;client_key_path&#34;&gt;client_key_path&lt;/h3&gt;
&lt;p&gt;The path to the client key. Only if server requires client authentication.&lt;/p&gt;
&lt;h3 id=&#34;client_cert_path&#34;&gt;client_cert_path&lt;/h3&gt;
&lt;p&gt;The path to the client cert. Only if server requires client authentication.&lt;/p&gt;
&lt;h3 id=&#34;server_cert_name&#34;&gt;server_cert_name&lt;/h3&gt;
&lt;p&gt;The common name field of the certificate used by the &lt;code&gt;mysql&lt;/code&gt; or &lt;code&gt;postgres&lt;/code&gt; server. Not necessary if &lt;code&gt;ssl_mode&lt;/code&gt; is set to &lt;code&gt;skip-verify&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;path&#34;&gt;path&lt;/h3&gt;
&lt;p&gt;Only applicable for &lt;code&gt;sqlite3&lt;/code&gt; database. The file path where the database
will be stored.&lt;/p&gt;
&lt;h3 id=&#34;cache_mode&#34;&gt;cache_mode&lt;/h3&gt;
&lt;p&gt;For &amp;ldquo;sqlite3&amp;rdquo; only. &lt;a href=&#34;https://www.sqlite.org/sharedcache.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Shared cache&lt;/a&gt; setting used for connecting to the database. (private, shared)
Defaults to &lt;code&gt;private&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;wal&#34;&gt;wal&lt;/h3&gt;
&lt;p&gt;For &amp;ldquo;sqlite3&amp;rdquo; only. Setting to enable/disable &lt;a href=&#34;https://sqlite.org/wal.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Write-Ahead Logging&lt;/a&gt;. The default value is &lt;code&gt;false&lt;/code&gt; (disabled).&lt;/p&gt;
&lt;h3 id=&#34;query_retries&#34;&gt;query_retries&lt;/h3&gt;
&lt;p&gt;This setting applies to &lt;code&gt;sqlite&lt;/code&gt; only and controls the number of times the system retries a query when the database is locked. The default value is &lt;code&gt;0&lt;/code&gt; (disabled).&lt;/p&gt;
&lt;h3 id=&#34;transaction_retries&#34;&gt;transaction_retries&lt;/h3&gt;
&lt;p&gt;This setting applies to &lt;code&gt;sqlite&lt;/code&gt; only and controls the number of times the system retries a transaction when the database is locked. The default value is &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;instrument_queries&#34;&gt;instrument_queries&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to add metrics and tracing for database queries. The default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;remote_cache&#34;&gt;[remote_cache]&lt;/h2&gt;
&lt;p&gt;Caches authentication details and session information in the configured database, Redis or Memcached. This setting does not configure &lt;a href=&#34;../../administration/data-source-management/#query-and-resource-caching&#34;&gt;Query Caching in Grafana Enterprise&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;type-1&#34;&gt;type&lt;/h3&gt;
&lt;p&gt;Either &lt;code&gt;redis&lt;/code&gt;, &lt;code&gt;memcached&lt;/code&gt;, or &lt;code&gt;database&lt;/code&gt;. Defaults to &lt;code&gt;database&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;connstr&#34;&gt;connstr&lt;/h3&gt;
&lt;p&gt;The remote cache connection string. The format depends on the &lt;code&gt;type&lt;/code&gt; of the remote cache. Options are &lt;code&gt;database&lt;/code&gt;, &lt;code&gt;redis&lt;/code&gt;, and &lt;code&gt;memcache&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;database-1&#34;&gt;database&lt;/h4&gt;
&lt;p&gt;Leave empty when using &lt;code&gt;database&lt;/code&gt; since it will use the primary database.&lt;/p&gt;
&lt;h4 id=&#34;redis&#34;&gt;redis&lt;/h4&gt;
&lt;p&gt;Example connstr: &lt;code&gt;addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;addr&lt;/code&gt; is the host &lt;code&gt;:&lt;/code&gt; port of the redis server.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pool_size&lt;/code&gt; (optional) is the number of underlying connections that can be made to redis.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;db&lt;/code&gt; (optional) is the number identifier of the redis database you want to use.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ssl&lt;/code&gt; (optional) is if SSL should be used to connect to redis server. The value may be &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;false&lt;/code&gt;, or &lt;code&gt;insecure&lt;/code&gt;. Setting the value to &lt;code&gt;insecure&lt;/code&gt; skips verification of the certificate chain and hostname when making the connection.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;memcache&#34;&gt;memcache&lt;/h4&gt;
&lt;p&gt;Example connstr: &lt;code&gt;127.0.0.1:11211&lt;/code&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;dataproxy&#34;&gt;[dataproxy]&lt;/h2&gt;
&lt;h3 id=&#34;logging&#34;&gt;logging&lt;/h3&gt;
&lt;p&gt;This enables data proxy logging, default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;timeout&#34;&gt;timeout&lt;/h3&gt;
&lt;p&gt;How long the data proxy should wait before timing out. Default is 30 seconds.&lt;/p&gt;
&lt;p&gt;This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set.&lt;/p&gt;
&lt;h3 id=&#34;keep_alive_seconds&#34;&gt;keep_alive_seconds&lt;/h3&gt;
&lt;p&gt;Interval between keep-alive probes. Default is &lt;code&gt;30&lt;/code&gt; seconds. For more details check the &lt;a href=&#34;https://golang.org/pkg/net/#Dialer.KeepAlive&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Dialer.KeepAlive&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h3 id=&#34;tls_handshake_timeout_seconds&#34;&gt;tls_handshake_timeout_seconds&lt;/h3&gt;
&lt;p&gt;The length of time that Grafana will wait for a successful TLS handshake with the datasource. Default is &lt;code&gt;10&lt;/code&gt; seconds. For more details check the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.TLSHandshakeTimeout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Transport.TLSHandshakeTimeout&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h3 id=&#34;expect_continue_timeout_seconds&#34;&gt;expect_continue_timeout_seconds&lt;/h3&gt;
&lt;p&gt;The length of time that Grafana will wait for a datasource’s first response headers after fully writing the request headers, if the request has an “Expect: 100-continue” header. A value of &lt;code&gt;0&lt;/code&gt; will result in the body being sent immediately. Default is &lt;code&gt;1&lt;/code&gt; second. For more details check the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.ExpectContinueTimeout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Transport.ExpectContinueTimeout&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h3 id=&#34;max_conns_per_host&#34;&gt;max_conns_per_host&lt;/h3&gt;
&lt;p&gt;Optionally limits the total number of connections per host, including connections in the dialing, active, and idle states. On limit violation, dials are blocked. A value of &lt;code&gt;0&lt;/code&gt; means that there are no limits. Default is &lt;code&gt;0&lt;/code&gt;.
For more details check the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.MaxConnsPerHost&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Transport.MaxConnsPerHost&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h3 id=&#34;max_idle_connections&#34;&gt;max_idle_connections&lt;/h3&gt;
&lt;p&gt;The maximum number of idle connections that Grafana will maintain. Default is &lt;code&gt;100&lt;/code&gt;. For more details check the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.MaxIdleConns&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Transport.MaxIdleConns&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h3 id=&#34;idle_conn_timeout_seconds&#34;&gt;idle_conn_timeout_seconds&lt;/h3&gt;
&lt;p&gt;The length of time that Grafana maintains idle connections before closing them. Default is &lt;code&gt;90&lt;/code&gt; seconds. For more details check the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.IdleConnTimeout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Transport.IdleConnTimeout&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h3 id=&#34;send_user_header&#34;&gt;send_user_header&lt;/h3&gt;
&lt;p&gt;If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;response_limit&#34;&gt;response_limit&lt;/h3&gt;
&lt;p&gt;Limits the amount of bytes that will be read/accepted from responses of outgoing HTTP requests. Default is &lt;code&gt;0&lt;/code&gt; which means disabled.&lt;/p&gt;
&lt;h3 id=&#34;row_limit&#34;&gt;row_limit&lt;/h3&gt;
&lt;p&gt;Limits the number of rows that Grafana will process from SQL (relational) data sources. Default is &lt;code&gt;1000000&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;user_agent&#34;&gt;user_agent&lt;/h3&gt;
&lt;p&gt;Sets a custom value for the &lt;code&gt;User-Agent&lt;/code&gt; header for outgoing data proxy requests. If empty, the default value is &lt;code&gt;Grafana/&amp;lt;BuildVersion&amp;gt;&lt;/code&gt; (for example &lt;code&gt;Grafana/9.0.0&lt;/code&gt;).&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;analytics&#34;&gt;[analytics]&lt;/h2&gt;
&lt;h3 id=&#34;enabled&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;This option is also known as &lt;em&gt;usage analytics&lt;/em&gt;. When &lt;code&gt;false&lt;/code&gt;, this option disables the writers that read/write from and to the Grafana databases. The default
value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;reporting_enabled&#34;&gt;reporting_enabled&lt;/h3&gt;
&lt;p&gt;When enabled Grafana will send anonymous usage statistics to
&lt;code&gt;stats.grafana.org&lt;/code&gt;. No IP addresses are being tracked, only simple counters to
track running instances, versions, dashboard and error counts. It is very helpful
to us, so please leave this enabled. Counters are sent every 24 hours. Default
value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;check_for_updates&#34;&gt;check_for_updates&lt;/h3&gt;
&lt;p&gt;Set to false, disables checking for new versions of Grafana from Grafana&amp;rsquo;s GitHub repository. When enabled, the check for a new version runs every 10 minutes. It will notify, via the UI, when a new version is available. The check itself will not prompt any auto-updates of the Grafana software, nor will it send any sensitive information.&lt;/p&gt;
&lt;h3 id=&#34;check_for_plugin_updates&#34;&gt;check_for_plugin_updates&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v8.5.0 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Set to false disables checking for new versions of installed plugins from &lt;a href=&#34;/&#34;&gt;https://grafana.com&lt;/a&gt;. When enabled, the check for a new plugin runs every 10 minutes. It will notify, via the UI, when a new plugin update exists. The check itself will not prompt any auto-updates of the plugin, nor will it send any sensitive information.&lt;/p&gt;
&lt;h3 id=&#34;google_analytics_ua_id&#34;&gt;google_analytics_ua_id&lt;/h3&gt;
&lt;p&gt;If you want to track Grafana usage via Google analytics specify &lt;em&gt;your&lt;/em&gt; Universal
Analytics ID here. By default this feature is disabled.&lt;/p&gt;
&lt;h3 id=&#34;google_analytics_4_id&#34;&gt;google_analytics_4_id&lt;/h3&gt;
&lt;p&gt;If you want to track Grafana usage via Google Analytics 4 specify &lt;em&gt;your&lt;/em&gt; GA4 ID here. By default this feature is disabled.&lt;/p&gt;
&lt;h3 id=&#34;google_tag_manager_id&#34;&gt;google_tag_manager_id&lt;/h3&gt;
&lt;p&gt;Google Tag Manager ID, only enabled if you enter an ID here.&lt;/p&gt;
&lt;h3 id=&#34;rudderstack_write_key&#34;&gt;rudderstack_write_key&lt;/h3&gt;
&lt;p&gt;If you want to track Grafana usage via Rudderstack specify &lt;em&gt;your&lt;/em&gt; Rudderstack
Write Key here. The &lt;code&gt;rudderstack_data_plane_url&lt;/code&gt; must also be provided for this
feature to be enabled. By default this feature is disabled.&lt;/p&gt;
&lt;h3 id=&#34;rudderstack_data_plane_url&#34;&gt;rudderstack_data_plane_url&lt;/h3&gt;
&lt;p&gt;Rudderstack data plane url that will receive Rudderstack events. The
&lt;code&gt;rudderstack_write_key&lt;/code&gt; must also be provided for this feature to be enabled.&lt;/p&gt;
&lt;h3 id=&#34;rudderstack_sdk_url&#34;&gt;rudderstack_sdk_url&lt;/h3&gt;
&lt;p&gt;Optional. If tracking with Rudderstack is enabled, you can provide a custom
URL to load the Rudderstack SDK.&lt;/p&gt;
&lt;h3 id=&#34;rudderstack_config_url&#34;&gt;rudderstack_config_url&lt;/h3&gt;
&lt;p&gt;Optional. If tracking with Rudderstack is enabled, you can provide a custom
URL to load the Rudderstack config.&lt;/p&gt;
&lt;h3 id=&#34;application_insights_connection_string&#34;&gt;application_insights_connection_string&lt;/h3&gt;
&lt;p&gt;If you want to track Grafana usage via Azure Application Insights, then specify &lt;em&gt;your&lt;/em&gt; Application Insights connection string. Since the connection string contains semicolons, you need to wrap it in backticks (`). By default, tracking usage is disabled.&lt;/p&gt;
&lt;h3 id=&#34;application_insights_endpoint_url&#34;&gt;application_insights_endpoint_url&lt;/h3&gt;
&lt;p&gt;Optionally, use this option to override the default endpoint address for Application Insights data collecting. For details, refer to the &lt;a href=&#34;https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-endpoints?tabs=js&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Azure documentation&lt;/a&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;feedback_links_enabled&#34;&gt;feedback_links_enabled&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to remove all feedback links from the UI. Default is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;security&#34;&gt;[security]&lt;/h2&gt;
&lt;h3 id=&#34;disable_initial_admin_creation&#34;&gt;disable_initial_admin_creation&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Only available in Grafana v6.5&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Disable creation of admin user on first start of Grafana. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;admin_user&#34;&gt;admin_user&lt;/h3&gt;
&lt;p&gt;The name of the default Grafana Admin user, who has full permissions.
Default is &lt;code&gt;admin&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;admin_password&#34;&gt;admin_password&lt;/h3&gt;
&lt;p&gt;The password of the default Grafana Admin. Set once on first-run. Default is &lt;code&gt;admin&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;admin_email&#34;&gt;admin_email&lt;/h3&gt;
&lt;p&gt;The email of the default Grafana Admin, created on startup. Default is &lt;code&gt;admin@localhost&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;secret_key&#34;&gt;secret_key&lt;/h3&gt;
&lt;p&gt;Used for signing some data source settings like secrets and passwords, the encryption format used is AES-256 in CFB mode. Cannot be changed without requiring an update
to data source settings to re-encode them.&lt;/p&gt;
&lt;h3 id=&#34;disable_gravatar&#34;&gt;disable_gravatar&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to disable the use of Gravatar for user profile images.
Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;data_source_proxy_whitelist&#34;&gt;data_source_proxy_whitelist&lt;/h3&gt;
&lt;p&gt;Define a whitelist of allowed IP addresses or domains, with ports, to be used in data source URLs with the Grafana data source proxy. Format: &lt;code&gt;ip_or_domain:port&lt;/code&gt; separated by spaces. PostgreSQL, MySQL, and MSSQL data sources do not use the proxy and are therefore unaffected by this setting.&lt;/p&gt;
&lt;h3 id=&#34;disable_brute_force_login_protection&#34;&gt;disable_brute_force_login_protection&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to disable &lt;a href=&#34;https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html#account-lockout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;brute force login protection&lt;/a&gt;. Default is &lt;code&gt;false&lt;/code&gt;. An existing user&amp;rsquo;s account will be locked after 5 attempts in 5 minutes.&lt;/p&gt;
&lt;h3 id=&#34;cookie_secure&#34;&gt;cookie_secure&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; if you host Grafana behind HTTPS. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;cookie_samesite&#34;&gt;cookie_samesite&lt;/h3&gt;
&lt;p&gt;Sets the &lt;code&gt;SameSite&lt;/code&gt; cookie attribute and prevents the browser from sending this cookie along with cross-site requests. The main goal is to mitigate the risk of cross-origin information leakage. This setting also provides some protection against cross-site request forgery attacks (CSRF), &lt;a href=&#34;https://owasp.org/www-community/SameSite&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;read more about SameSite here&lt;/a&gt;. Valid values are &lt;code&gt;lax&lt;/code&gt;, &lt;code&gt;strict&lt;/code&gt;, &lt;code&gt;none&lt;/code&gt;, and &lt;code&gt;disabled&lt;/code&gt;. Default is &lt;code&gt;lax&lt;/code&gt;. Using value &lt;code&gt;disabled&lt;/code&gt; does not add any &lt;code&gt;SameSite&lt;/code&gt; attribute to cookies.&lt;/p&gt;
&lt;h3 id=&#34;allow_embedding&#34;&gt;allow_embedding&lt;/h3&gt;
&lt;p&gt;When &lt;code&gt;false&lt;/code&gt;, the HTTP header &lt;code&gt;X-Frame-Options: deny&lt;/code&gt; will be set in Grafana HTTP responses which will instruct
browsers to not allow rendering Grafana in a &lt;code&gt;&amp;lt;frame&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;embed&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;object&amp;gt;&lt;/code&gt;. The main goal is to
mitigate the risk of &lt;a href=&#34;https://owasp.org/www-community/attacks/Clickjacking&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Clickjacking&lt;/a&gt;. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;strict_transport_security&#34;&gt;strict_transport_security&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; if you want to enable HTTP &lt;code&gt;Strict-Transport-Security&lt;/code&gt; (HSTS) response header. Only use this when HTTPS is enabled in your configuration, or when there is another upstream system that ensures your application does HTTPS (like a frontend load balancer). HSTS tells browsers that the site should only be accessed using HTTPS.&lt;/p&gt;
&lt;h3 id=&#34;strict_transport_security_max_age_seconds&#34;&gt;strict_transport_security_max_age_seconds&lt;/h3&gt;
&lt;p&gt;Sets how long a browser should cache HSTS in seconds. Only applied if strict_transport_security is enabled. The default value is &lt;code&gt;86400&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;strict_transport_security_preload&#34;&gt;strict_transport_security_preload&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to enable HSTS &lt;code&gt;preloading&lt;/code&gt; option. Only applied if strict_transport_security is enabled. The default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;strict_transport_security_subdomains&#34;&gt;strict_transport_security_subdomains&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to enable the HSTS includeSubDomains option. Only applied if strict_transport_security is enabled. The default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;x_content_type_options&#34;&gt;x_content_type_options&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable the X-Content-Type-Options response header. The X-Content-Type-Options response HTTP header is a marker used by the server to indicate that the MIME types advertised in the Content-Type headers should not be changed and be followed. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;x_xss_protection&#34;&gt;x_xss_protection&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable the X-XSS-Protection header, which tells browsers to stop pages from loading when they detect reflected cross-site scripting (XSS) attacks. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;content_security_policy&#34;&gt;content_security_policy&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to add the Content-Security-Policy header to your requests. CSP allows to control resources that the user agent can load and helps prevent XSS attacks.&lt;/p&gt;
&lt;h3 id=&#34;content_security_policy_template&#34;&gt;content_security_policy_template&lt;/h3&gt;
&lt;p&gt;Set the policy template that will be used when adding the &lt;code&gt;Content-Security-Policy&lt;/code&gt; header to your requests. &lt;code&gt;$NONCE&lt;/code&gt; in the template includes a random nonce.&lt;/p&gt;
&lt;h3 id=&#34;content_security_policy_report_only&#34;&gt;content_security_policy_report_only&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to add the &lt;code&gt;Content-Security-Policy-Report-Only&lt;/code&gt; header to your requests. CSP in Report Only mode enables you to experiment with policies by monitoring their effects without enforcing them.
You can enable both policies simultaneously.&lt;/p&gt;
&lt;h3 id=&#34;content_security_policy_template-1&#34;&gt;content_security_policy_template&lt;/h3&gt;
&lt;p&gt;Set the policy template that will be used when adding the &lt;code&gt;Content-Security-Policy-Report-Only&lt;/code&gt; header to your requests. &lt;code&gt;$NONCE&lt;/code&gt; in the template includes a random nonce.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;angular_support_enabled&#34;&gt;angular_support_enabled&lt;/h3&gt;
&lt;p&gt;This currently defaults to &lt;code&gt;true&lt;/code&gt; but will default to &lt;code&gt;false&lt;/code&gt; in a future release. When set to false the angular framework and support components will not be loaded. This means that
all &lt;a href=&#34;../../developers/angular_deprecation/angular-plugins/&#34;&gt;plugins&lt;/a&gt; and core features that depend on angular support will stop working.&lt;/p&gt;
&lt;p&gt;The core features that depend on angular are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Old graph panel&lt;/li&gt;
&lt;li&gt;Old table panel&lt;/li&gt;
&lt;li&gt;Legacy alerting edit rule UI&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These features each have supported alternatives, and we recommend using them.&lt;/p&gt;
&lt;h3 id=&#34;csrf_trusted_origins&#34;&gt;csrf_trusted_origins&lt;/h3&gt;
&lt;p&gt;List of additional allowed URLs to pass by the CSRF check. Suggested when authentication comes from an IdP.&lt;/p&gt;
&lt;h3 id=&#34;csrf_additional_headers&#34;&gt;csrf_additional_headers&lt;/h3&gt;
&lt;p&gt;List of allowed headers to be set by the user. Suggested to use for if authentication lives behind reverse proxies.&lt;/p&gt;
&lt;h3 id=&#34;csrf_always_check&#34;&gt;csrf_always_check&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to execute the CSRF check even if the login cookie is not in a request (default &lt;code&gt;false&lt;/code&gt;).&lt;/p&gt;
&lt;h2 id=&#34;snapshots&#34;&gt;[snapshots]&lt;/h2&gt;
&lt;h3 id=&#34;enabled-1&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable the snapshot feature (default &lt;code&gt;true&lt;/code&gt;).&lt;/p&gt;
&lt;h3 id=&#34;external_enabled&#34;&gt;external_enabled&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable external snapshot publish endpoint (default &lt;code&gt;true&lt;/code&gt;).&lt;/p&gt;
&lt;h3 id=&#34;external_snapshot_url&#34;&gt;external_snapshot_url&lt;/h3&gt;
&lt;p&gt;Set root URL to a Grafana instance where you want to publish external snapshots (defaults to &lt;a href=&#34;https://snapshots.raintank.io&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://snapshots.raintank.io&lt;/a&gt;).&lt;/p&gt;
&lt;h3 id=&#34;external_snapshot_name&#34;&gt;external_snapshot_name&lt;/h3&gt;
&lt;p&gt;Set name for external snapshot button. Defaults to &lt;code&gt;Publish to snapshots.raintank.io&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;public_mode&#34;&gt;public_mode&lt;/h3&gt;
&lt;p&gt;Set to true to enable this Grafana instance to act as an external snapshot server and allow unauthenticated requests for creating and deleting snapshots. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;snapshot_remove_expired&#34;&gt;snapshot_remove_expired&lt;/h3&gt;
&lt;p&gt;Enable this to automatically remove expired snapshots. Default is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;dashboards&#34;&gt;[dashboards]&lt;/h2&gt;
&lt;h3 id=&#34;versions_to_keep&#34;&gt;versions_to_keep&lt;/h3&gt;
&lt;p&gt;Number dashboard versions to keep (per dashboard). Default: &lt;code&gt;20&lt;/code&gt;, Minimum: &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;min_refresh_interval&#34;&gt;min_refresh_interval&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Only available in Grafana v6.7&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This feature prevents users from setting the dashboard refresh interval to a lower value than a given interval value. The default interval value is 5 seconds.
The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. &lt;code&gt;30s&lt;/code&gt; or &lt;code&gt;1m&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;As of Grafana v7.3, this also limits the refresh interval options in Explore.&lt;/p&gt;
&lt;h3 id=&#34;default_home_dashboard_path&#34;&gt;default_home_dashboard_path&lt;/h3&gt;
&lt;p&gt;Path to the default home dashboard. If this value is empty, then Grafana uses StaticRootPath &#43; &amp;ldquo;dashboards/home.json&amp;rdquo;.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;On Linux, Grafana uses &lt;code&gt;/usr/share/grafana/public/dashboards/home.json&lt;/code&gt; as the default home dashboard location.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;hr /&gt;
&lt;h2 id=&#34;sql_datasources&#34;&gt;[sql_datasources]&lt;/h2&gt;
&lt;h3 id=&#34;max_open_conns_default&#34;&gt;max_open_conns_default&lt;/h3&gt;
&lt;p&gt;For SQL data sources (MySql, Postgres, MSSQL) you can override the default maximum number of open connections (default: 100). The value configured in data source settings will be preferred over the default value.&lt;/p&gt;
&lt;h3 id=&#34;max_idle_conns_default&#34;&gt;max_idle_conns_default&lt;/h3&gt;
&lt;p&gt;For SQL data sources (MySql, Postgres, MSSQL) you can override the default allowed number of idle connections (default: 100). The value configured in data source settings will be preferred over the default value.&lt;/p&gt;
&lt;h3 id=&#34;max_conn_lifetime_default&#34;&gt;max_conn_lifetime_default&lt;/h3&gt;
&lt;p&gt;For SQL data sources (MySql, Postgres, MSSQL) you can override the default maximum connection lifetime specified in seconds (default: 14400). The value configured in data source settings will be preferred over the default value.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&#34;users&#34;&gt;[users]&lt;/h2&gt;
&lt;h3 id=&#34;allow_sign_up&#34;&gt;allow_sign_up&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to prohibit users from being able to sign up / create
user accounts. Default is &lt;code&gt;false&lt;/code&gt;. The admin user can still create
users. For more information about creating a user, refer to &lt;a href=&#34;../../administration/user-management/server-user-management/#add-a-user&#34;&gt;Add a user&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;allow_org_create&#34;&gt;allow_org_create&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to prohibit users from creating new organizations.
Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;auto_assign_org&#34;&gt;auto_assign_org&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to automatically add new users to the main organization
(id 1). When set to &lt;code&gt;false&lt;/code&gt;, new users automatically cause a new
organization to be created for that new user. The organization will be
created even if the &lt;code&gt;allow_org_create&lt;/code&gt; setting is set to &lt;code&gt;false&lt;/code&gt;. Default is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;auto_assign_org_id&#34;&gt;auto_assign_org_id&lt;/h3&gt;
&lt;p&gt;Set this value to automatically add new users to the provided org.
This requires &lt;code&gt;auto_assign_org&lt;/code&gt; to be set to &lt;code&gt;true&lt;/code&gt;. Please make sure
that this organization already exists. Default is 1.&lt;/p&gt;
&lt;h3 id=&#34;auto_assign_org_role&#34;&gt;auto_assign_org_role&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;auto_assign_org_role&lt;/code&gt; setting determines the default role assigned to new users
in the main organization (if &lt;code&gt;auto_assign_org&lt;/code&gt; setting is set to true).
The available options are &lt;code&gt;Viewer&lt;/code&gt; (default), &lt;code&gt;Admin&lt;/code&gt;, &lt;code&gt;Editor&lt;/code&gt;, and &lt;code&gt;None&lt;/code&gt;. For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;auto_assign_org_role = Viewer&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;verify_email_enabled&#34;&gt;verify_email_enabled&lt;/h3&gt;
&lt;p&gt;Require email validation before sign up completes. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;login_hint&#34;&gt;login_hint&lt;/h3&gt;
&lt;p&gt;Text used as placeholder text on login page for login/username input.&lt;/p&gt;
&lt;h3 id=&#34;password_hint&#34;&gt;password_hint&lt;/h3&gt;
&lt;p&gt;Text used as placeholder text on login page for password input.&lt;/p&gt;
&lt;h3 id=&#34;default_theme&#34;&gt;default_theme&lt;/h3&gt;
&lt;p&gt;Sets the default UI theme: &lt;code&gt;dark&lt;/code&gt;, &lt;code&gt;light&lt;/code&gt;, or &lt;code&gt;system&lt;/code&gt;. The default theme is &lt;code&gt;dark&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;system&lt;/code&gt; matches the user&amp;rsquo;s system theme.&lt;/p&gt;
&lt;h3 id=&#34;default_language&#34;&gt;default_language&lt;/h3&gt;
&lt;p&gt;This setting configures the default UI language, which must be a supported IETF language tag, such as &lt;code&gt;en-US&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;home_page&#34;&gt;home_page&lt;/h3&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;external-user-management&#34;&gt;External user management&lt;/h3&gt;
&lt;p&gt;If you manage users externally you can replace the user invite button for organizations with a link to an external site together with a description.&lt;/p&gt;
&lt;h3 id=&#34;viewers_can_edit&#34;&gt;viewers_can_edit&lt;/h3&gt;
&lt;p&gt;Viewers can access and use &lt;a href=&#34;../../explore/&#34;&gt;Explore&lt;/a&gt; and perform temporary edits on panels in dashboards they have access to. They cannot save their changes. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;editors_can_admin&#34;&gt;editors_can_admin&lt;/h3&gt;
&lt;p&gt;Editors can administrate dashboards, folders and teams they create.
Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;user_invite_max_lifetime_duration&#34;&gt;user_invite_max_lifetime_duration&lt;/h3&gt;
&lt;p&gt;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 &lt;code&gt;24h&lt;/code&gt; (24 hours). The minimum supported duration is &lt;code&gt;15m&lt;/code&gt; (15 minutes).&lt;/p&gt;
&lt;h3 id=&#34;hidden_users&#34;&gt;hidden_users&lt;/h3&gt;
&lt;p&gt;This is a comma-separated list of usernames. Users specified here are hidden in the Grafana UI. They are still visible to Grafana administrators and to themselves.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;auth&#34;&gt;[auth]&lt;/h2&gt;
&lt;p&gt;Grafana provides many ways to authenticate users. Refer to the Grafana &lt;a href=&#34;../configure-security/configure-authentication/&#34;&gt;Authentication overview&lt;/a&gt; and other authentication documentation for detailed instructions on how to set up and configure authentication.&lt;/p&gt;
&lt;h3 id=&#34;login_cookie_name&#34;&gt;login_cookie_name&lt;/h3&gt;
&lt;p&gt;The cookie name for storing the auth token. Default is &lt;code&gt;grafana_session&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;login_maximum_inactive_lifetime_duration&#34;&gt;login_maximum_inactive_lifetime_duration&lt;/h3&gt;
&lt;p&gt;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 (token_rotation_interval_minutes).&lt;/p&gt;
&lt;h3 id=&#34;login_maximum_lifetime_duration&#34;&gt;login_maximum_lifetime_duration&lt;/h3&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;h3 id=&#34;token_rotation_interval_minutes&#34;&gt;token_rotation_interval_minutes&lt;/h3&gt;
&lt;p&gt;How often auth tokens are rotated for authenticated users when the user is active. The default is each 10 minutes.&lt;/p&gt;
&lt;h3 id=&#34;disable_login_form&#34;&gt;disable_login_form&lt;/h3&gt;
&lt;p&gt;Set to true to disable (hide) the login form, useful if you use OAuth. Default is false.&lt;/p&gt;
&lt;h3 id=&#34;disable_signout_menu&#34;&gt;disable_signout_menu&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to disable the signout link in the side menu. This is useful if you use auth.proxy. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;signout_redirect_url&#34;&gt;signout_redirect_url&lt;/h3&gt;
&lt;p&gt;URL to redirect the user to after they sign out.&lt;/p&gt;
&lt;h3 id=&#34;oauth_auto_login&#34;&gt;oauth_auto_login&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This option is deprecated - use &lt;code&gt;auto_login&lt;/code&gt; option for specific OAuth provider instead.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to attempt login with OAuth automatically, skipping the login screen.
This setting is ignored if multiple OAuth providers are configured. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;oauth_state_cookie_max_age&#34;&gt;oauth_state_cookie_max_age&lt;/h3&gt;
&lt;p&gt;How many seconds the OAuth state cookie lives before being deleted. Default is &lt;code&gt;600&lt;/code&gt; (seconds)
Administrators can increase this if they experience OAuth login state mismatch errors.&lt;/p&gt;
&lt;h3 id=&#34;oauth_skip_org_role_update_sync&#34;&gt;oauth_skip_org_role_update_sync&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This option is deprecated in favor of OAuth provider specific &lt;code&gt;skip_org_role_sync&lt;/code&gt; settings. The following sections explain settings for each provider.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;If you want to change the &lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt; setting to &lt;code&gt;false&lt;/code&gt;, then for each provider you have set up, use the &lt;code&gt;skip_org_role_sync&lt;/code&gt; setting to specify whether you want to skip the synchronization.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-warning&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Warning&lt;/p&gt;&lt;p&gt;Currently if no organization role mapping is found for a user, Grafana doesn&amp;rsquo;t update the user&amp;rsquo;s organization role.
With Grafana 10, if &lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt; option is set to &lt;code&gt;false&lt;/code&gt;, users with no mapping will be
reset to the default organization role on every login. &lt;a href=&#34;#auto_assign_org_role&#34;&gt;See &lt;code&gt;auto_assign_org_role&lt;/code&gt; option&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;skip_org_role_sync&#34;&gt;skip_org_role_sync&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt; prevents the synchronization of organization roles for a specific OAuth integration, while the deprecated setting &lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt; affects all configured OAuth providers.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt; default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;With &lt;code&gt;skip_org_role_sync&lt;/code&gt; set to &lt;code&gt;false&lt;/code&gt;, the users&amp;rsquo; organization and role is reset on every new login, based on the external provider&amp;rsquo;s role. See your provider in the tables below.&lt;/p&gt;
&lt;p&gt;With &lt;code&gt;skip_org_role_sync&lt;/code&gt; set to &lt;code&gt;true&lt;/code&gt;, when a user logs in for the first time, Grafana sets the organization role based on the value specified in &lt;code&gt;auto_assign_org_role&lt;/code&gt; and forces the organization to &lt;code&gt;auto_assign_org_id&lt;/code&gt; when specified, otherwise it falls back to OrgID &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Use this setting when you want to manage the organization roles of your users from within Grafana and be able to manually assign them to multiple organizations, or to prevent synchronization conflicts when they can be synchronized from another provider.&lt;/p&gt;
&lt;p&gt;The behavior of &lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt; and &lt;code&gt;skip_org_role_sync&lt;/code&gt;, can be seen in the tables below:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[auth.grafana_com]&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;Modifiable&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Synchronize user organization role with Grafana.com role. If no role is provided, &lt;code&gt;auto_assign_org_role&lt;/code&gt; is set.&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers&amp;rsquo; users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for Grafana.com users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for Grafana.com users and all other OAuth providers. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;[auth.azuread]&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;Modifiable&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Synchronize user organization role with AzureAD role. If no role is provided, &lt;code&gt;auto_assign_org_role&lt;/code&gt; is set.&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers&amp;rsquo; users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for AzureAD users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for AzureAD users and all other OAuth providers. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;[auth.google]&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;Modifiable&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;User organization role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt; and cannot be changed.&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;User organization role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt; and can be changed in Grafana.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;User organization role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt; and can be changed in Grafana.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;User organization role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt; and can be changed in Grafana.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;

&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;For GitLab, GitHub, Okta, Generic OAuth providers, Grafana synchronizes organization roles and sets Grafana Admins. The &lt;code&gt;allow_assign_grafana_admin&lt;/code&gt; setting is also accounted for, to allow or not setting the Grafana Admin role from the external provider.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;[auth.github]&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;Modifiable&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Synchronize user organization role with GitHub role. If no role is provided, &lt;code&gt;auto_assign_org_role&lt;/code&gt; is set.&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers&amp;rsquo; users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role and Grafana Admin synchronization for GitHub users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers and skips Grafana Admin synchronization for GitHub users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;[auth.gitlab]&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;Modifiable&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Synchronize user organization role with Gitlab role. If no role is provided, &lt;code&gt;auto_assign_org_role&lt;/code&gt; is set.&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers&amp;rsquo; users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role and Grafana Admin synchronization for Gitlab users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers and skips Grafana Admin synchronization for Gitlab users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;[auth.generic_oauth]&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;Modifiable&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Synchronize user organization role with the provider&amp;rsquo;s role. If no role is provided, &lt;code&gt;auto_assign_org_role&lt;/code&gt; is set.&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers&amp;rsquo; users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role and Grafana Admin synchronization for the provider&amp;rsquo;s users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers and skips Grafana Admin synchronization for the provider&amp;rsquo;s users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;[auth.okta]&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;Modifiable&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Synchronize user organization role with Okta role. If no role is provided, &lt;code&gt;auto_assign_org_role&lt;/code&gt; is set.&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers&amp;rsquo; users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role and Grafana Admin synchronization for Okta users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skips organization role synchronization for all OAuth providers and skips Grafana Admin synchronization for Okta users. Role is set to &lt;code&gt;auto_assign_org_role&lt;/code&gt;.&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h4 id=&#34;example-skip_org_role_sync&#34;&gt;Example skip_org_role_sync&lt;/h4&gt;
&lt;p&gt;[auth.google]&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Resulting Org Role&lt;/strong&gt;&lt;/th&gt;
              &lt;th&gt;&lt;strong&gt;Example Scenario&lt;/strong&gt;&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Synchronized with Google Auth organization roles&lt;/td&gt;
              &lt;td&gt;A user logs in to Grafana using their Google account and their organization role is automatically set based on their role in Google.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;Skipped synchronization of organization roles from all OAuth providers&lt;/td&gt;
              &lt;td&gt;A user logs in to Grafana using their Google account and their organization role is &lt;strong&gt;not&lt;/strong&gt; set based on their role. But Grafana Administrators can modify the role from the UI.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;false&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skipped synchronization of organization roles Google&lt;/td&gt;
              &lt;td&gt;A user logs in to Grafana using their Google account and their organization role is &lt;strong&gt;not&lt;/strong&gt; set based on their role in Google. But Grafana Administrators can modify the role from the UI.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;true&lt;/td&gt;
              &lt;td&gt;Skipped synchronization of organization roles from all OAuth providers including Google&lt;/td&gt;
              &lt;td&gt;A user logs in to Grafana using their Google account and their organization role is &lt;strong&gt;not&lt;/strong&gt; set based on their role in Google. But Grafana Administrators can modify the role from the UI.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;api_key_max_seconds_to_live&#34;&gt;api_key_max_seconds_to_live&lt;/h3&gt;
&lt;p&gt;Limit of API key seconds to live before expiration. Default is -1 (unlimited).&lt;/p&gt;
&lt;h3 id=&#34;sigv4_auth_enabled&#34;&gt;sigv4_auth_enabled&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Only available in Grafana 7.3&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to enable the AWS Signature Version 4 Authentication option for HTTP-based datasources. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;sigv4_verbose_logging&#34;&gt;sigv4_verbose_logging&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Only available in Grafana 8.4&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to enable verbose request signature logging when AWS Signature Version 4 Authentication is enabled. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authanonymous&#34;&gt;[auth.anonymous]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/grafana/#anonymous-authentication&#34;&gt;Anonymous authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authgithub&#34;&gt;[auth.github]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/github/&#34;&gt;GitHub OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authgitlab&#34;&gt;[auth.gitlab]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/gitlab/&#34;&gt;Gitlab OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authgoogle&#34;&gt;[auth.google]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/google/&#34;&gt;Google OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authgrafananet&#34;&gt;[auth.grafananet]&lt;/h2&gt;
&lt;p&gt;Legacy key names, still in the config file so they work in env variables.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authgrafana_com&#34;&gt;[auth.grafana_com]&lt;/h2&gt;
&lt;p&gt;Legacy key names, still in the config file so they work in env variables.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authazuread&#34;&gt;[auth.azuread]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/azuread/&#34;&gt;Azure AD OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authokta&#34;&gt;[auth.okta]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/okta/&#34;&gt;Okta OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authgeneric_oauth&#34;&gt;[auth.generic_oauth]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/generic-oauth/&#34;&gt;Generic OAuth authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authbasic&#34;&gt;[auth.basic]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/#basic-authentication&#34;&gt;Basic authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authproxy&#34;&gt;[auth.proxy]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/auth-proxy/&#34;&gt;Auth proxy authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;authldap&#34;&gt;[auth.ldap]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/ldap/&#34;&gt;LDAP authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;h2 id=&#34;aws&#34;&gt;[aws]&lt;/h2&gt;
&lt;p&gt;You can configure core and external AWS plugins.&lt;/p&gt;
&lt;h3 id=&#34;allowed_auth_providers&#34;&gt;allowed_auth_providers&lt;/h3&gt;
&lt;p&gt;Specify what authentication providers the AWS plugins allow. For a list of allowed providers, refer to the data-source configuration page for a given plugin. If you configure a plugin by provisioning, only providers that are specified in &lt;code&gt;allowed_auth_providers&lt;/code&gt; are allowed.&lt;/p&gt;
&lt;p&gt;Options: &lt;code&gt;default&lt;/code&gt; (AWS SDK default), &lt;code&gt;keys&lt;/code&gt; (Access and secret key), &lt;code&gt;credentials&lt;/code&gt; (Credentials file), &lt;code&gt;ec2_iam_role&lt;/code&gt; (EC2 IAM role)&lt;/p&gt;
&lt;h3 id=&#34;assume_role_enabled&#34;&gt;assume_role_enabled&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable AWS authentication from using an assumed role with temporary security credentials. For details about assume roles, refer to the AWS API reference documentation about the &lt;a href=&#34;https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;AssumeRole&lt;/a&gt; operation.&lt;/p&gt;
&lt;p&gt;If this option is disabled, the &lt;strong&gt;Assume Role&lt;/strong&gt; and the &lt;strong&gt;External Id&lt;/strong&gt; field are removed from the AWS data source configuration page. If the plugin is configured using provisioning, it is possible to use an assumed role as long as &lt;code&gt;assume_role_enabled&lt;/code&gt; is set to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;list_metrics_page_limit&#34;&gt;list_metrics_page_limit&lt;/h3&gt;
&lt;p&gt;Use the &lt;a href=&#34;https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;List Metrics API&lt;/a&gt; option to load metrics for custom namespaces in the CloudWatch data source. By default, the page limit is 500.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;azure&#34;&gt;[azure]&lt;/h2&gt;
&lt;p&gt;Grafana supports additional integration with Azure services when hosted in the Azure Cloud.&lt;/p&gt;
&lt;h3 id=&#34;cloud&#34;&gt;cloud&lt;/h3&gt;
&lt;p&gt;Azure cloud environment where Grafana is hosted:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Azure Cloud&lt;/th&gt;
              &lt;th&gt;Value&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;Microsoft Azure public cloud&lt;/td&gt;
              &lt;td&gt;AzureCloud (&lt;em&gt;default&lt;/em&gt;)&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Microsoft Chinese national cloud&lt;/td&gt;
              &lt;td&gt;AzureChinaCloud&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;US Government cloud&lt;/td&gt;
              &lt;td&gt;AzureUSGovernment&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Microsoft German national cloud (&amp;ldquo;Black Forest&amp;rdquo;)&lt;/td&gt;
              &lt;td&gt;AzureGermanCloud&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;managed_identity_enabled&#34;&gt;managed_identity_enabled&lt;/h3&gt;
&lt;p&gt;Specifies whether Grafana hosted in Azure service with Managed Identity configured (e.g. Azure Virtual Machines instance). Disabled by default, needs to be explicitly enabled.&lt;/p&gt;
&lt;h3 id=&#34;managed_identity_client_id&#34;&gt;managed_identity_client_id&lt;/h3&gt;
&lt;p&gt;The client ID to use for user-assigned managed identity.&lt;/p&gt;
&lt;p&gt;Should be set for user-assigned identity and should be empty for system-assigned identity.&lt;/p&gt;
&lt;h3 id=&#34;workload_identity_enabled&#34;&gt;workload_identity_enabled&lt;/h3&gt;
&lt;p&gt;Specifies whether Azure AD Workload Identity authentication should be enabled in datasources that support it.&lt;/p&gt;
&lt;p&gt;For more documentation on Azure AD Workload Identity, review &lt;a href=&#34;https://azure.github.io/azure-workload-identity/docs/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Azure AD Workload Identity&lt;/a&gt; documentation.&lt;/p&gt;
&lt;p&gt;Disabled by default, needs to be explicitly enabled.&lt;/p&gt;
&lt;h3 id=&#34;workload_identity_tenant_id&#34;&gt;workload_identity_tenant_id&lt;/h3&gt;
&lt;p&gt;Tenant ID of the Azure AD Workload Identity.&lt;/p&gt;
&lt;p&gt;Allows to override default tenant ID of the Azure AD identity associated with the Kubernetes service account.&lt;/p&gt;
&lt;h3 id=&#34;workload_identity_client_id&#34;&gt;workload_identity_client_id&lt;/h3&gt;
&lt;p&gt;Client ID of the Azure AD Workload Identity.&lt;/p&gt;
&lt;p&gt;Allows to override default client ID of the Azure AD identity associated with the Kubernetes service account.&lt;/p&gt;
&lt;h3 id=&#34;workload_identity_token_file&#34;&gt;workload_identity_token_file&lt;/h3&gt;
&lt;p&gt;Custom path to token file for the Azure AD Workload Identity.&lt;/p&gt;
&lt;p&gt;Allows to set a custom path to the projected service account token file.&lt;/p&gt;
&lt;h2 id=&#34;authjwt&#34;&gt;[auth.jwt]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-security/configure-authentication/jwt/&#34;&gt;JWT authentication&lt;/a&gt; for more information.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id=&#34;smtp&#34;&gt;[smtp]&lt;/h2&gt;
&lt;p&gt;Email server settings.&lt;/p&gt;
&lt;h3 id=&#34;enabled-2&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable this to allow Grafana to send email. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;host-1&#34;&gt;host&lt;/h3&gt;
&lt;p&gt;Default is &lt;code&gt;localhost:25&lt;/code&gt;. Use port 465 for implicit TLS.&lt;/p&gt;
&lt;h3 id=&#34;user-1&#34;&gt;user&lt;/h3&gt;
&lt;p&gt;In case of SMTP auth, default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;password-1&#34;&gt;password&lt;/h3&gt;
&lt;p&gt;In case of SMTP auth, default is &lt;code&gt;empty&lt;/code&gt;. If the password contains &lt;code&gt;#&lt;/code&gt; or &lt;code&gt;;&lt;/code&gt;, then you have to wrap it with triple quotes. Example: &amp;ldquo;&amp;rdquo;&amp;quot;#password;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;
&lt;h3 id=&#34;cert_file-1&#34;&gt;cert_file&lt;/h3&gt;
&lt;p&gt;File path to a cert file, default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;key_file&#34;&gt;key_file&lt;/h3&gt;
&lt;p&gt;File path to a key file, default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;skip_verify&#34;&gt;skip_verify&lt;/h3&gt;
&lt;p&gt;Verify SSL for SMTP server, default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;from_address&#34;&gt;from_address&lt;/h3&gt;
&lt;p&gt;Address used when sending out emails, default is &lt;code&gt;admin@grafana.localhost&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;from_name&#34;&gt;from_name&lt;/h3&gt;
&lt;p&gt;Name to be used when sending out emails, default is &lt;code&gt;Grafana&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;ehlo_identity&#34;&gt;ehlo_identity&lt;/h3&gt;
&lt;p&gt;Name to be used as client identity for EHLO in SMTP dialog, default is &lt;code&gt;&amp;lt;instance_name&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;starttls_policy&#34;&gt;startTLS_policy&lt;/h3&gt;
&lt;p&gt;Either &amp;ldquo;OpportunisticStartTLS&amp;rdquo;, &amp;ldquo;MandatoryStartTLS&amp;rdquo;, &amp;ldquo;NoStartTLS&amp;rdquo;. Default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;emails&#34;&gt;[emails]&lt;/h2&gt;
&lt;h3 id=&#34;welcome_email_on_sign_up&#34;&gt;welcome_email_on_sign_up&lt;/h3&gt;
&lt;p&gt;Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;templates_pattern&#34;&gt;templates_pattern&lt;/h3&gt;
&lt;p&gt;Enter a comma separated list of template patterns. Default is &lt;code&gt;emails/*.html, emails/*.txt&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;content_types&#34;&gt;content_types&lt;/h3&gt;
&lt;p&gt;Enter a comma-separated list of content types that should be included in the emails that are sent. List the content types according descending preference, e.g. &lt;code&gt;text/html, text/plain&lt;/code&gt; for HTML as the most preferred. The order of the parts is significant as the mail clients will use the content type that is supported and most preferred by the sender. Supported content types are &lt;code&gt;text/html&lt;/code&gt; and &lt;code&gt;text/plain&lt;/code&gt;. Default is &lt;code&gt;text/html&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;log&#34;&gt;[log]&lt;/h2&gt;
&lt;p&gt;Grafana logging options.&lt;/p&gt;
&lt;h3 id=&#34;mode&#34;&gt;mode&lt;/h3&gt;
&lt;p&gt;Options are &amp;ldquo;console&amp;rdquo;, &amp;ldquo;file&amp;rdquo;, and &amp;ldquo;syslog&amp;rdquo;. Default is &amp;ldquo;console&amp;rdquo; and &amp;ldquo;file&amp;rdquo;. Use spaces to separate multiple modes, e.g. &lt;code&gt;console file&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;level&#34;&gt;level&lt;/h3&gt;
&lt;p&gt;Options are &amp;ldquo;debug&amp;rdquo;, &amp;ldquo;info&amp;rdquo;, &amp;ldquo;warn&amp;rdquo;, &amp;ldquo;error&amp;rdquo;, and &amp;ldquo;critical&amp;rdquo;. Default is &lt;code&gt;info&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;filters&#34;&gt;filters&lt;/h3&gt;
&lt;p&gt;Optional settings to set different levels for specific loggers.
For example: &lt;code&gt;filters = sqlstore:debug&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;logconsole&#34;&gt;[log.console]&lt;/h2&gt;
&lt;p&gt;Only applicable when &amp;ldquo;console&amp;rdquo; is used in &lt;code&gt;[log]&lt;/code&gt; mode.&lt;/p&gt;
&lt;h3 id=&#34;level-1&#34;&gt;level&lt;/h3&gt;
&lt;p&gt;Options are &amp;ldquo;debug&amp;rdquo;, &amp;ldquo;info&amp;rdquo;, &amp;ldquo;warn&amp;rdquo;, &amp;ldquo;error&amp;rdquo;, and &amp;ldquo;critical&amp;rdquo;. Default is inherited from &lt;code&gt;[log]&lt;/code&gt; level.&lt;/p&gt;
&lt;h3 id=&#34;format&#34;&gt;format&lt;/h3&gt;
&lt;p&gt;Log line format, valid options are text, console and json. Default is &lt;code&gt;console&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;logfile&#34;&gt;[log.file]&lt;/h2&gt;
&lt;p&gt;Only applicable when &amp;ldquo;file&amp;rdquo; used in &lt;code&gt;[log]&lt;/code&gt; mode.&lt;/p&gt;
&lt;h3 id=&#34;level-2&#34;&gt;level&lt;/h3&gt;
&lt;p&gt;Options are &amp;ldquo;debug&amp;rdquo;, &amp;ldquo;info&amp;rdquo;, &amp;ldquo;warn&amp;rdquo;, &amp;ldquo;error&amp;rdquo;, and &amp;ldquo;critical&amp;rdquo;. Default is inherited from &lt;code&gt;[log]&lt;/code&gt; level.&lt;/p&gt;
&lt;h3 id=&#34;format-1&#34;&gt;format&lt;/h3&gt;
&lt;p&gt;Log line format, valid options are text, console and json. Default is &lt;code&gt;text&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;log_rotate&#34;&gt;log_rotate&lt;/h3&gt;
&lt;p&gt;Enable automated log rotation, valid options are &lt;code&gt;false&lt;/code&gt; or &lt;code&gt;true&lt;/code&gt;. Default is &lt;code&gt;true&lt;/code&gt;.
When enabled use the &lt;code&gt;max_lines&lt;/code&gt;, &lt;code&gt;max_size_shift&lt;/code&gt;, &lt;code&gt;daily_rotate&lt;/code&gt; and &lt;code&gt;max_days&lt;/code&gt; to configure the behavior of the log rotation.&lt;/p&gt;
&lt;h3 id=&#34;max_lines&#34;&gt;max_lines&lt;/h3&gt;
&lt;p&gt;Maximum lines per file before rotating it. Default is &lt;code&gt;1000000&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;max_size_shift&#34;&gt;max_size_shift&lt;/h3&gt;
&lt;p&gt;Maximum size of file before rotating it. Default is &lt;code&gt;28&lt;/code&gt;, which means &lt;code&gt;1 &amp;lt;&amp;lt; 28&lt;/code&gt;, &lt;code&gt;256MB&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;daily_rotate&#34;&gt;daily_rotate&lt;/h3&gt;
&lt;p&gt;Enable daily rotation of files, valid options are &lt;code&gt;false&lt;/code&gt; or &lt;code&gt;true&lt;/code&gt;. Default is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;max_days&#34;&gt;max_days&lt;/h3&gt;
&lt;p&gt;Maximum number of days to keep log files. Default is &lt;code&gt;7&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;logsyslog&#34;&gt;[log.syslog]&lt;/h2&gt;
&lt;p&gt;Only applicable when &amp;ldquo;syslog&amp;rdquo; used in &lt;code&gt;[log]&lt;/code&gt; mode.&lt;/p&gt;
&lt;h3 id=&#34;level-3&#34;&gt;level&lt;/h3&gt;
&lt;p&gt;Options are &amp;ldquo;debug&amp;rdquo;, &amp;ldquo;info&amp;rdquo;, &amp;ldquo;warn&amp;rdquo;, &amp;ldquo;error&amp;rdquo;, and &amp;ldquo;critical&amp;rdquo;. Default is inherited from &lt;code&gt;[log]&lt;/code&gt; level.&lt;/p&gt;
&lt;h3 id=&#34;format-2&#34;&gt;format&lt;/h3&gt;
&lt;p&gt;Log line format, valid options are text, console, and json. Default is &lt;code&gt;text&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;network-and-address&#34;&gt;network and address&lt;/h3&gt;
&lt;p&gt;Syslog network type and address. This can be UDP, TCP, or UNIX. If left blank, then the default UNIX endpoints are used.&lt;/p&gt;
&lt;h3 id=&#34;facility&#34;&gt;facility&lt;/h3&gt;
&lt;p&gt;Syslog facility. Valid options are user, daemon or local0 through local7. Default is empty.&lt;/p&gt;
&lt;h3 id=&#34;tag&#34;&gt;tag&lt;/h3&gt;
&lt;p&gt;Syslog tag. By default, the process&amp;rsquo;s &lt;code&gt;argv[0]&lt;/code&gt; is used.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;logfrontend&#34;&gt;[log.frontend]&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This feature is available in Grafana 7.4&#43;.&lt;/p&gt;
&lt;h3 id=&#34;enabled-3&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Sentry javascript agent is initialized. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;provider&#34;&gt;provider&lt;/h3&gt;
&lt;p&gt;Defines which provider to use &lt;code&gt;sentry&lt;/code&gt; or &lt;code&gt;grafana&lt;/code&gt;. Default is &lt;code&gt;sentry&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;sentry_dsn&#34;&gt;sentry_dsn&lt;/h3&gt;
&lt;p&gt;Sentry DSN if you want to send events to Sentry&lt;/p&gt;
&lt;h3 id=&#34;custom_endpoint&#34;&gt;custom_endpoint&lt;/h3&gt;
&lt;p&gt;Custom HTTP endpoint to send events captured by the Sentry agent to. Default, &lt;code&gt;/log&lt;/code&gt;, will log the events to stdout.&lt;/p&gt;
&lt;h3 id=&#34;sample_rate&#34;&gt;sample_rate&lt;/h3&gt;
&lt;p&gt;Rate of events to be reported between &lt;code&gt;0&lt;/code&gt; (none) and &lt;code&gt;1&lt;/code&gt; (all, default), float.&lt;/p&gt;
&lt;h3 id=&#34;log_endpoint_requests_per_second_limit&#34;&gt;log_endpoint_requests_per_second_limit&lt;/h3&gt;
&lt;p&gt;Requests per second limit enforced per an extended period, for Grafana backend log ingestion endpoint, &lt;code&gt;/log&lt;/code&gt;. Default is &lt;code&gt;3&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;log_endpoint_burst_limit&#34;&gt;log_endpoint_burst_limit&lt;/h3&gt;
&lt;p&gt;Maximum requests accepted per short interval of time for Grafana backend log ingestion endpoint, &lt;code&gt;/log&lt;/code&gt;. Default is &lt;code&gt;15&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;instrumentations_errors_enabled&#34;&gt;instrumentations_errors_enabled&lt;/h3&gt;
&lt;p&gt;Turn on error instrumentation. Only affects Grafana Javascript Agent.&lt;/p&gt;
&lt;h3 id=&#34;instrumentations_console_enabled&#34;&gt;instrumentations_console_enabled&lt;/h3&gt;
&lt;p&gt;Turn on console instrumentation. Only affects Grafana Javascript Agent&lt;/p&gt;
&lt;h3 id=&#34;instrumentations_webvitals_enabled&#34;&gt;instrumentations_webvitals_enabled&lt;/h3&gt;
&lt;p&gt;Turn on webvitals instrumentation. Only affects Grafana Javascript Agent&lt;/p&gt;
&lt;h3 id=&#34;api_key&#34;&gt;api_key&lt;/h3&gt;
&lt;p&gt;If &lt;code&gt;custom_endpoint&lt;/code&gt; required authentication, you can set the api key here. Only relevant for Grafana Javascript Agent provider.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;quota&#34;&gt;[quota]&lt;/h2&gt;
&lt;p&gt;Set quotas to &lt;code&gt;-1&lt;/code&gt; to make unlimited.&lt;/p&gt;
&lt;h3 id=&#34;enabled-4&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable usage quotas. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;org_user&#34;&gt;org_user&lt;/h3&gt;
&lt;p&gt;Limit the number of users allowed per organization. Default is 10.&lt;/p&gt;
&lt;h3 id=&#34;org_dashboard&#34;&gt;org_dashboard&lt;/h3&gt;
&lt;p&gt;Limit the number of dashboards allowed per organization. Default is 100.&lt;/p&gt;
&lt;h3 id=&#34;org_data_source&#34;&gt;org_data_source&lt;/h3&gt;
&lt;p&gt;Limit the number of data sources allowed per organization. Default is 10.&lt;/p&gt;
&lt;h3 id=&#34;org_api_key&#34;&gt;org_api_key&lt;/h3&gt;
&lt;p&gt;Limit the number of API keys that can be entered per organization. Default is 10.&lt;/p&gt;
&lt;h3 id=&#34;org_alert_rule&#34;&gt;org_alert_rule&lt;/h3&gt;
&lt;p&gt;Limit the number of alert rules that can be entered per organization. Default is 100.&lt;/p&gt;
&lt;h3 id=&#34;user_org&#34;&gt;user_org&lt;/h3&gt;
&lt;p&gt;Limit the number of organizations a user can create. Default is 10.&lt;/p&gt;
&lt;h3 id=&#34;global_user&#34;&gt;global_user&lt;/h3&gt;
&lt;p&gt;Sets a global limit of users. Default is -1 (unlimited).&lt;/p&gt;
&lt;h3 id=&#34;global_org&#34;&gt;global_org&lt;/h3&gt;
&lt;p&gt;Sets a global limit on the number of organizations that can be created. Default is -1 (unlimited).&lt;/p&gt;
&lt;h3 id=&#34;global_dashboard&#34;&gt;global_dashboard&lt;/h3&gt;
&lt;p&gt;Sets a global limit on the number of dashboards that can be created. Default is -1 (unlimited).&lt;/p&gt;
&lt;h3 id=&#34;global_api_key&#34;&gt;global_api_key&lt;/h3&gt;
&lt;p&gt;Sets global limit of API keys that can be entered. Default is -1 (unlimited).&lt;/p&gt;
&lt;h3 id=&#34;global_session&#34;&gt;global_session&lt;/h3&gt;
&lt;p&gt;Sets a global limit on number of users that can be logged in at one time. Default is -1 (unlimited).&lt;/p&gt;
&lt;h3 id=&#34;global_alert_rule&#34;&gt;global_alert_rule&lt;/h3&gt;
&lt;p&gt;Sets a global limit on number of alert rules that can be created. Default is -1 (unlimited).&lt;/p&gt;
&lt;h3 id=&#34;global_correlations&#34;&gt;global_correlations&lt;/h3&gt;
&lt;p&gt;Sets a global limit on number of correlations that can be created. Default is -1 (unlimited).&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;unified_alerting&#34;&gt;[unified_alerting]&lt;/h2&gt;
&lt;p&gt;For more information about the Grafana alerts, refer to &lt;a href=&#34;../../alerting/&#34;&gt;About Grafana Alerting&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;enabled-5&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable or disable Grafana Alerting. If disabled, all your legacy alerting data will be available again, but the data you created using Grafana Alerting will be deleted. Set force_migration=true to avoid deletion of data. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Alerting Rules migrated from dashboards and panels will include a link back via the &lt;code&gt;annotations&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;disabled_orgs&#34;&gt;disabled_orgs&lt;/h3&gt;
&lt;p&gt;Comma-separated list of organization IDs for which to disable Grafana 8 Unified Alerting.&lt;/p&gt;
&lt;h3 id=&#34;admin_config_poll_interval&#34;&gt;admin_config_poll_interval&lt;/h3&gt;
&lt;p&gt;Specify the frequency of polling for admin config changes. The default value is &lt;code&gt;60s&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;alertmanager_config_poll_interval&#34;&gt;alertmanager_config_poll_interval&lt;/h3&gt;
&lt;p&gt;Specify the frequency of polling for Alertmanager config changes. The default value is &lt;code&gt;60s&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;ha_listen_address&#34;&gt;ha_listen_address&lt;/h3&gt;
&lt;p&gt;Listen IP address 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 &lt;code&gt;0.0.0.0:9094&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;ha_advertise_address&#34;&gt;ha_advertise_address&lt;/h3&gt;
&lt;p&gt;Explicit IP address and port to advertise other Grafana instances. The port is used for both TCP and UDP.&lt;/p&gt;
&lt;h3 id=&#34;ha_peers&#34;&gt;ha_peers&lt;/h3&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;ha_peer_timeout&#34;&gt;ha_peer_timeout&lt;/h3&gt;
&lt;p&gt;Time to wait for an instance to send a notification via the Alertmanager. In HA, each Grafana instance will
be assigned a position (e.g. 0, 1). We then multiply this position with the timeout to indicate how long should
each instance wait before sending the notification to take into account replication lag. The default value is &lt;code&gt;15s&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;ha_gossip_interval&#34;&gt;ha_gossip_interval&lt;/h3&gt;
&lt;p&gt;The interval between sending gossip messages. By lowering this value (more frequent) gossip messages are propagated
across cluster more quickly at the expense of increased bandwidth usage. The default value is &lt;code&gt;200ms&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;ha_push_pull_interval&#34;&gt;ha_push_pull_interval&lt;/h3&gt;
&lt;p&gt;The interval between gossip full state syncs. Setting this interval lower (more frequent) will increase convergence speeds
across larger clusters at the expense of increased bandwidth usage. The default value is &lt;code&gt;60s&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;execute_alerts&#34;&gt;execute_alerts&lt;/h3&gt;
&lt;p&gt;Enable or disable alerting rule execution. The default value is &lt;code&gt;true&lt;/code&gt;. The alerting UI remains visible. This option has a &lt;a href=&#34;#execute_alerts-1&#34;&gt;legacy version in the alerting section&lt;/a&gt; that takes precedence.&lt;/p&gt;
&lt;h3 id=&#34;evaluation_timeout&#34;&gt;evaluation_timeout&lt;/h3&gt;
&lt;p&gt;Sets the alert evaluation timeout when fetching data from the datasource. The default value is &lt;code&gt;30s&lt;/code&gt;. This option has a &lt;a href=&#34;#evaluation_timeout_seconds&#34;&gt;legacy version in the alerting section&lt;/a&gt; that takes precedence.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;max_attempts&#34;&gt;max_attempts&lt;/h3&gt;
&lt;p&gt;Sets a maximum number of times we&amp;rsquo;ll attempt to evaluate an alert rule before giving up on that evaluation. The default value is &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;min_interval&#34;&gt;min_interval&lt;/h3&gt;
&lt;p&gt;Sets the minimum interval to enforce between rule evaluations. The default value is &lt;code&gt;10s&lt;/code&gt; which equals the scheduler interval. 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&amp;rsquo;ll schedule fewer evaluations over time. This option has &lt;a href=&#34;#min_interval_seconds&#34;&gt;a legacy version in the alerting section&lt;/a&gt; that takes precedence.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note.&lt;/strong&gt; This setting has precedence over each individual rule frequency. If a rule frequency is lower than this value, then this value is enforced.&lt;/p&gt;&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&#34;unified_alertingscreenshots&#34;&gt;[unified_alerting.screenshots]&lt;/h2&gt;
&lt;p&gt;For more information about screenshots, refer to &lt;a href=&#34;../../alerting/manage-notifications/images-in-notifications/&#34;&gt;Images in notifications&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;capture&#34;&gt;capture&lt;/h3&gt;
&lt;p&gt;Enable screenshots in notifications. This option requires a remote HTTP image rendering service. Please see &lt;code&gt;[rendering]&lt;/code&gt; for further configuration options.&lt;/p&gt;
&lt;h3 id=&#34;max_concurrent_screenshots&#34;&gt;max_concurrent_screenshots&lt;/h3&gt;
&lt;p&gt;The maximum number of screenshots that can be taken at the same time. This option is different from &lt;code&gt;concurrent_render_request_limit&lt;/code&gt; as &lt;code&gt;max_concurrent_screenshots&lt;/code&gt; sets the number of concurrent screenshots that can be taken at the same time for all firing alerts where as concurrent_render_request_limit sets the total number of concurrent screenshots across all Grafana services.&lt;/p&gt;
&lt;h3 id=&#34;upload_external_image_storage&#34;&gt;upload_external_image_storage&lt;/h3&gt;
&lt;p&gt;Uploads screenshots to the local Grafana server or remote storage such as Azure, S3 and GCS. Please see &lt;code&gt;[external_image_storage]&lt;/code&gt; for further configuration options. If this option is false then screenshots will be persisted to disk for up to &lt;code&gt;temp_data_lifetime&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;unified_alertingreserved_labels&#34;&gt;[unified_alerting.reserved_labels]&lt;/h2&gt;
&lt;p&gt;For more information about Grafana Reserved Labels, refer to &lt;a href=&#34;/docs/grafana/next/alerting/fundamentals/annotation-label/how-to-use-labels/&#34;&gt;Labels in Grafana Alerting&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;disabled_labels&#34;&gt;disabled_labels&lt;/h3&gt;
&lt;p&gt;Comma-separated list of reserved labels added by the Grafana Alerting engine that should be disabled.&lt;/p&gt;
&lt;p&gt;For example: &lt;code&gt;disabled_labels=grafana_folder&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;alerting&#34;&gt;[alerting]&lt;/h2&gt;
&lt;p&gt;For more information about the legacy dashboard alerting feature in Grafana, refer to &lt;a href=&#34;/docs/grafana/v8.5/alerting/old-alerting/&#34;&gt;the legacy Grafana alerts&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;enabled-6&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to &lt;a href=&#34;#unified_alerting&#34;&gt;enable legacy dashboard alerting&lt;/a&gt;. The default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;execute_alerts-1&#34;&gt;execute_alerts&lt;/h3&gt;
&lt;p&gt;Turns off alert rule execution, but alerting is still visible in the Grafana UI.&lt;/p&gt;
&lt;h3 id=&#34;error_or_timeout&#34;&gt;error_or_timeout&lt;/h3&gt;
&lt;p&gt;Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)&lt;/p&gt;
&lt;h3 id=&#34;nodata_or_nullvalues&#34;&gt;nodata_or_nullvalues&lt;/h3&gt;
&lt;p&gt;Defines how Grafana handles nodata or null values in alerting. Options are &lt;code&gt;alerting&lt;/code&gt;, &lt;code&gt;no_data&lt;/code&gt;, &lt;code&gt;keep_state&lt;/code&gt;, and &lt;code&gt;ok&lt;/code&gt;. Default is &lt;code&gt;no_data&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;concurrent_render_limit&#34;&gt;concurrent_render_limit&lt;/h3&gt;
&lt;p&gt;Alert notifications can include images, but rendering many images at the same time can overload the server.
This limit protects the server from render overloading and ensures notifications are sent out quickly. Default value is &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;evaluation_timeout_seconds&#34;&gt;evaluation_timeout_seconds&lt;/h3&gt;
&lt;p&gt;Sets the alert calculation timeout. Default value is &lt;code&gt;30&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;notification_timeout_seconds&#34;&gt;notification_timeout_seconds&lt;/h3&gt;
&lt;p&gt;Sets the alert notification timeout. Default value is &lt;code&gt;30&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;max_attempts-1&#34;&gt;max_attempts&lt;/h3&gt;
&lt;p&gt;Sets a maximum limit on attempts to sending alert notifications. Default value is &lt;code&gt;3&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;min_interval_seconds&#34;&gt;min_interval_seconds&lt;/h3&gt;
&lt;p&gt;Sets the minimum interval between rule evaluations. Default value is &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note.&lt;/strong&gt; This setting has precedence over each individual rule frequency. If a rule frequency is lower than this value, then this value is enforced.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h3 id=&#34;max_annotation_age-&#34;&gt;max_annotation_age =&lt;/h3&gt;
&lt;p&gt;Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).&lt;/p&gt;
&lt;h3 id=&#34;max_annotations_to_keep-&#34;&gt;max_annotations_to_keep =&lt;/h3&gt;
&lt;p&gt;Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;annotations&#34;&gt;[annotations]&lt;/h2&gt;
&lt;h3 id=&#34;cleanupjob_batchsize&#34;&gt;cleanupjob_batchsize&lt;/h3&gt;
&lt;p&gt;Configures the batch size for the annotation clean-up job. This setting is used for dashboard, API, and alert annotations.&lt;/p&gt;
&lt;h3 id=&#34;tags_length&#34;&gt;tags_length&lt;/h3&gt;
&lt;p&gt;Enforces the maximum allowed length of the tags for any newly introduced annotations. It can be between 500 and 4096 (inclusive). Default value is 500. Setting it to a higher value would impact performance therefore is not recommended.&lt;/p&gt;
&lt;h2 id=&#34;annotationsdashboard&#34;&gt;[annotations.dashboard]&lt;/h2&gt;
&lt;p&gt;Dashboard annotations means that annotations are associated with the dashboard they are created on.&lt;/p&gt;
&lt;h3 id=&#34;max_age&#34;&gt;max_age&lt;/h3&gt;
&lt;p&gt;Configures how long dashboard annotations are stored. Default is 0, which keeps them forever.
This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).&lt;/p&gt;
&lt;h3 id=&#34;max_annotations_to_keep&#34;&gt;max_annotations_to_keep&lt;/h3&gt;
&lt;p&gt;Configures max number of dashboard annotations that Grafana stores. Default value is 0, which keeps all dashboard annotations.&lt;/p&gt;
&lt;h2 id=&#34;annotationsapi&#34;&gt;[annotations.api]&lt;/h2&gt;
&lt;p&gt;API annotations means that the annotations have been created using the API without any association with a dashboard.&lt;/p&gt;
&lt;h3 id=&#34;max_age-1&#34;&gt;max_age&lt;/h3&gt;
&lt;p&gt;Configures how long Grafana stores API annotations. Default is 0, which keeps them forever.
This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).&lt;/p&gt;
&lt;h3 id=&#34;max_annotations_to_keep-1&#34;&gt;max_annotations_to_keep&lt;/h3&gt;
&lt;p&gt;Configures max number of API annotations that Grafana keeps. Default value is 0, which keeps all API annotations.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;explore&#34;&gt;[explore]&lt;/h2&gt;
&lt;p&gt;For more information about this feature, refer to &lt;a href=&#34;../../explore/&#34;&gt;Explore&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;enabled-7&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable or disable the Explore section. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;help&#34;&gt;[help]&lt;/h2&gt;
&lt;p&gt;Configures the help section.&lt;/p&gt;
&lt;h3 id=&#34;enabled-8&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable or disable the Help section. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;profile&#34;&gt;[profile]&lt;/h2&gt;
&lt;p&gt;Configures the Profile section.&lt;/p&gt;
&lt;h3 id=&#34;enabled-9&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable or disable the Profile section. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;query_history&#34;&gt;[query_history]&lt;/h2&gt;
&lt;p&gt;Configures Query history in Explore.&lt;/p&gt;
&lt;h3 id=&#34;enabled-10&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable or disable the Query history. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;metrics&#34;&gt;[metrics]&lt;/h2&gt;
&lt;p&gt;For detailed instructions, refer to &lt;a href=&#34;../set-up-grafana-monitoring/&#34;&gt;Internal Grafana metrics&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;enabled-11&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Enable metrics reporting. defaults true. Available via HTTP API &lt;code&gt;&amp;lt;URL&amp;gt;/metrics&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;interval_seconds&#34;&gt;interval_seconds&lt;/h3&gt;
&lt;p&gt;Flush/write interval when sending metrics to external TSDB. Defaults to &lt;code&gt;10&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;disable_total_stats&#34;&gt;disable_total_stats&lt;/h3&gt;
&lt;p&gt;If set to &lt;code&gt;true&lt;/code&gt;, then total stats generation (&lt;code&gt;stat_totals_*&lt;/code&gt; metrics) is disabled. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;total_stats_collector_interval_seconds&#34;&gt;total_stats_collector_interval_seconds&lt;/h3&gt;
&lt;p&gt;Sets the total stats collector interval. The default is 1800 seconds (30 minutes).&lt;/p&gt;
&lt;h3 id=&#34;basic_auth_username-and-basic_auth_password&#34;&gt;basic_auth_username and basic_auth_password&lt;/h3&gt;
&lt;p&gt;If both are set, then basic authentication is required to access the metrics endpoint.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;metricsenvironment_info&#34;&gt;[metrics.environment_info]&lt;/h2&gt;
&lt;p&gt;Adds dimensions to the &lt;code&gt;grafana_environment_info&lt;/code&gt; metric, which can expose more information about the Grafana instance.&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;; exampleLabel1 = exampleValue1
; exampleLabel2 = exampleValue2&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;metricsgraphite&#34;&gt;[metrics.graphite]&lt;/h2&gt;
&lt;p&gt;Use these options if you want to send internal Grafana metrics to Graphite.&lt;/p&gt;
&lt;h3 id=&#34;address&#34;&gt;address&lt;/h3&gt;
&lt;p&gt;Enable by setting the address. Format is &lt;code&gt;&amp;lt;Hostname or ip&amp;gt;&lt;/code&gt;:port.&lt;/p&gt;
&lt;h3 id=&#34;prefix&#34;&gt;prefix&lt;/h3&gt;
&lt;p&gt;Graphite metric prefix. Defaults to &lt;code&gt;prod.grafana.%(instance_name)s.&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;grafana_net&#34;&gt;[grafana_net]&lt;/h2&gt;
&lt;h3 id=&#34;url-1&#34;&gt;url&lt;/h3&gt;
&lt;p&gt;Default is &lt;a href=&#34;/&#34;&gt;https://grafana.com&lt;/a&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;grafana_com&#34;&gt;[grafana_com]&lt;/h2&gt;
&lt;h3 id=&#34;url-2&#34;&gt;url&lt;/h3&gt;
&lt;p&gt;Default is &lt;a href=&#34;/&#34;&gt;https://grafana.com&lt;/a&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;tracingjaeger&#34;&gt;[tracing.jaeger]&lt;/h2&gt;
&lt;p&gt;[Deprecated - use tracing.opentelemetry.jaeger or tracing.opentelemetry.otlp instead]&lt;/p&gt;
&lt;p&gt;Configure Grafana&amp;rsquo;s Jaeger client for distributed tracing.&lt;/p&gt;
&lt;p&gt;You can also use the standard &lt;code&gt;JAEGER_*&lt;/code&gt; environment variables to configure
Jaeger. See the table at the end of &lt;a href=&#34;https://www.jaegertracing.io/docs/1.16/client-features/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://www.jaegertracing.io/docs/1.16/client-features/&lt;/a&gt;
for the full list. Environment variables will override any settings provided here.&lt;/p&gt;
&lt;h3 id=&#34;address-1&#34;&gt;address&lt;/h3&gt;
&lt;p&gt;The host:port destination for reporting spans. (ex: &lt;code&gt;localhost:6831&lt;/code&gt;)&lt;/p&gt;
&lt;p&gt;Can be set with the environment variables &lt;code&gt;JAEGER_AGENT_HOST&lt;/code&gt; and &lt;code&gt;JAEGER_AGENT_PORT&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;always_included_tag&#34;&gt;always_included_tag&lt;/h3&gt;
&lt;p&gt;Comma-separated list of tags to include in all new spans, such as &lt;code&gt;tag1:value1,tag2:value2&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Can be set with the environment variable &lt;code&gt;JAEGER_TAGS&lt;/code&gt; (use &lt;code&gt;=&lt;/code&gt; instead of &lt;code&gt;:&lt;/code&gt; with the environment variable).&lt;/p&gt;
&lt;h3 id=&#34;sampler_type&#34;&gt;sampler_type&lt;/h3&gt;
&lt;p&gt;Default value is &lt;code&gt;const&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Specifies the type of sampler: &lt;code&gt;const&lt;/code&gt;, &lt;code&gt;probabilistic&lt;/code&gt;, &lt;code&gt;ratelimiting&lt;/code&gt;, or &lt;code&gt;remote&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href=&#34;https://www.jaegertracing.io/docs/1.16/sampling/#client-sampling-configuration&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://www.jaegertracing.io/docs/1.16/sampling/#client-sampling-configuration&lt;/a&gt; for details on the different tracing types.&lt;/p&gt;
&lt;p&gt;Can be set with the environment variable &lt;code&gt;JAEGER_SAMPLER_TYPE&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;sampler_param&#34;&gt;sampler_param&lt;/h3&gt;
&lt;p&gt;Default value is &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This is the sampler configuration parameter. Depending on the value of &lt;code&gt;sampler_type&lt;/code&gt;, it can be &lt;code&gt;0&lt;/code&gt;, &lt;code&gt;1&lt;/code&gt;, or a decimal value in between.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For &lt;code&gt;const&lt;/code&gt; sampler, &lt;code&gt;0&lt;/code&gt; or &lt;code&gt;1&lt;/code&gt; for always &lt;code&gt;false&lt;/code&gt;/&lt;code&gt;true&lt;/code&gt; respectively&lt;/li&gt;
&lt;li&gt;For &lt;code&gt;probabilistic&lt;/code&gt; sampler, a probability between &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;1.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For &lt;code&gt;rateLimiting&lt;/code&gt; sampler, the number of spans per second&lt;/li&gt;
&lt;li&gt;For &lt;code&gt;remote&lt;/code&gt; sampler, param is the same as for &lt;code&gt;probabilistic&lt;/code&gt;
and indicates the initial sampling rate before the actual one
is received from the mothership&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;May be set with the environment variable &lt;code&gt;JAEGER_SAMPLER_PARAM&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;sampling_server_url&#34;&gt;sampling_server_url&lt;/h3&gt;
&lt;p&gt;sampling_server_url is the URL of a sampling manager providing a sampling strategy.&lt;/p&gt;
&lt;h3 id=&#34;zipkin_propagation&#34;&gt;zipkin_propagation&lt;/h3&gt;
&lt;p&gt;Default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Controls whether or not to use Zipkin&amp;rsquo;s span propagation format (with &lt;code&gt;x-b3-&lt;/code&gt; HTTP headers). By default, Jaeger&amp;rsquo;s format is used.&lt;/p&gt;
&lt;p&gt;Can be set with the environment variable and value &lt;code&gt;JAEGER_PROPAGATION=b3&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;disable_shared_zipkin_spans&#34;&gt;disable_shared_zipkin_spans&lt;/h3&gt;
&lt;p&gt;Default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Setting this to &lt;code&gt;true&lt;/code&gt; turns off shared RPC spans. Leaving this available is the most common setting when using Zipkin elsewhere in your infrastructure.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;tracingopentelemetry&#34;&gt;[tracing.opentelemetry]&lt;/h2&gt;
&lt;p&gt;Configure general parameters shared between OpenTelemetry providers.&lt;/p&gt;
&lt;h3 id=&#34;custom_attributes&#34;&gt;custom_attributes&lt;/h3&gt;
&lt;p&gt;Comma-separated list of attributes to include in all new spans, such as &lt;code&gt;key1:value1,key2:value2&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Can be set with the environment variable &lt;code&gt;OTEL_RESOURCE_ATTRIBUTES&lt;/code&gt; (use &lt;code&gt;=&lt;/code&gt; instead of &lt;code&gt;:&lt;/code&gt; with the environment variable).&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;tracingopentelemetryjaeger&#34;&gt;[tracing.opentelemetry.jaeger]&lt;/h2&gt;
&lt;p&gt;Configure Grafana&amp;rsquo;s Jaeger client for distributed tracing.&lt;/p&gt;
&lt;h3 id=&#34;address-2&#34;&gt;address&lt;/h3&gt;
&lt;p&gt;The host:port destination for reporting spans. (ex: &lt;code&gt;localhost:14268/api/traces&lt;/code&gt;)&lt;/p&gt;
&lt;h3 id=&#34;propagation&#34;&gt;propagation&lt;/h3&gt;
&lt;p&gt;The propagation specifies the text map propagation format. The values &lt;code&gt;jaeger&lt;/code&gt; and &lt;code&gt;w3c&lt;/code&gt; are supported. Add a comma (&lt;code&gt;,&lt;/code&gt;) between values to specify multiple formats (for example, &lt;code&gt;&amp;quot;jaeger,w3c&amp;quot;&lt;/code&gt;). The default value is &lt;code&gt;w3c&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;tracingopentelemetryotlp&#34;&gt;[tracing.opentelemetry.otlp]&lt;/h2&gt;
&lt;p&gt;Configure Grafana&amp;rsquo;s otlp client for distributed tracing.&lt;/p&gt;
&lt;h3 id=&#34;address-3&#34;&gt;address&lt;/h3&gt;
&lt;p&gt;The host:port destination for reporting spans. (ex: &lt;code&gt;localhost:4317&lt;/code&gt;)&lt;/p&gt;
&lt;h3 id=&#34;propagation-1&#34;&gt;propagation&lt;/h3&gt;
&lt;p&gt;The propagation specifies the text map propagation format. The values &lt;code&gt;jaeger&lt;/code&gt; and &lt;code&gt;w3c&lt;/code&gt; are supported. Add a comma (&lt;code&gt;,&lt;/code&gt;) between values to specify multiple formats (for example, &lt;code&gt;&amp;quot;jaeger,w3c&amp;quot;&lt;/code&gt;). The default value is &lt;code&gt;w3c&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;external_image_storage&#34;&gt;[external_image_storage]&lt;/h2&gt;
&lt;p&gt;These options control how images should be made public so they can be shared on services like Slack or email message.&lt;/p&gt;
&lt;h3 id=&#34;provider-1&#34;&gt;provider&lt;/h3&gt;
&lt;p&gt;Options are s3, webdav, gcs, azure_blob, local). If left empty, then Grafana ignores the upload action.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;external_image_storages3&#34;&gt;[external_image_storage.s3]&lt;/h2&gt;
&lt;h3 id=&#34;endpoint&#34;&gt;endpoint&lt;/h3&gt;
&lt;p&gt;Optional endpoint URL (hostname or fully qualified URI) to override the default generated S3 endpoint. If you want to
keep the default, just leave this empty. You must still provide a &lt;code&gt;region&lt;/code&gt; value if you specify an endpoint.&lt;/p&gt;
&lt;h3 id=&#34;path_style_access&#34;&gt;path_style_access&lt;/h3&gt;
&lt;p&gt;Set this to true to force path-style addressing in S3 requests, i.e., &lt;code&gt;http://s3.amazonaws.com/BUCKET/KEY&lt;/code&gt;, instead
of the default, which is virtual hosted bucket addressing when possible (&lt;code&gt;http://BUCKET.s3.amazonaws.com/KEY&lt;/code&gt;).&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This option is specific to the Amazon S3 service.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;bucket_url&#34;&gt;bucket_url&lt;/h3&gt;
&lt;p&gt;(for backward compatibility, only works when no bucket or region are configured)
Bucket URL for S3. AWS region can be specified within URL or defaults to &amp;lsquo;us-east-1&amp;rsquo;, e.g.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;http://grafana.s3.amazonaws.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;http://grafana.s3.amazonaws.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://grafana.s3-ap-southeast-2.amazonaws.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://grafana.s3-ap-southeast-2.amazonaws.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;bucket&#34;&gt;bucket&lt;/h3&gt;
&lt;p&gt;Bucket name for S3. e.g. grafana.snapshot.&lt;/p&gt;
&lt;h3 id=&#34;region&#34;&gt;region&lt;/h3&gt;
&lt;p&gt;Region name for S3. e.g. &amp;lsquo;us-east-1&amp;rsquo;, &amp;lsquo;cn-north-1&amp;rsquo;, etc.&lt;/p&gt;
&lt;h3 id=&#34;path-1&#34;&gt;path&lt;/h3&gt;
&lt;p&gt;Optional extra path inside bucket, useful to apply expiration policies.&lt;/p&gt;
&lt;h3 id=&#34;access_key&#34;&gt;access_key&lt;/h3&gt;
&lt;p&gt;Access key, e.g. AAAAAAAAAAAAAAAAAAAA.&lt;/p&gt;
&lt;p&gt;Access key requires permissions to the S3 bucket for the &amp;lsquo;s3:PutObject&amp;rsquo; and &amp;lsquo;s3:PutObjectAcl&amp;rsquo; actions.&lt;/p&gt;
&lt;h3 id=&#34;secret_key-1&#34;&gt;secret_key&lt;/h3&gt;
&lt;p&gt;Secret key, e.g. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;external_image_storagewebdav&#34;&gt;[external_image_storage.webdav]&lt;/h2&gt;
&lt;h3 id=&#34;url-3&#34;&gt;url&lt;/h3&gt;
&lt;p&gt;URL where Grafana sends PUT request with images.&lt;/p&gt;
&lt;h3 id=&#34;username&#34;&gt;username&lt;/h3&gt;
&lt;p&gt;Basic auth username.&lt;/p&gt;
&lt;h3 id=&#34;password-2&#34;&gt;password&lt;/h3&gt;
&lt;p&gt;Basic auth password.&lt;/p&gt;
&lt;h3 id=&#34;public_url&#34;&gt;public_url&lt;/h3&gt;
&lt;p&gt;Optional URL to send to users in notifications. If the string contains the sequence &lt;code&gt;${file}&lt;/code&gt;, it is replaced with the uploaded filename. Otherwise, the file name is appended to the path part of the URL, leaving any query string unchanged.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;external_image_storagegcs&#34;&gt;[external_image_storage.gcs]&lt;/h2&gt;
&lt;h3 id=&#34;key_file-1&#34;&gt;key_file&lt;/h3&gt;
&lt;p&gt;Optional path to JSON key file associated with a Google service account to authenticate and authorize. If no value is provided it tries to use the &lt;a href=&#34;https://cloud.google.com/docs/authentication/production#finding_credentials_automatically&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;application default credentials&lt;/a&gt;.
Service Account keys can be created and downloaded from &lt;a href=&#34;https://console.developers.google.com/permissions/serviceaccounts&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://console.developers.google.com/permissions/serviceaccounts&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Service Account should have &amp;ldquo;Storage Object Writer&amp;rdquo; role. The access control model of the bucket needs to be &amp;ldquo;Set object-level and bucket-level permissions&amp;rdquo;. Grafana itself will make the images public readable when signed urls are not enabled.&lt;/p&gt;
&lt;h3 id=&#34;bucket-1&#34;&gt;bucket&lt;/h3&gt;
&lt;p&gt;Bucket Name on Google Cloud Storage.&lt;/p&gt;
&lt;h3 id=&#34;path-2&#34;&gt;path&lt;/h3&gt;
&lt;p&gt;Optional extra path inside bucket.&lt;/p&gt;
&lt;h3 id=&#34;enable_signed_urls&#34;&gt;enable_signed_urls&lt;/h3&gt;
&lt;p&gt;If set to true, Grafana creates a &lt;a href=&#34;https://cloud.google.com/storage/docs/access-control/signed-urls&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;signed URL&lt;/a&gt; for
the image uploaded to Google Cloud Storage.&lt;/p&gt;
&lt;h3 id=&#34;signed_url_expiration&#34;&gt;signed_url_expiration&lt;/h3&gt;
&lt;p&gt;Sets the signed URL expiration, which defaults to seven days.&lt;/p&gt;
&lt;h2 id=&#34;external_image_storageazure_blob&#34;&gt;[external_image_storage.azure_blob]&lt;/h2&gt;
&lt;h3 id=&#34;account_name&#34;&gt;account_name&lt;/h3&gt;
&lt;p&gt;Storage account name.&lt;/p&gt;
&lt;h3 id=&#34;account_key&#34;&gt;account_key&lt;/h3&gt;
&lt;p&gt;Storage account key&lt;/p&gt;
&lt;h3 id=&#34;container_name&#34;&gt;container_name&lt;/h3&gt;
&lt;p&gt;Container name where to store &amp;ldquo;Blob&amp;rdquo; images with random names. Creating the blob container beforehand is required. Only public containers are supported.&lt;/p&gt;
&lt;h3 id=&#34;sas_token_expiration_days&#34;&gt;sas_token_expiration_days&lt;/h3&gt;
&lt;p&gt;Number of days for SAS token validity. If specified SAS token will be attached to image URL. Allow storing images in private containers.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;external_image_storagelocal&#34;&gt;[external_image_storage.local]&lt;/h2&gt;
&lt;p&gt;This option does not require any configuration.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;rendering&#34;&gt;[rendering]&lt;/h2&gt;
&lt;p&gt;Options to configure a remote HTTP image rendering service, e.g. using &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://github.com/grafana/grafana-image-renderer&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;renderer_token&#34;&gt;renderer_token&lt;/h4&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v9.1.2 and Image Renderer v3.6.1 or later.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;An auth token 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.&lt;/p&gt;
&lt;h3 id=&#34;server_url&#34;&gt;server_url&lt;/h3&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h3 id=&#34;callback_url&#34;&gt;callback_url&lt;/h3&gt;
&lt;p&gt;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. &lt;a href=&#34;http://grafana.domain/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;http://grafana.domain/&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;concurrent_render_request_limit&#34;&gt;concurrent_render_request_limit&lt;/h3&gt;
&lt;p&gt;Concurrent render request limit affects when the /render HTTP endpoint is used. Rendering many images at the same time can overload the server,
which this setting can help protect against by only allowing a certain number of concurrent requests. Default is &lt;code&gt;30&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;panels&#34;&gt;[panels]&lt;/h2&gt;
&lt;h3 id=&#34;enable_alpha&#34;&gt;enable_alpha&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; if you want to test alpha panels that are not yet ready for general usage. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;disable_sanitize_html&#34;&gt;disable_sanitize_html&lt;/h3&gt;
&lt;p&gt;If set to true Grafana will allow script tags in text panels. Not recommended as it enables XSS vulnerabilities. Default is false. This setting was introduced in Grafana v6.0.&lt;/p&gt;
&lt;h2 id=&#34;plugins-1&#34;&gt;[plugins]&lt;/h2&gt;
&lt;h3 id=&#34;enable_alpha-1&#34;&gt;enable_alpha&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; if you want to test alpha plugins that are not yet ready for general usage. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;allow_loading_unsigned_plugins&#34;&gt;allow_loading_unsigned_plugins&lt;/h3&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;We do &lt;em&gt;not&lt;/em&gt; recommend using this option. For more information, refer to &lt;a href=&#34;../../administration/plugin-management/#plugin-signatures&#34;&gt;Plugin signatures&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;plugin_admin_enabled&#34;&gt;plugin_admin_enabled&lt;/h3&gt;
&lt;p&gt;Available to Grafana administrators only, enables installing / uninstalling / updating plugins directly from the Grafana UI. Set to &lt;code&gt;true&lt;/code&gt; by default. Setting it to &lt;code&gt;false&lt;/code&gt; will hide the install / uninstall / update controls.&lt;/p&gt;
&lt;p&gt;For more information, refer to &lt;a href=&#34;../../administration/plugin-management/#plugin-catalog&#34;&gt;Plugin catalog&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;plugin_admin_external_manage_enabled&#34;&gt;plugin_admin_external_manage_enabled&lt;/h3&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; if you want to enable external management of plugins. Default is &lt;code&gt;false&lt;/code&gt;. This is only applicable to Grafana Cloud users.&lt;/p&gt;
&lt;h3 id=&#34;plugin_catalog_url&#34;&gt;plugin_catalog_url&lt;/h3&gt;
&lt;p&gt;Custom install/learn more URL for enterprise plugins. Defaults to &lt;a href=&#34;/grafana/plugins/&#34;&gt;https://grafana.com/grafana/plugins/&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;plugin_catalog_hidden_plugins&#34;&gt;plugin_catalog_hidden_plugins&lt;/h3&gt;
&lt;p&gt;Enter a comma-separated list of plugin identifiers to hide in the plugin catalog.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;live&#34;&gt;[live]&lt;/h2&gt;
&lt;h3 id=&#34;max_connections&#34;&gt;max_connections&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v8.0 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;max_connections&lt;/code&gt; option specifies the maximum number of connections to the Grafana Live WebSocket endpoint per Grafana server instance. Default is &lt;code&gt;100&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../set-up-grafana-live/&#34;&gt;Grafana Live configuration documentation&lt;/a&gt; if you specify a number higher than default since this can require some operating system and infrastructure tuning.&lt;/p&gt;
&lt;p&gt;0 disables Grafana Live, -1 means unlimited connections.&lt;/p&gt;
&lt;h3 id=&#34;allowed_origins&#34;&gt;allowed_origins&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v8.0.4 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;allowed_origins&lt;/code&gt; option is a comma-separated list of additional origins (&lt;code&gt;Origin&lt;/code&gt; header of HTTP Upgrade request during WebSocket connection establishment) that will be accepted by Grafana Live.&lt;/p&gt;
&lt;p&gt;If not set (default), then the origin is matched over &lt;a href=&#34;#root_url&#34;&gt;root_url&lt;/a&gt; which should be sufficient for most scenarios.&lt;/p&gt;
&lt;p&gt;Origin patterns support wildcard symbol &amp;ldquo;*&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;ini&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-ini&#34;&gt;[live]
allowed_origins = &amp;#34;https://*.example.com&amp;#34;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;ha_engine&#34;&gt;ha_engine&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v8.1 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Experimental&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The high availability (HA) engine name for Grafana Live. By default, it&amp;rsquo;s not set. The only possible value is &amp;ldquo;redis&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;For more information, refer to the &lt;a href=&#34;../set-up-grafana-live/#configure-grafana-live-ha-setup&#34;&gt;Configure Grafana Live HA setup&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;ha_engine_address&#34;&gt;ha_engine_address&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v8.1 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Experimental&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Address string of selected the high availability (HA) Live engine. For Redis, it&amp;rsquo;s a &lt;code&gt;host:port&lt;/code&gt; string. Example:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;ini&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-ini&#34;&gt;[live]
ha_engine = redis
ha_engine_address = 127.0.0.1:6379&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&#34;pluginplugin_id&#34;&gt;[plugin.plugin_id]&lt;/h2&gt;
&lt;p&gt;This section can be used to configure plugin-specific settings. Replace the &lt;code&gt;plugin_id&lt;/code&gt; attribute with the plugin ID present in &lt;code&gt;plugin.json&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Properties described in this section are available for all plugins, but you must set them individually for each plugin.&lt;/p&gt;
&lt;h3 id=&#34;tracing&#34;&gt;tracing&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana v9.5.0 or later, and &lt;a href=&#34;#tracingopentelemetry&#34;&gt;OpenTelemetry must be configured as well&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;If &lt;code&gt;true&lt;/code&gt;, propagate the tracing context to the plugin backend and enable tracing (if the backend supports it).&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;plugingrafana-image-renderer&#34;&gt;[plugin.grafana-image-renderer]&lt;/h2&gt;
&lt;p&gt;For more information, refer to &lt;a href=&#34;../image-rendering/&#34;&gt;Image rendering&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;rendering_timezone&#34;&gt;rendering_timezone&lt;/h3&gt;
&lt;p&gt;Instruct headless browser instance to use a default timezone when not provided by Grafana, e.g. when rendering panel image of alert. See &lt;a href=&#34;https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;ICUs metaZones.txt&lt;/a&gt; for a list of supported timezone IDs. Fallbacks to TZ environment variable if not set.&lt;/p&gt;
&lt;h3 id=&#34;rendering_language&#34;&gt;rendering_language&lt;/h3&gt;
&lt;p&gt;Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
Refer to the HTTP header Accept-Language to understand how to format this value, e.g. &amp;lsquo;fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5&amp;rsquo;.&lt;/p&gt;
&lt;h3 id=&#34;rendering_viewport_device_scale_factor&#34;&gt;rendering_viewport_device_scale_factor&lt;/h3&gt;
&lt;p&gt;Instruct headless browser instance to use a default device scale factor when not provided by Grafana, e.g. when rendering panel image of alert.
Default is &lt;code&gt;1&lt;/code&gt;. Using a higher value will produce more detailed images (higher DPI), but requires more disk space to store an image.&lt;/p&gt;
&lt;h3 id=&#34;rendering_ignore_https_errors&#34;&gt;rendering_ignore_https_errors&lt;/h3&gt;
&lt;p&gt;Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored. Due to the security risk, we do not recommend that you ignore HTTPS errors.&lt;/p&gt;
&lt;h3 id=&#34;rendering_verbose_logging&#34;&gt;rendering_verbose_logging&lt;/h3&gt;
&lt;p&gt;Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is &lt;code&gt;false&lt;/code&gt; and will only capture and log error messages.&lt;/p&gt;
&lt;p&gt;When enabled, debug messages are captured and logged as well.&lt;/p&gt;
&lt;p&gt;For the verbose information to be included in the Grafana server log you have to adjust the rendering log level to debug, configure [log].filter = rendering:debug.&lt;/p&gt;
&lt;h3 id=&#34;rendering_dumpio&#34;&gt;rendering_dumpio&lt;/h3&gt;
&lt;p&gt;Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;It can be useful to set this to &lt;code&gt;true&lt;/code&gt; when troubleshooting.&lt;/p&gt;
&lt;h3 id=&#34;rendering_args&#34;&gt;rendering_args&lt;/h3&gt;
&lt;p&gt;Additional arguments to pass to the headless browser instance. Defaults are &lt;code&gt;--no-sandbox,--disable-gpu&lt;/code&gt;. The list of Chromium flags can be found at (&lt;a href=&#34;https://peter.sh/experiments/chromium-command-line-switches/%29&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://peter.sh/experiments/chromium-command-line-switches/)&lt;/a&gt;. Separate multiple arguments with commas.&lt;/p&gt;
&lt;h3 id=&#34;rendering_chrome_bin&#34;&gt;rendering_chrome_bin&lt;/h3&gt;
&lt;p&gt;You can configure the plugin to use a different browser binary instead of the pre-packaged version of Chromium.&lt;/p&gt;
&lt;p&gt;Please note that this is &lt;em&gt;not&lt;/em&gt; recommended. You might encounter problems if the installed version of Chrome/Chromium is not compatible with the plugin.&lt;/p&gt;
&lt;h3 id=&#34;rendering_mode&#34;&gt;rendering_mode&lt;/h3&gt;
&lt;p&gt;Instruct how headless browser instances are created. Default is &lt;code&gt;default&lt;/code&gt; and will create a new browser instance on each request.&lt;/p&gt;
&lt;p&gt;Mode &lt;code&gt;clustered&lt;/code&gt; will make sure that only a maximum of browsers/incognito pages can execute concurrently.&lt;/p&gt;
&lt;p&gt;Mode &lt;code&gt;reusable&lt;/code&gt; will have one browser instance and will create a new incognito page on each request.&lt;/p&gt;
&lt;h3 id=&#34;rendering_clustering_mode&#34;&gt;rendering_clustering_mode&lt;/h3&gt;
&lt;p&gt;When rendering_mode = clustered, you can instruct how many browsers or incognito pages can execute concurrently. Default is &lt;code&gt;browser&lt;/code&gt; and will cluster using browser instances.&lt;/p&gt;
&lt;p&gt;Mode &lt;code&gt;context&lt;/code&gt; will cluster using incognito pages.&lt;/p&gt;
&lt;h3 id=&#34;rendering_clustering_max_concurrency&#34;&gt;rendering_clustering_max_concurrency&lt;/h3&gt;
&lt;p&gt;When rendering_mode = clustered, you can define the maximum number of browser instances/incognito pages that can execute concurrently. Default is &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;rendering_clustering_timeout&#34;&gt;rendering_clustering_timeout&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in grafana-image-renderer v3.3.0 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;When rendering_mode = clustered, you can specify the duration a rendering request can take before it will time out. Default is &lt;code&gt;30&lt;/code&gt; seconds.&lt;/p&gt;
&lt;h3 id=&#34;rendering_viewport_max_width&#34;&gt;rendering_viewport_max_width&lt;/h3&gt;
&lt;p&gt;Limit the maximum viewport width that can be requested.&lt;/p&gt;
&lt;h3 id=&#34;rendering_viewport_max_height&#34;&gt;rendering_viewport_max_height&lt;/h3&gt;
&lt;p&gt;Limit the maximum viewport height that can be requested.&lt;/p&gt;
&lt;h3 id=&#34;rendering_viewport_max_device_scale_factor&#34;&gt;rendering_viewport_max_device_scale_factor&lt;/h3&gt;
&lt;p&gt;Limit the maximum viewport device scale factor that can be requested.&lt;/p&gt;
&lt;h3 id=&#34;grpc_host&#34;&gt;grpc_host&lt;/h3&gt;
&lt;p&gt;Change the listening host of the gRPC server. Default host is &lt;code&gt;127.0.0.1&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;grpc_port&#34;&gt;grpc_port&lt;/h3&gt;
&lt;p&gt;Change the listening port of the gRPC server. Default port is &lt;code&gt;0&lt;/code&gt; and will automatically assign a port not in use.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;enterprise&#34;&gt;[enterprise]&lt;/h2&gt;
&lt;p&gt;For more information about Grafana Enterprise, refer to &lt;a href=&#34;../../introduction/grafana-enterprise/&#34;&gt;Grafana Enterprise&lt;/a&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;feature_toggles&#34;&gt;[feature_toggles]&lt;/h2&gt;
&lt;h3 id=&#34;enable&#34;&gt;enable&lt;/h3&gt;
&lt;p&gt;Keys of features to enable, separated by space.&lt;/p&gt;
&lt;h3 id=&#34;feature_toggle_name--false&#34;&gt;FEATURE_TOGGLE_NAME = false&lt;/h3&gt;
&lt;p&gt;Some feature toggles for stable features are on by default. Use this setting to disable an on-by-default feature toggle with the name FEATURE_TOGGLE_NAME, for example, &lt;code&gt;exploreMixedDatasource = false&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;date_formats&#34;&gt;[date_formats]&lt;/h2&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;The date format options below are only available in Grafana v7.2&#43;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;This section controls system-wide defaults for date formats used in time ranges, graphs, and date input boxes.&lt;/p&gt;
&lt;p&gt;The format patterns use &lt;a href=&#34;https://momentjs.com/docs/#/displaying/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Moment.js&lt;/a&gt; formatting tokens.&lt;/p&gt;
&lt;h3 id=&#34;full_date&#34;&gt;full_date&lt;/h3&gt;
&lt;p&gt;Full date format used by time range picker and in other places where a full date is rendered.&lt;/p&gt;
&lt;h3 id=&#34;intervals&#34;&gt;intervals&lt;/h3&gt;
&lt;p&gt;These intervals formats are used in the graph to show only a partial date or time. For example, if there are only
minutes between Y-axis tick labels then the &lt;code&gt;interval_minute&lt;/code&gt; format is used.&lt;/p&gt;
&lt;p&gt;Defaults&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;interval_second = HH:mm:ss
interval_minute = HH:mm
interval_hour = MM/DD HH:mm
interval_day = MM/DD
interval_month = YYYY-MM
interval_year = YYYY&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;use_browser_locale&#34;&gt;use_browser_locale&lt;/h3&gt;
&lt;p&gt;Set this to &lt;code&gt;true&lt;/code&gt; to have date formats automatically derived from your browser location. Defaults to &lt;code&gt;false&lt;/code&gt;. This is an experimental feature.&lt;/p&gt;
&lt;h3 id=&#34;default_timezone&#34;&gt;default_timezone&lt;/h3&gt;
&lt;p&gt;Used as the default time zone for user preferences. Can be either &lt;code&gt;browser&lt;/code&gt; for the browser local time zone or a time zone name from the IANA Time Zone database, such as &lt;code&gt;UTC&lt;/code&gt; or &lt;code&gt;Europe/Amsterdam&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;default_week_start&#34;&gt;default_week_start&lt;/h3&gt;
&lt;p&gt;Set the default start of the week, valid values are: &lt;code&gt;saturday&lt;/code&gt;, &lt;code&gt;sunday&lt;/code&gt;, &lt;code&gt;monday&lt;/code&gt; or &lt;code&gt;browser&lt;/code&gt; to use the browser locale to define the first day of the week. Default is &lt;code&gt;browser&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;expressions&#34;&gt;[expressions]&lt;/h2&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This feature is available in Grafana v7.4 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;enabled-12&#34;&gt;enabled&lt;/h3&gt;
&lt;p&gt;Set this to &lt;code&gt;false&lt;/code&gt; to disable expressions and hide them in the Grafana UI. Default is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;geomap&#34;&gt;[geomap]&lt;/h2&gt;
&lt;p&gt;This section controls the defaults settings for Geomap Plugin.&lt;/p&gt;
&lt;h3 id=&#34;default_baselayer_config&#34;&gt;default_baselayer_config&lt;/h3&gt;
&lt;p&gt;The json config used to define the default base map. Four base map options to choose from are &lt;code&gt;carto&lt;/code&gt;, &lt;code&gt;esriXYZTiles&lt;/code&gt;, &lt;code&gt;xyzTiles&lt;/code&gt;, &lt;code&gt;standard&lt;/code&gt;.
For example, to set cartoDB light as the default base layer:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;ini&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-ini&#34;&gt;default_baselayer_config = `{
  &amp;#34;type&amp;#34;: &amp;#34;xyz&amp;#34;,
  &amp;#34;config&amp;#34;: {
    &amp;#34;attribution&amp;#34;: &amp;#34;Open street map&amp;#34;,
    &amp;#34;url&amp;#34;: &amp;#34;https://tile.openstreetmap.org/{z}/{x}/{y}.png&amp;#34;
  }
}`&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;enable_custom_baselayers&#34;&gt;enable_custom_baselayers&lt;/h3&gt;
&lt;p&gt;Set this to &lt;code&gt;false&lt;/code&gt; to disable loading other custom base maps and hide them in the Grafana UI. Default is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;rbac&#34;&gt;[rbac]&lt;/h2&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../../administration/roles-and-permissions/access-control/&#34;&gt;Role-based access control&lt;/a&gt; for more information.&lt;/p&gt;
]]></content><description>&lt;h1 id="configure-grafana">Configure Grafana&lt;/h1>
&lt;p>Grafana has default and custom configuration files. You can customize your Grafana instance by modifying the custom configuration file or by using environment variables. To see the list of settings for a Grafana instance, refer to &lt;a href="../../administration/stats-and-license/#view-server-settings">View server settings&lt;/a>.&lt;/p></description></item><item><title>Start the Grafana server</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/start-restart-grafana/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/start-restart-grafana/</guid><content><![CDATA[&lt;h1 id=&#34;start-the-grafana-server&#34;&gt;Start the Grafana server&lt;/h1&gt;
&lt;p&gt;This topic includes instructions for starting the Grafana server. For certain configuration changes, you might have to restart the Grafana server for them to take effect.&lt;/p&gt;
&lt;p&gt;The following instructions start the &lt;code&gt;grafana-server&lt;/code&gt; process as the &lt;code&gt;grafana&lt;/code&gt; user, which was created during the package installation.&lt;/p&gt;
&lt;p&gt;If you installed with the APT repository or &lt;code&gt;.deb&lt;/code&gt; package, then you can start the server using &lt;code&gt;systemd&lt;/code&gt; or &lt;code&gt;init.d&lt;/code&gt;. If you installed a binary &lt;code&gt;.tar.gz&lt;/code&gt; file, then you execute the binary.&lt;/p&gt;
&lt;h2 id=&#34;linux&#34;&gt;Linux&lt;/h2&gt;
&lt;p&gt;The following subsections describe three methods of starting and restarting the Grafana server: with systemd, initd, or by directly running the binary. You should follow only one set of instructions, depending on how your machine is configured.&lt;/p&gt;
&lt;h3 id=&#34;start-the-grafana-server-with-systemd&#34;&gt;Start the Grafana server with systemd&lt;/h3&gt;
&lt;p&gt;Complete the following steps to start the Grafana server using systemd and verify that it is running.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;To start the service, run the following commands:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To verify that the service is running, run the following command:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;sudo systemctl status grafana-server&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;configure-the-grafana-server-to-start-at-boot-using-systemd&#34;&gt;Configure the Grafana server to start at boot using systemd&lt;/h3&gt;
&lt;p&gt;To configure the Grafana server to start at boot, run the following command:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo systemctl enable grafana-server.service&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;serve-grafana-on-a-port--1024&#34;&gt;Serve Grafana on a port &amp;lt; 1024&lt;/h4&gt;


&lt;div data-shared=&#34;systemd/bind-net-capabilities.md&#34;&gt;
            &lt;p&gt;If you are using &lt;code&gt;systemd&lt;/code&gt; and want to start Grafana on a port that is lower than 1024, you must add a &lt;code&gt;systemd&lt;/code&gt; unit override.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to create an override file in your configured editor.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# Alternatively, create a file in /etc/systemd/system/grafana-server.service.d/override.conf
sudo systemctl edit grafana-server.service&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following additional settings to grant the &lt;code&gt;CAP_NET_BIND_SERVICE&lt;/code&gt; capability.&lt;/p&gt;
&lt;p&gt;To learn more about capabilities, refer to &lt;a href=&#34;https://man7.org/linux/man-pages/man7/capabilities.7.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;capabilities(7) — Linux manual page&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;[Service]
# Give the CAP_NET_BIND_SERVICE capability
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE

# A private user cannot have process capabilities on the host&amp;#39;s user
# namespace and thus CAP_NET_BIND_SERVICE has no effect.
PrivateUsers=false&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;

        
&lt;h3 id=&#34;restart-the-grafana-server-using-systemd&#34;&gt;Restart the Grafana server using systemd&lt;/h3&gt;
&lt;p&gt;To restart the Grafana server, run the following commands:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo systemctl restart grafana-server&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;SUSE or openSUSE users might need to start the server with the systemd method, then use the init.d method to configure Grafana to start at boot.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;start-the-grafana-server-using-initd&#34;&gt;Start the Grafana server using init.d&lt;/h3&gt;
&lt;p&gt;Complete the following steps to start the Grafana server using init.d and verify that it is running:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;To start the Grafana server, run the following commands:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo service grafana-server start
sudo service grafana-server status&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To verify that the service is running, run the following command:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;sudo service grafana-server status&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;configure-the-grafana-server-to-start-at-boot-using-initd&#34;&gt;Configure the Grafana server to start at boot using init.d&lt;/h3&gt;
&lt;p&gt;To configure the Grafana server to start at boot, run the following command:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo update-rc.d grafana-server defaults&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;restart-the-grafana-server-using-initd&#34;&gt;Restart the Grafana server using init.d&lt;/h4&gt;
&lt;p&gt;To restart the Grafana server, run the following commands:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo service grafana-server restart&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;start-the-server-using-the-binary&#34;&gt;Start the server using the binary&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;grafana&lt;/code&gt; binary .tar.gz needs the working directory to be the root install directory where the binary and the &lt;code&gt;public&lt;/code&gt; folder are located.&lt;/p&gt;
&lt;p&gt;To start the Grafana server, run the following command:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;./bin/grafana server&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;docker&#34;&gt;Docker&lt;/h2&gt;
&lt;p&gt;To restart the Grafana service, use the &lt;code&gt;docker restart&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;docker restart grafana&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, you can use the &lt;code&gt;docker compose restart&lt;/code&gt; command to restart Grafana. For more information, refer to &lt;a href=&#34;https://docs.docker.com/compose/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;docker compose documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;docker-compose-example&#34;&gt;Docker compose example&lt;/h3&gt;
&lt;p&gt;Configure your &lt;code&gt;docker-compose.yml&lt;/code&gt; file. For example:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;version: &amp;#34;3.8&amp;#34;
services:
  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    restart: unless-stopped
    environment:
      - TERM=linux
      - GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-polystat-panel
    ports:
      - &amp;#39;3000:3000&amp;#39;
    volumes:
      - &amp;#39;grafana_storage:/var/lib/grafana&amp;#39;
volumes:
  grafana_storage: {}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Start the Grafana server:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;docker compose up -d&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This starts the Grafana server container in detached mode along with the two plugins specified in the YAML file.&lt;/p&gt;
&lt;p&gt;To restart the running container, use this command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;docker compose restart grafana&lt;/code&gt;&lt;/p&gt;
&lt;h2 id=&#34;windows&#34;&gt;Windows&lt;/h2&gt;
&lt;p&gt;Complete the following steps to start the Grafana server on Windows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Execute &lt;code&gt;grafana.exe server&lt;/code&gt;; the &lt;code&gt;grafana&lt;/code&gt; binary is located in the &lt;code&gt;bin&lt;/code&gt; directory.&lt;/p&gt;
&lt;p&gt;We recommend that you run &lt;code&gt;grafana.exe server&lt;/code&gt; from the command line.&lt;/p&gt;
&lt;p&gt;If you want to run Grafana as a Windows service, you can download &lt;a href=&#34;https://nssm.cc/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;NSSM&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To run Grafana, open your browser and go to the Grafana port (http://localhost:3000/ is default).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The default Grafana port is &lt;code&gt;3000&lt;/code&gt;. This port might require extra permissions on Windows. If it does not appear in the default port, you can try changing to a different port.&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To change the port, complete the following steps:&lt;/p&gt;
&lt;p&gt;a. In the &lt;code&gt;conf&lt;/code&gt; directory, copy &lt;code&gt;sample.ini&lt;/code&gt; to &lt;code&gt;custom.ini&lt;/code&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You should edit &lt;code&gt;custom.ini&lt;/code&gt;, never &lt;code&gt;defaults.ini&lt;/code&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;b. Edit &lt;code&gt;custom.ini&lt;/code&gt; and uncomment the &lt;code&gt;http_port&lt;/code&gt; configuration option (&lt;code&gt;;&lt;/code&gt; is the comment character in ini files) and change it to something similar to &lt;code&gt;8080&lt;/code&gt;, which should not require extra Windows privileges.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To restart the Grafana server, complete the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the &lt;strong&gt;Services&lt;/strong&gt; app.&lt;/li&gt;
&lt;li&gt;Right-click on the &lt;strong&gt;Grafana&lt;/strong&gt; service.&lt;/li&gt;
&lt;li&gt;In the context menu, click &lt;strong&gt;Restart&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;macos&#34;&gt;macOS&lt;/h2&gt;
&lt;p&gt;Restart methods differ depending on whether you installed Grafana using Homebrew or as standalone macOS binaries.&lt;/p&gt;
&lt;h3 id=&#34;start-grafana-using-homebrew&#34;&gt;Start Grafana using Homebrew&lt;/h3&gt;
&lt;p&gt;To start Grafana using &lt;a href=&#34;http://brew.sh/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Homebrew&lt;/a&gt;, run the following start command:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;brew services start grafana&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;restart-grafana-using-homebrew&#34;&gt;Restart Grafana using Homebrew&lt;/h3&gt;
&lt;p&gt;Use the &lt;a href=&#34;http://brew.sh/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Homebrew&lt;/a&gt; restart command:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;brew services restart grafana&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;restart-standalone-macos-binaries&#34;&gt;Restart standalone macOS binaries&lt;/h3&gt;
&lt;p&gt;To restart Grafana:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open a terminal and go to the directory where you copied the install setup files.&lt;/li&gt;
&lt;li&gt;Run the command:&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;./bin/grafana server&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;p&gt;After the Grafana server is up and running, consider taking the next steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Refer to &lt;a href=&#34;../../getting-started/&#34;&gt;Get Started&lt;/a&gt; to learn how to build your first dashboard.&lt;/li&gt;
&lt;li&gt;Refer to &lt;a href=&#34;../configure-grafana/&#34;&gt;Configuration&lt;/a&gt; to learn about how you can customize your environment.&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="start-the-grafana-server">Start the Grafana server&lt;/h1>
&lt;p>This topic includes instructions for starting the Grafana server. For certain configuration changes, you might have to restart the Grafana server for them to take effect.&lt;/p></description></item><item><title>Sign in to Grafana</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/sign-in-to-grafana/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/sign-in-to-grafana/</guid><content><![CDATA[&lt;h1 id=&#34;sign-in-to-grafana&#34;&gt;Sign in to Grafana&lt;/h1&gt;
&lt;p&gt;This topic describes how to sign in to Grafana.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../installation/&#34;&gt;Install Grafana&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;steps&#34;&gt;Steps&lt;/h2&gt;
&lt;p&gt;To sign in to Grafana for the first time, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open your web browser and go to root URL specified in &lt;a href=&#34;../configure-grafana/&#34;&gt;Grafana configuration file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Unless you have configured Grafana differently, it is set to use &lt;code&gt;http://localhost:3000&lt;/code&gt; by default.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On the signin page, enter &lt;code&gt;admin&lt;/code&gt; for username and password.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Sign in&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If successful, you will see a prompt to change the password.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;OK&lt;/strong&gt; on the prompt and change your password.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; We strongly recommend that you change the default administrator password.&lt;/p&gt;&lt;/blockquote&gt;
]]></content><description>&lt;h1 id="sign-in-to-grafana">Sign in to Grafana&lt;/h1>
&lt;p>This topic describes how to sign in to Grafana.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../installation/">Install Grafana&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="steps">Steps&lt;/h2>
&lt;p>To sign in to Grafana for the first time, follow these steps:&lt;/p></description></item><item><title>Configure security</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/configure-security/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/configure-security/</guid><content><![CDATA[&lt;h1 id=&#34;configure-security&#34;&gt;Configure security&lt;/h1&gt;
&lt;p&gt;If you run non-Grafana web services on your Grafana server or within its local network, then they might be vulnerable to exploitation through the Grafana data source proxy or other methods.&lt;/p&gt;
&lt;p&gt;To prevent this type of exploitation from happening, we recommend that you apply one or more of the precautions listed below.&lt;/p&gt;
&lt;h2 id=&#34;limit-ip-addresseshostnames-for-data-source-url&#34;&gt;Limit IP addresses/hostnames for data source URL&lt;/h2&gt;
&lt;p&gt;You can configure Grafana to only allow certain IP addresses or hostnames to be used as data source URLs and proxied through the Grafana data source proxy. Refer to &lt;a href=&#34;../configure-grafana/#data_source_proxy_whitelist&#34;&gt;data_source_proxy_whitelist&lt;/a&gt; for usage instructions.&lt;/p&gt;
&lt;h2 id=&#34;request-security&#34;&gt;Request security&lt;/h2&gt;
&lt;p&gt;The request security configuration option allows users to limit requests from the Grafana server. It targets requests that are generated by users. For more information, refer to &lt;a href=&#34;configure-request-security/&#34;&gt;Request security&lt;/a&gt;.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Request security is available in Grafana Enterprise v7.4 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;firewall-rules&#34;&gt;Firewall rules&lt;/h2&gt;
&lt;p&gt;Configure a firewall to restrict Grafana from making network requests to sensitive internal web services.&lt;/p&gt;
&lt;p&gt;There are many firewall tools available, refer to the documentation for your specific security tool. For example, Linux users can use &lt;a href=&#34;https://en.wikipedia.org/wiki/Iptables&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;iptables&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;proxy-server&#34;&gt;Proxy server&lt;/h2&gt;
&lt;p&gt;Require all network requests being made by Grafana to go through a proxy server.&lt;/p&gt;
&lt;p&gt;Self-hosted reverse proxy options include but are not limited to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://www.pomerium.com/docs&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Pomerium&lt;/a&gt;, which has a &lt;a href=&#34;https://www.pomerium.com/docs/guides/grafana&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;guide for securing Grafana&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.nginx.com/nginx/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;NGINX&lt;/a&gt; using their &lt;a href=&#34;https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;guide on restricting access with HTTP basic authentication&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/oauth2-proxy/oauth2-proxy&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;OAuth2 proxy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;limit-viewer-query-permissions&#34;&gt;Limit Viewer query permissions&lt;/h2&gt;
&lt;p&gt;Users with the Viewer role can enter &lt;em&gt;any possible query&lt;/em&gt; in &lt;em&gt;any&lt;/em&gt; of the data sources available in the &lt;strong&gt;organization&lt;/strong&gt;, not just the queries that are defined on the dashboards for which the user has Viewer permissions.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For example:&lt;/strong&gt; In a Grafana instance with one data source, one dashboard, and one panel that has one query defined, you might assume that a Viewer can only see the result of the query defined in that panel. Actually, the Viewer has access to send any query to the data source. With a command-line tool like curl (there are lots of tools for this), the Viewer can make their own query to the data source and potentially access sensitive data.&lt;/p&gt;
&lt;p&gt;To address this vulnerability, you can restrict data source query access in the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create multiple data sources with some restrictions added in data source configuration that restrict access (like database name or credentials). Then use the &lt;a href=&#34;../../administration/data-source-management/#data-source-permissions&#34;&gt;Data Source Permissions&lt;/a&gt; Enterprise feature to restrict user access to the data source in Grafana.&lt;/li&gt;
&lt;li&gt;Create a separate Grafana organization, and in that organization, create a separate data source. Make sure the data source has some option/user/credentials setting that limits access to a subset of the data. Not all data sources have an option to limit access.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;implications-of-enabling-anonymous-access-to-dashboards&#34;&gt;Implications of enabling anonymous access to dashboards&lt;/h2&gt;
&lt;p&gt;When you enable anonymous access to a dashboard, it is publicly available. This section lists the security implications of enabling Anonymous access.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Anyone with the URL can access the dashboard.&lt;/li&gt;
&lt;li&gt;Anyone can make view calls to the API and list all folders, dashboards, and data sources.&lt;/li&gt;
&lt;li&gt;Anyone can make arbitrary queries to any data source that the Grafana instance is configured with.&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="configure-security">Configure security&lt;/h1>
&lt;p>If you run non-Grafana web services on your Grafana server or within its local network, then they might be vulnerable to exploitation through the Grafana data source proxy or other methods.&lt;/p></description></item><item><title>Set up Grafana monitoring</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-grafana-monitoring/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-grafana-monitoring/</guid><content><![CDATA[&lt;h1 id=&#34;set-up-grafana-monitoring&#34;&gt;Set up Grafana monitoring&lt;/h1&gt;
&lt;p&gt;Grafana supports tracing.&lt;/p&gt;
&lt;p&gt;Grafana can emit Jaeger or OpenTelemetry Protocol (OTLP) traces for its HTTP API endpoints and propagate Jaeger and &lt;a href=&#34;https://www.w3.org/TR/trace-context/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;w3c Trace Context&lt;/a&gt; trace information to compatible data sources.
All HTTP endpoints are logged evenly (annotations, dashboard, tags, and so on).
When a trace ID is propagated, it is reported with operation &amp;lsquo;HTTP /datasources/proxy/:id/*&amp;rsquo;.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-grafana/#tracingopentelemetry&#34;&gt;Configuration&amp;rsquo;s OpenTelemetry section&lt;/a&gt; for a reference of tracing options available in Grafana.&lt;/p&gt;
&lt;h2 id=&#34;view-grafana-internal-metrics&#34;&gt;View Grafana internal metrics&lt;/h2&gt;
&lt;p&gt;Grafana collects some metrics about itself internally. Grafana supports pushing metrics to Graphite or exposing them to be scraped by Prometheus.&lt;/p&gt;
&lt;p&gt;For more information about configuration options related to Grafana metrics, refer to &lt;a href=&#34;../configure-grafana/#metrics&#34;&gt;metrics&lt;/a&gt; and &lt;a href=&#34;../configure-grafana/#metricsgraphite&#34;&gt;metrics.graphite&lt;/a&gt; in &lt;a href=&#34;../configure-grafana/&#34;&gt;Configuration&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;available-metrics&#34;&gt;Available metrics&lt;/h3&gt;
&lt;p&gt;When enabled, Grafana exposes a number of metrics, including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Active Grafana instances&lt;/li&gt;
&lt;li&gt;Number of dashboards, users, and playlists&lt;/li&gt;
&lt;li&gt;HTTP status codes&lt;/li&gt;
&lt;li&gt;Requests by routing group&lt;/li&gt;
&lt;li&gt;Grafana active alerts&lt;/li&gt;
&lt;li&gt;Grafana performance&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;pull-metrics-from-grafana-into-prometheus&#34;&gt;Pull metrics from Grafana into Prometheus&lt;/h3&gt;
&lt;p&gt;These instructions assume you have already added Prometheus as a data source in Grafana.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enable Prometheus to scrape metrics from Grafana. In your configuration file (&lt;code&gt;grafana.ini&lt;/code&gt; or &lt;code&gt;custom.ini&lt;/code&gt; depending on your operating system) remove the semicolon to enable the following configuration options:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;# Metrics available at HTTP URL /metrics and /metrics/plugins/:pluginId
[metrics]
# Disable / Enable internal metrics
enabled           = true

# Disable total stats (stat_totals_*) metrics to be generated
disable_total_stats = false&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;(optional) If you want to require authorization to view the metrics endpoints, then uncomment and set the following options:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;basic_auth_username =
basic_auth_password =&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart Grafana. Grafana now exposes metrics at http://localhost:3000/metrics.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the job to your prometheus.yml file.
Example:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;- job_name: &amp;#39;grafana_metrics&amp;#39;

   scrape_interval: 15s
   scrape_timeout: 5s

   static_configs:
     - targets: [&amp;#39;localhost:3000&amp;#39;]&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart Prometheus. Your new job should appear on the Targets tab.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In Grafana, hover your mouse over the &lt;strong&gt;Configuration&lt;/strong&gt; (gear) icon on the left sidebar and then click &lt;strong&gt;Data Sources&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select the &lt;strong&gt;Prometheus&lt;/strong&gt; data source.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On the Dashboards tab, &lt;strong&gt;Import&lt;/strong&gt; the Grafana metrics dashboard. All scraped Grafana metrics are available in the dashboard.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;view-grafana-metrics-in-graphite&#34;&gt;View Grafana metrics in Graphite&lt;/h3&gt;
&lt;p&gt;These instructions assume you have already added Graphite as a data source in Grafana.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enable sending metrics to Graphite. In your configuration file (&lt;code&gt;grafana.ini&lt;/code&gt; or &lt;code&gt;custom.ini&lt;/code&gt; depending on your operating system) remove the semicolon to enable the following configuration options:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;# Metrics available at HTTP API Url /metrics
[metrics]
# Disable / Enable internal metrics
enabled           = true

# Disable total stats (stat_totals_*) metrics to be generated
disable_total_stats = false&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable [metrics.graphite] options:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;# Send internal metrics to Graphite
[metrics.graphite]
# Enable by setting the address setting (ex localhost:2003)
address = &amp;lt;hostname or ip&amp;gt;:&amp;lt;port#&amp;gt;
prefix = prod.grafana.%(instance_name)s.&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart Grafana. Grafana now exposes metrics at http://localhost:3000/metrics and sends them to the Graphite location you specified.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;pull-metrics-from-grafana-backend-plugin-into-prometheus&#34;&gt;Pull metrics from Grafana backend plugin into Prometheus&lt;/h3&gt;
&lt;p&gt;Any installed &lt;a href=&#34;/developers/plugin-tools/introduction/backend-plugins&#34;&gt;backend plugin&lt;/a&gt; exposes a metrics endpoint through Grafana that you can configure Prometheus to scrape.&lt;/p&gt;
&lt;p&gt;These instructions assume you have already added Prometheus as a data source in Grafana.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enable Prometheus to scrape backend plugin metrics from Grafana. In your configuration file (&lt;code&gt;grafana.ini&lt;/code&gt; or &lt;code&gt;custom.ini&lt;/code&gt; depending on your operating system) remove the semicolon to enable the following configuration options:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;# Metrics available at HTTP URL /metrics and /metrics/plugins/:pluginId
[metrics]
# Disable / Enable internal metrics
enabled           = true

# Disable total stats (stat_totals_*) metrics to be generated
disable_total_stats = false&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;(optional) If you want to require authorization to view the metrics endpoints, then uncomment and set the following options:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;basic_auth_username =
basic_auth_password =&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart Grafana. Grafana now exposes metrics at &lt;code&gt;http://localhost:3000/metrics/plugins/&amp;lt;plugin id&amp;gt;&lt;/code&gt;, e.g. http://localhost:3000/metrics/plugins/grafana-github-datasource if you have the &lt;a href=&#34;/grafana/plugins/grafana-github-datasource/&#34;&gt;Grafana GitHub datasource&lt;/a&gt; installed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the job to your prometheus.yml file.
Example:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;- job_name: &amp;#39;grafana_github_datasource&amp;#39;

   scrape_interval: 15s
   scrape_timeout: 5s
   metrics_path: /metrics/plugins/grafana-test-datasource

   static_configs:
     - targets: [&amp;#39;localhost:3000&amp;#39;]&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart Prometheus. Your new job should appear on the Targets tab.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In Grafana, hover your mouse over the &lt;strong&gt;Configuration&lt;/strong&gt; (gear) icon on the left sidebar and then click &lt;strong&gt;Data Sources&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select the &lt;strong&gt;Prometheus&lt;/strong&gt; data source.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Import a Golang application metrics dashboard - for example &lt;a href=&#34;/grafana/dashboards/6671&#34;&gt;Go Processes&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="set-up-grafana-monitoring">Set up Grafana monitoring&lt;/h1>
&lt;p>Grafana supports tracing.&lt;/p>
&lt;p>Grafana can emit Jaeger or OpenTelemetry Protocol (OTLP) traces for its HTTP API endpoints and propagate Jaeger and &lt;a href="https://www.w3.org/TR/trace-context/" target="_blank" rel="noopener noreferrer">w3c Trace Context&lt;/a> trace information to compatible data sources.
All HTTP endpoints are logged evenly (annotations, dashboard, tags, and so on).
When a trace ID is propagated, it is reported with operation &amp;lsquo;HTTP /datasources/proxy/:id/*&amp;rsquo;.&lt;/p></description></item><item><title>Set up Grafana for high availability</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-for-high-availability/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-for-high-availability/</guid><content><![CDATA[&lt;h1 id=&#34;set-up-grafana-for-high-availability&#34;&gt;Set up Grafana for high availability&lt;/h1&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;To prevent duplicate alerts in Grafana high availability, additional steps are required.&lt;/p&gt;
&lt;p&gt;Please refer to &lt;a href=&#34;#alerting-high-availability&#34;&gt;Alerting high availability&lt;/a&gt; for more information.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Grafana uses an embedded sqlite3 database to store users, dashboards, and other persistent data by default. For high availability, you must use a shared database to store this data. This shared database can be either MySQL or Postgres.&lt;/p&gt;
&lt;div class=&#34;text-center&#34;&gt;
  &lt;img src=&#34;/static/img/docs/tutorials/grafana-high-availability.png&#34;  max-width= &#34;800px&#34; class=&#34;center&#34; /&gt;
&lt;/div&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;p&gt;Before you complete the following tasks, configure a MySQL or Postgres database to be highly available. Configuring the MySQL or Postgres database for high availability is out of the scope of this guide, but you can find instructions online for each database.&lt;/p&gt;
&lt;h2 id=&#34;configure-multiple-grafana-servers-to-use-the-same-database&#34;&gt;Configure multiple Grafana servers to use the same database&lt;/h2&gt;
&lt;p&gt;Once you have a Postgres or MySQL database available, you can configure your multiple Grafana instances to use a shared backend database. Grafana has default and custom configuration files, and you can update the database settings by updating your custom configuration file as described in the &lt;a href=&#34;../configure-grafana/#database&#34;&gt;[database]&lt;/a&gt;. Once configured to use a shared database, your multiple Grafana instances will persist all long-term data in that database.&lt;/p&gt;
&lt;h2 id=&#34;alerting-high-availability&#34;&gt;Alerting high availability&lt;/h2&gt;
&lt;p&gt;Grafana Alerting provides a &lt;a href=&#34;../../alerting/fundamentals/high-availability/&#34;&gt;high availability mode&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It preserves the semantics of legacy dashboard alerting by executing all alerts on every server and by sending notifications only once per alert. Load distribution between servers is not supported at this time.&lt;/p&gt;
&lt;p&gt;For instructions on setting up alerting high availability, refer to &lt;a href=&#34;../../alerting/set-up/configure-high-availability/&#34;&gt;Enable alerting high availability&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Legacy dashboard alerts&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Legacy Grafana Alerting supports a limited form of high availability. In this model, alert notifications are deduplicated when running multiple servers. This means all alerts are executed on every server, but alert notifications are only sent once per alert. Grafana does not support load distribution between servers.&lt;/p&gt;
&lt;h2 id=&#34;grafana-live&#34;&gt;Grafana Live&lt;/h2&gt;
&lt;p&gt;Grafana Live works with limitations in highly available setup. For details, refer to the &lt;a href=&#34;../set-up-grafana-live/#configure-grafana-live-ha-setup&#34;&gt;Configure Grafana Live HA setup&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;user-sessions&#34;&gt;User sessions&lt;/h2&gt;
&lt;p&gt;Grafana uses auth token strategy with database by default. This means that a load balancer can send a user to any Grafana server without having to log in on each server.&lt;/p&gt;
]]></content><description>&lt;h1 id="set-up-grafana-for-high-availability">Set up Grafana for high availability&lt;/h1>
&lt;div class="admonition admonition-note">&lt;blockquote>&lt;p class="title text-uppercase">Note&lt;/p>&lt;p>To prevent duplicate alerts in Grafana high availability, additional steps are required.&lt;/p>
&lt;p>Please refer to &lt;a href="#alerting-high-availability">Alerting high availability&lt;/a> for more information.&lt;/p></description></item><item><title>Set up Grafana HTTPS for secure web traffic</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-https/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-https/</guid><content><![CDATA[&lt;h1 id=&#34;set-up-grafana-https-for-secure-web-traffic&#34;&gt;Set up Grafana HTTPS for secure web traffic&lt;/h1&gt;
&lt;p&gt;When accessing the Grafana UI through the web, it is important to set up HTTPS to ensure the communication between Grafana and the end user is encrypted, including login credentials and retrieved metric data.&lt;/p&gt;
&lt;p&gt;In order to ensure secure traffic over the internet, Grafana must have a key for encryption and a &lt;a href=&#34;https://www.kaspersky.com/resource-center/definitions/what-is-a-ssl-certificate&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Secure Socket Layer (SSL) Certificate&lt;/a&gt; to verify the identity of the site.&lt;/p&gt;
&lt;p&gt;The following image shows a browser lock icon which confirms the connection is safe.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
    style=&#34;max-width: 500px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/media/docs/grafana/https-config/screenshot-secure-https.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/media/docs/grafana/https-config/screenshot-secure-https.png&#34;data-srcset=&#34;/media/docs/grafana/https-config/screenshot-secure-https.png?w=320 320w, /media/docs/grafana/https-config/screenshot-secure-https.png?w=550 550w, /media/docs/grafana/https-config/screenshot-secure-https.png?w=750 750w, /media/docs/grafana/https-config/screenshot-secure-https.png?w=900 900w, /media/docs/grafana/https-config/screenshot-secure-https.png?w=1040 1040w, /media/docs/grafana/https-config/screenshot-secure-https.png?w=1240 1240w, /media/docs/grafana/https-config/screenshot-secure-https.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Secure HTTPS connection&#34;width=&#34;700&#34;height=&#34;432&#34;title=&#34;Secure HTTPS connection&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/media/docs/grafana/https-config/screenshot-secure-https.png&#34;
            alt=&#34;Secure HTTPS connection&#34;width=&#34;700&#34;height=&#34;432&#34;title=&#34;Secure HTTPS connection&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Secure HTTPS connection&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;This topic shows you how to:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Obtain a certificate and key&lt;/li&gt;
&lt;li&gt;Configure Grafana HTTPS&lt;/li&gt;
&lt;li&gt;Restart the Grafana server&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;p&gt;To follow these instructions, you need:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You must have shell access to the system and &lt;code&gt;sudo&lt;/code&gt; access to perform actions as root or administrator.&lt;/li&gt;
&lt;li&gt;For the CA-signed option, you need a domain name that you possess and that is associated with the machine you are using.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;obtain-a-certificate-and-key&#34;&gt;Obtain a certificate and key&lt;/h2&gt;
&lt;p&gt;You can use one of two methods to obtain a certificate and a key. The faster and easier &lt;em&gt;self-signed&lt;/em&gt; option might show browser warnings to the user that they will have to accept each time they visit the site. Alternatively, the Certificate Authority (CA) signed option requires more steps to complete, but it enables full trust with the browser. To learn more about the difference between these options, refer to &lt;a href=&#34;https://www.baeldung.com/cs/self-signed-ca-vs-certificate&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Difference between self-signed CA and self-signed certificate&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;generate-a-self-signed-certificate&#34;&gt;Generate a self-signed certificate&lt;/h3&gt;
&lt;p&gt;This section shows you how to use &lt;code&gt;openssl&lt;/code&gt; tooling to generate all necessary files from the command line.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to generate a 2048-bit RSA private key, which is used to decrypt traffic:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ sudo openssl genrsa -out /etc/grafana/grafana.key 2048&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to generate a certificate, using the private key from the previous step.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ sudo openssl req -new -key /etc/grafana/grafana.key -out /etc/grafana/grafana.csr&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;When prompted, answer the questions, which might include your fully-qualified domain name, email address, country code, and others. The following example is similar to the prompts you will see.&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter &amp;#39;.&amp;#39;, the field will be left blank.
-----
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:Virginia
Locality Name (eg, city) []:Richmond
Organization Name (eg, company) [Internet Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:subdomain.mysite.com
Email Address []:me@mysite.com

Please enter the following &amp;#39;extra&amp;#39; attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to self-sign the certificate with the private key, for a period of validity of 365 days:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo openssl x509 -req -days 365 -in /etc/grafana/grafana.csr -signkey /etc/grafana/grafana.key -out /etc/grafana/grafana.crt&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following commands to set the appropriate permissions for the files:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo chown grafana:grafana /etc/grafana/grafana.crt
sudo chown grafana:grafana /etc/grafana/grafana.key
sudo chmod 400 /etc/grafana/grafana.key /etc/grafana/grafana.crt&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: When using these files, browsers might provide warnings for the resulting website because a third-party source does not trust the certificate. Browsers will show trust warnings; however, the connection will remain encrypted.&lt;/p&gt;
&lt;p&gt;The following image shows an insecure HTTP connection.&lt;/p&gt;
&lt;figure
       class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
       style=&#34;max-width: 750px;&#34;
       itemprop=&#34;associatedMedia&#34;
       itemscope=&#34;&#34;
       itemtype=&#34;http://schema.org/ImageObject&#34;
     &gt;&lt;a
           class=&#34;lightbox-link captioned&#34;
           href=&#34;/media/docs/grafana/https-config/screenshot-insecure-https.png&#34;
           itemprop=&#34;contentUrl&#34;
         &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
             class=&#34;lazyload mb-0&#34;
             data-src=&#34;/media/docs/grafana/https-config/screenshot-insecure-https.png&#34;data-srcset=&#34;/media/docs/grafana/https-config/screenshot-insecure-https.png?w=320 320w, /media/docs/grafana/https-config/screenshot-insecure-https.png?w=550 550w, /media/docs/grafana/https-config/screenshot-insecure-https.png?w=750 750w, /media/docs/grafana/https-config/screenshot-insecure-https.png?w=900 900w, /media/docs/grafana/https-config/screenshot-insecure-https.png?w=1040 1040w, /media/docs/grafana/https-config/screenshot-insecure-https.png?w=1240 1240w, /media/docs/grafana/https-config/screenshot-insecure-https.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Insecure HTTPS connection&#34;width=&#34;1378&#34;height=&#34;656&#34;title=&#34;Insecure HTTPS connection&#34;/&gt;
           &lt;noscript&gt;
             &lt;img
               src=&#34;/media/docs/grafana/https-config/screenshot-insecure-https.png&#34;
               alt=&#34;Insecure HTTPS connection&#34;width=&#34;1378&#34;height=&#34;656&#34;title=&#34;Insecure HTTPS connection&#34;/&gt;
           &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Insecure HTTPS connection&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;obtain-a-signed-certificate-from-letsencrypt&#34;&gt;Obtain a signed certificate from LetsEncrypt&lt;/h3&gt;
&lt;p&gt;&lt;a href=&#34;https://letsencrypt.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;LetsEncrypt&lt;/a&gt; is a nonprofit certificate authority that provides certificates without any charge. For signed certificates, there are multiple companies and certificate authorities (CAs) available. The principles for generating the certificates might vary slightly in accordance with the provider but will generally remain the same.&lt;/p&gt;
&lt;p&gt;The examples in this section use LetsEncrypt because it is free.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;The instructions provided in this section are for a Debian-based Linux system. For other distributions and operating systems, please refer to the &lt;a href=&#34;https://certbot.eff.org/instructions&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;certbot instructions&lt;/a&gt;. Also, these instructions require you to have a domain name that you are in control of. Dynamic domain names like those from Amazon EC2 or DynDNS providers will not function.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h4 id=&#34;install-snapd-and-certbot&#34;&gt;Install &lt;code&gt;snapd&lt;/code&gt; and &lt;code&gt;certbot&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;&lt;code&gt;certbot&lt;/code&gt; is an open-source program used to manage LetsEncrypt certificates, and &lt;code&gt;snapd&lt;/code&gt; is a tool that assists in running &lt;code&gt;certbot&lt;/code&gt; and installing the certificates.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;To install &lt;code&gt;snapd&lt;/code&gt;, run the following commands:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo apt-get install snapd
sudo snap install core; sudo snap refresh core&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following commands to install:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;sudo apt-get remove certbot
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;These commands:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Uninstall &lt;code&gt;certbot&lt;/code&gt; from your system if it has been installed using a package manager&lt;/li&gt;
&lt;li&gt;Install &lt;code&gt;certbot&lt;/code&gt; using &lt;code&gt;snapd&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id=&#34;generate-certificates-using-certbot&#34;&gt;Generate certificates using &lt;code&gt;certbot&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The &lt;code&gt;sudo certbot certonly --standalone&lt;/code&gt; command prompts you to answer questions before it generates a certificate. This process temporarily opens a service on port &lt;code&gt;80&lt;/code&gt; that LetsEncrypt uses to verify communication with your host.&lt;/p&gt;
&lt;p&gt;To generate certificates using &lt;code&gt;certbot&lt;/code&gt;, complete the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Ensure that port &lt;code&gt;80&lt;/code&gt; traffic is permitted by applicable firewall rules.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to generate certificates:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ sudo certbot certonly --standalone

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
(Enter &amp;#39;c&amp;#39; to cancel): me@mysite.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let’s Encrypt project and the non-profit organization that
develops Certbot? We’d like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: n
Account registered.
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter &amp;#39;c&amp;#39; to cancel): subdomain.mysite.com
Requesting a certificate for subdomain.mysite.com

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/subdomain.mysite.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/subdomain.mysite.com/privkey.pem
This certificate expires on 2023-06-20.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let’s Encrypt:   https://letsencrypt.org/donate
* Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id=&#34;set-up-symlinks-to-grafana&#34;&gt;Set up symlinks to Grafana&lt;/h4&gt;
&lt;p&gt;Symbolic links, also known as symlinks, enable you to create pointers to existing LetsEncrypt files in the &lt;code&gt;/etc/grafana&lt;/code&gt; directory. By using symlinks rather than copying files, you can use &lt;code&gt;certbot&lt;/code&gt; to refresh or request updated certificates from LetsEncrypt without the need to reconfigure the Grafana settings.&lt;/p&gt;
&lt;p&gt;To set up symlinks to Grafana, run the following commands:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ sudo ln -s /etc/letsencrypt/live/subdomain.mysite.com/privkey.pem /etc/grafana/grafana.key
$ sudo ln -s /etc/letsencrypt/live/subdomain.mysite.com/fullchain.pem /etc/grafana/grafana.crt&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;adjust-permissions&#34;&gt;Adjust permissions&lt;/h4&gt;
&lt;p&gt;Grafana usually runs under the &lt;code&gt;grafana&lt;/code&gt; Linux group, and you must ensure that the Grafana server process has permission to read the relevant files. Without read access, the HTTPS server fails to start properly.&lt;/p&gt;
&lt;p&gt;To adjust permissions, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Run the following commands to set the appropriate permissions and groups for the files:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ sudo chgrp -R grafana /etc/letsencrypt/*
$ sudo chmod -R g&amp;#43;rx /etc/letsencrypt/*
$ sudo chgrp -R grafana /etc/grafana/grafana.crt /etc/grafana/grafana.key
$ sudo chmod 400 /etc/grafana/grafana.crt /etc/grafana/grafana.key&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to verify that the &lt;code&gt;grafana&lt;/code&gt; group can read the symlinks:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ $ ls -l /etc/grafana/grafana.*

lrwxrwxrwx 1 root grafana    67 Mar 22 14:15 /etc/grafana/grafana.crt -&amp;gt; /etc/letsencrypt/live/subdomain.mysite.com/fullchain.pem
-rw-r----- 1 root grafana 54554 Mar 22 14:13 /etc/grafana/grafana.ini
lrwxrwxrwx 1 root grafana    65 Mar 22 14:15 /etc/grafana/grafana.key -&amp;gt; /etc/letsencrypt/live/subdomain.mysite.com/privkey.pem&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;configure-grafana-https-and-restart-grafana&#34;&gt;Configure Grafana HTTPS and restart Grafana&lt;/h2&gt;
&lt;p&gt;In this section you edit the &lt;code&gt;grafana.ini&lt;/code&gt; file so that it includes the certificate you created. If you need help identifying where to find this file, or what each key means, refer to &lt;a href=&#34;../configure-grafana/#configuration-file-location&#34;&gt;Configuration file location&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To configure Grafana HTTPS and restart Grafana, complete the following steps.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the &lt;code&gt;grafana.ini&lt;/code&gt; file and edit the following configuration parameters:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;[server]
http_addr =
http_port = 3000
domain = mysite.com
root_url = https://subdomain.mysite.com:3000
cert_key = /etc/grafana/grafana.key
cert_file = /etc/grafana/grafana.crt
enforce_domain = False
protocol = https&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: The standard port for SSL traffic is 443, which you can use instead of Grafana&amp;rsquo;s default port 3000. This change might require additional operating system privileges or configuration to bind to lower-numbered privileged ports.&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../start-restart-grafana/#linux&#34;&gt;Restart the Grafana server&lt;/a&gt; using &lt;code&gt;systemd&lt;/code&gt;, &lt;code&gt;init.d&lt;/code&gt;, or the binary as appropriate for your environment.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;troubleshooting&#34;&gt;Troubleshooting&lt;/h2&gt;
&lt;p&gt;Refer to the following troubleshooting tips as required.&lt;/p&gt;
&lt;h3 id=&#34;failure-to-obtain-a-certificate&#34;&gt;Failure to obtain a certificate&lt;/h3&gt;
&lt;p&gt;The following reasons explain why the &lt;code&gt;certbot&lt;/code&gt; process might fail:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To make sure you can get a certificate from LetsEncrypt, you need to ensure that port 80 is open so that LetsEncrypt can communicate with your machine. If port 80 is blocked or firewall is enabled, the exchange will fail and you won&amp;rsquo;t be able to receive a certificate.&lt;/li&gt;
&lt;li&gt;LetsEncrypt requires proof that you control the domain, so attempts to obtain certificates for domains you do not
control might be rejected.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;grafana-starts-but-https-is-unavailable&#34;&gt;Grafana starts, but HTTPS is unavailable&lt;/h3&gt;
&lt;p&gt;When you configure HTTPS, the following errors might appear in Grafana&amp;rsquo;s logs.&lt;/p&gt;
&lt;h4 id=&#34;permission-denied&#34;&gt;Permission denied&lt;/h4&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;level=error msg=&amp;#34;Stopped background service&amp;#34; service=*api.HTTPServer reason=&amp;#34;open /etc/grafana/grafana.crt: permission denied&amp;#34;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h5 id=&#34;resolution&#34;&gt;Resolution&lt;/h5&gt;
&lt;p&gt;To ensure secure HTTPS setup, it is essential that the cryptographic keys and certificates are as restricted as possible. However, if the file permissions are too restricted, the Grafana process may not have access to the necessary files, thus impeding a successful HTTPS setup. Please re-examine the listed instructions to double check the file permissions and try again.&lt;/p&gt;
&lt;h4 id=&#34;cannot-assign-requested-address&#34;&gt;Cannot assign requested address&lt;/h4&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;listen tcp 34.148.30.243:3000: bind: cannot assign requested address&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h5 id=&#34;resolution-1&#34;&gt;Resolution&lt;/h5&gt;
&lt;p&gt;Check the config to ensure the &lt;code&gt;http_addr&lt;/code&gt; is left blank, allowing Grafana to bind to all interfaces. If you have set &lt;code&gt;http_addr&lt;/code&gt; to a specific subdomain, such as &lt;code&gt;subdomain.mysite.com&lt;/code&gt;, this might prevent the Grafana process from binding to an external address, due to network address translation layers being present.&lt;/p&gt;
]]></content><description>&lt;h1 id="set-up-grafana-https-for-secure-web-traffic">Set up Grafana HTTPS for secure web traffic&lt;/h1>
&lt;p>When accessing the Grafana UI through the web, it is important to set up HTTPS to ensure the communication between Grafana and the end user is encrypted, including login credentials and retrieved metric data.&lt;/p></description></item><item><title>Set up image rendering</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/image-rendering/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/image-rendering/</guid><content><![CDATA[&lt;h1 id=&#34;set-up-image-rendering&#34;&gt;Set up image rendering&lt;/h1&gt;
&lt;p&gt;Grafana supports automatic rendering of panels as PNG images. This allows Grafana to automatically generate images of your panels to include in alert notifications, &lt;a href=&#34;../../dashboards/create-reports/#export-dashboard-as-pdf&#34;&gt;PDF export&lt;/a&gt;, and &lt;a href=&#34;../../dashboards/create-reports/&#34;&gt;Reporting&lt;/a&gt;. PDF Export and Reporting are available only in &lt;a href=&#34;../../introduction/grafana-enterprise/&#34;&gt;Grafana Enterprise&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Image rendering of dashboards is not supported at this time.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;While an image is being rendered, the PNG image is temporarily written to the file system. When the image is rendered, the PNG image is temporarily written to the &lt;code&gt;png&lt;/code&gt; folder in the Grafana &lt;code&gt;data&lt;/code&gt; folder.&lt;/p&gt;
&lt;p&gt;A background job runs every 10 minutes and removes temporary images. You can configure how long an image should be stored before being removed by configuring the &lt;a href=&#34;../configure-grafana/#temp_data_lifetime&#34;&gt;temp_data_lifetime&lt;/a&gt; setting.&lt;/p&gt;
&lt;p&gt;You can also render a PNG by hovering over the panel to display the actions menu in the top right corner, and then clicking &lt;strong&gt;Share &amp;gt; Direct link rendered image&lt;/strong&gt; in the Link tab.&lt;/p&gt;
&lt;h2 id=&#34;alerting-and-render-limits&#34;&gt;Alerting and render limits&lt;/h2&gt;
&lt;p&gt;Alert notifications can include images, but rendering many images at the same time can overload the server where the renderer is running. For instructions of how to configure this, see &lt;a href=&#34;../configure-grafana/#concurrent_render_limit&#34;&gt;concurrent_render_limit&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;install-grafana-image-renderer-plugin&#34;&gt;Install Grafana Image Renderer plugin&lt;/h2&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Starting from Grafana v7.0.0, all PhantomJS support has been removed. Please use the Grafana Image Renderer plugin or remote rendering service.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;To install the plugin, refer to the &lt;a href=&#34;/grafana/plugins/grafana-image-renderer/?tab=installation#installation&#34;&gt;Grafana Image Renderer Installation instructions&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;The Grafana Image Renderer plugin has a number of configuration options that are used in plugin or remote rendering modes.&lt;/p&gt;
&lt;p&gt;In plugin mode, you can specify them directly in the &lt;a href=&#34;../configure-grafana/#plugingrafana-image-renderer&#34;&gt;Grafana configuration file&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In remote rendering mode, you can specify them in a &lt;code&gt;.json&lt;/code&gt; &lt;a href=&#34;#configuration-file&#34;&gt;configuration file&lt;/a&gt; or, for some of them, you can override the configuration defaults using environment variables.&lt;/p&gt;
&lt;h3 id=&#34;configuration-file&#34;&gt;Configuration file&lt;/h3&gt;
&lt;p&gt;You can update your settings by using a configuration file, see &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer/tree/master/default.json&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;default.json&lt;/a&gt; for defaults. Note that any configured environment variable takes precedence over configuration file settings.&lt;/p&gt;
&lt;p&gt;You can volume mount your custom configuration file when starting the docker container:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker run -d --name=renderer --network=host -v /some/path/config.json:/usr/src/app/config.json grafana/grafana-image-renderer:latest&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You can see a docker-compose example using a custom configuration file &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer/tree/master/devenv/docker/custom-config&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;security&#34;&gt;Security&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This feature is available in Image Renderer v3.6.1 and later.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;You can restrict access to the rendering endpoint by specifying a secret token. The token should be configured in the Grafana configuration file and the renderer configuration file. This token is important when you run the plugin in remote rendering mode.&lt;/p&gt;
&lt;p&gt;Renderer versions v3.6.1 or later require a Grafana version with this feature. These include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Grafana v9.1.2 or later&lt;/li&gt;
&lt;li&gt;Grafana v9.0.8 or later patch releases&lt;/li&gt;
&lt;li&gt;Grafana v8.5.11 or later patch releases&lt;/li&gt;
&lt;li&gt;Grafana v8.4.11 or later patch releases&lt;/li&gt;
&lt;li&gt;Grafana v8.3.11 or later patch releases&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;AUTH_TOKEN=-&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;security&amp;#34;: {
    &amp;#34;authToken&amp;#34;: &amp;#34;-&amp;#34;
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;See &lt;a href=&#34;../configure-grafana/#renderer_token&#34;&gt;Grafana configuration&lt;/a&gt; for how to configure the token in Grafana.&lt;/p&gt;
&lt;h3 id=&#34;rendering-mode&#34;&gt;Rendering mode&lt;/h3&gt;
&lt;p&gt;You can instruct how headless browser instances are created by configuring a rendering mode. Default is &lt;code&gt;default&lt;/code&gt;, other supported values are &lt;code&gt;clustered&lt;/code&gt; and &lt;code&gt;reusable&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;default&#34;&gt;Default&lt;/h4&gt;
&lt;p&gt;Default mode will create a new browser instance on each request. When handling multiple concurrent requests, this mode increases memory usage as it will launch multiple browsers at the same time. If you want to set a maximum number of browser to open, you&amp;rsquo;ll need to use the &lt;a href=&#34;#clustered&#34;&gt;clustered mode&lt;/a&gt;.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;When using the &lt;code&gt;default&lt;/code&gt; mode, it&amp;rsquo;s recommended to not remove the default Chromium flag &lt;code&gt;--disable-gpu&lt;/code&gt;. When receiving a lot of concurrent requests, not using this flag can cause Puppeteer &lt;code&gt;newPage&lt;/code&gt; function to freeze, causing request timeouts and leaving browsers open.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;


&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;RENDERING_MODE=default&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;mode&amp;#34;: &amp;#34;default&amp;#34;
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;clustered&#34;&gt;Clustered&lt;/h4&gt;
&lt;p&gt;With the &lt;code&gt;clustered&lt;/code&gt; mode, you can configure how many browser instances or incognito pages can execute concurrently. Default is &lt;code&gt;browser&lt;/code&gt; and will ensure a maximum amount of browser instances can execute concurrently. Mode &lt;code&gt;context&lt;/code&gt; will ensure a maximum amount of incognito pages can execute concurrently. You can also configure the maximum concurrency allowed, which per default is &lt;code&gt;5&lt;/code&gt;, and the maximum duration of a rendering request, which per default is &lt;code&gt;30&lt;/code&gt; seconds.&lt;/p&gt;
&lt;p&gt;Using a cluster of incognito pages is more performant and consumes less CPU and memory than a cluster of browsers. However, if one page crashes it can bring down the entire browser with it (making all the rendering requests happening at the same time fail). Also, each page isn&amp;rsquo;t guaranteed to be totally clean (cookies and storage might bleed-through as seen &lt;a href=&#34;https://bugs.chromium.org/p/chromium/issues/detail?id=754576&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;here&lt;/a&gt;).&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;RENDERING_MODE=clustered
RENDERING_CLUSTERING_MODE=browser
RENDERING_CLUSTERING_MAX_CONCURRENCY=5
RENDERING_CLUSTERING_TIMEOUT=30&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;mode&amp;#34;: &amp;#34;clustered&amp;#34;,
    &amp;#34;clustering&amp;#34;: {
      &amp;#34;mode&amp;#34;: &amp;#34;browser&amp;#34;,
      &amp;#34;maxConcurrency&amp;#34;: 5,
      &amp;#34;timeout&amp;#34;: 30
    }
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;reusable-experimental&#34;&gt;Reusable (experimental)&lt;/h4&gt;
&lt;p&gt;When using the rendering mode &lt;code&gt;reusable&lt;/code&gt;, one browser instance will be created and reused. A new incognito page will be opened for each request. This mode is experimental since, if the browser instance crashes, it will not automatically be restarted. You can achieve a similar behavior using &lt;code&gt;clustered&lt;/code&gt; mode with a high &lt;code&gt;maxConcurrency&lt;/code&gt; setting.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;RENDERING_MODE=reusable&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;mode&amp;#34;: &amp;#34;reusable&amp;#34;
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;optimize-the-performance-cpu-and-memory-usage-of-the-image-renderer&#34;&gt;Optimize the performance, CPU and memory usage of the image renderer&lt;/h4&gt;
&lt;p&gt;The performance and resources consumption of the different modes depend a lot on the number of concurrent requests your service is handling. To understand how many concurrent requests your service is handling, &lt;a href=&#34;monitoring/&#34;&gt;monitor your image renderer service&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With no concurrent requests, the different modes show very similar performance and CPU / memory usage.&lt;/p&gt;
&lt;p&gt;When handling concurrent requests, we see the following trends:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To improve performance and reduce CPU and memory consumption, use &lt;a href=&#34;#clustered&#34;&gt;clustered&lt;/a&gt; mode with &lt;code&gt;RENDERING_CLUSTERING_MODE&lt;/code&gt; set as &lt;code&gt;context&lt;/code&gt;. This parallelizes incognito pages instead of browsers.&lt;/li&gt;
&lt;li&gt;If you use the &lt;a href=&#34;#clustered&#34;&gt;clustered&lt;/a&gt; mode with a &lt;code&gt;maxConcurrency&lt;/code&gt; setting below your average number of concurrent requests, performance will drop as the rendering requests will need to wait for the other to finish before getting access to an incognito page / browser.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To achieve better performance, monitor the machine on which your service is running. If you don&amp;rsquo;t have enough memory and / or CPU, every rendering step will be slower than usual, increasing the duration of every rendering request.&lt;/p&gt;
&lt;h3 id=&#34;other-available-settings&#34;&gt;Other available settings&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Please note that not all settings are available using environment variables. If there is no example using environment variable below, it means that you need to update the configuration file.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h4 id=&#34;http-host&#34;&gt;HTTP host&lt;/h4&gt;
&lt;p&gt;Change the listening host of the HTTP server. Default is unset and will use the local host.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;HTTP_HOST=localhost&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;service&amp;#34;: {
    &amp;#34;host&amp;#34;: &amp;#34;localhost&amp;#34;
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;http-port&#34;&gt;HTTP port&lt;/h4&gt;
&lt;p&gt;Change the listening port of the HTTP server. Default is &lt;code&gt;8081&lt;/code&gt;. Setting &lt;code&gt;0&lt;/code&gt; will automatically assign a port not in use.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;HTTP_PORT=0&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;service&amp;#34;: {
    &amp;#34;port&amp;#34;: 0
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;enable-prometheus-metrics&#34;&gt;Enable Prometheus metrics&lt;/h4&gt;
&lt;p&gt;You can enable &lt;a href=&#34;https://prometheus.io/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Prometheus&lt;/a&gt; metrics endpoint &lt;code&gt;/metrics&lt;/code&gt; using the environment variable &lt;code&gt;ENABLE_METRICS&lt;/code&gt;. Node.js and render request duration metrics are included, see &lt;a href=&#34;monitoring/#enable-prometheus-metrics-endpoint&#34;&gt;Enable Prometheus metrics endpoint&lt;/a&gt; for details.&lt;/p&gt;
&lt;p&gt;Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;ENABLE_METRICS=true&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;service&amp;#34;: {
    &amp;#34;metrics&amp;#34;: {
      &amp;#34;enabled&amp;#34;: true,
      &amp;#34;collectDefaultMetrics&amp;#34;: true,
      &amp;#34;requestDurationBuckets&amp;#34;: [1, 5, 7, 9, 11, 13, 15, 20, 30]
    }
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;log-level&#34;&gt;Log level&lt;/h4&gt;
&lt;p&gt;Change the log level. Default is &lt;code&gt;info&lt;/code&gt; and will include log messages with level &lt;code&gt;error&lt;/code&gt;, &lt;code&gt;warning&lt;/code&gt; and &lt;code&gt;info&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;LOG_LEVEL=debug&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;service&amp;#34;: {
    &amp;#34;logging&amp;#34;: {
      &amp;#34;level&amp;#34;: &amp;#34;debug&amp;#34;,
      &amp;#34;console&amp;#34;: {
        &amp;#34;json&amp;#34;: false,
        &amp;#34;colorize&amp;#34;: true
      }
    }
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;verbose-logging&#34;&gt;Verbose logging&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance whether to capture and log verbose information when rendering an image. Default is &lt;code&gt;false&lt;/code&gt; and will only capture and log error messages. When enabled (&lt;code&gt;true&lt;/code&gt;) debug messages are captured and logged as well.&lt;/p&gt;
&lt;p&gt;Note that you need to change log level to &lt;code&gt;debug&lt;/code&gt;, see above, for the verbose information to be included in the logs.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;RENDERING_VERBOSE_LOGGING=true&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;verboseLogging&amp;#34;: true
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;capture-browser-output&#34;&gt;Capture browser output&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance whether to output its debug and error messages into running process of remote rendering service. Default is &lt;code&gt;false&lt;/code&gt;.
This can be useful to enable (&lt;code&gt;true&lt;/code&gt;) when troubleshooting.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;RENDERING_DUMPIO=true&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;dumpio&amp;#34;: true
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;custom-chromechromium&#34;&gt;Custom Chrome/Chromium&lt;/h4&gt;
&lt;p&gt;If you already have &lt;a href=&#34;https://www.google.com/chrome/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Chrome&lt;/a&gt; or &lt;a href=&#34;https://www.chromium.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Chromium&lt;/a&gt;
installed on your system, then you can use this instead of the pre-packaged version of Chromium.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Please note that this is not recommended, since you may encounter problems if the installed version of Chrome/Chromium is not compatible with the &lt;a href=&#34;/grafana/plugins/grafana-image-renderer&#34;&gt;Grafana Image renderer plugin&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;You need to make sure that the Chrome/Chromium executable is available for the Grafana/image rendering service process.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;CHROME_BIN=&amp;#34;/usr/bin/chromium-browser&amp;#34;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;chromeBin&amp;#34;: &amp;#34;/usr/bin/chromium-browser&amp;#34;
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;start-browser-with-additional-arguments&#34;&gt;Start browser with additional arguments&lt;/h4&gt;
&lt;p&gt;Additional arguments to pass to the headless browser instance. Defaults are &lt;code&gt;--no-sandbox,--disable-gpu&lt;/code&gt;. The list of Chromium flags can be found &lt;a href=&#34;https://peter.sh/experiments/chromium-command-line-switches/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;here&lt;/a&gt; and the list of flags used as defaults by Puppeteer can be found &lt;a href=&#34;https://cri.dev/posts/2020-04-04-Full-list-of-Chromium-Puppeteer-flags/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;there&lt;/a&gt;. Multiple arguments is separated with comma-character.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;RENDERING_ARGS=--no-sandbox,--disable-setuid-sandbox,--disable-dev-shm-usage,--disable-accelerated-2d-canvas,--disable-gpu,--window-size=1280x758&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;args&amp;#34;: [
      &amp;#34;--no-sandbox&amp;#34;,
      &amp;#34;--disable-setuid-sandbox&amp;#34;,
      &amp;#34;--disable-dev-shm-usage&amp;#34;,
      &amp;#34;--disable-accelerated-2d-canvas&amp;#34;,
      &amp;#34;--disable-gpu&amp;#34;,
      &amp;#34;--window-size=1280x758&amp;#34;
    ]
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;ignore-https-errors&#34;&gt;Ignore HTTPS errors&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance whether to ignore HTTPS errors during navigation. Per default HTTPS errors are not ignored.
Due to the security risk it&amp;rsquo;s not recommended to ignore HTTPS errors.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;IGNORE_HTTPS_ERRORS=true&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;ignoresHttpsErrors&amp;#34;: true
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;default-timezone&#34;&gt;Default timezone&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance to use a default timezone when not provided by Grafana, .e.g. when rendering panel image of alert. See &lt;a href=&#34;https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;ICU’s metaZones.txt&lt;/a&gt; for a list of supported timezone IDs. Fallbacks to &lt;code&gt;TZ&lt;/code&gt; environment variable if not set.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;BROWSER_TZ=Europe/Stockholm&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;timezone&amp;#34;: &amp;#34;Europe/Stockholm&amp;#34;
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;default-language&#34;&gt;Default language&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance to use a default language when not provided by Grafana, e.g. when rendering panel image of alert.
Refer to the HTTP header Accept-Language to understand how to format this value.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;acceptLanguage&amp;#34;: &amp;#34;fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5&amp;#34;
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;viewport-width&#34;&gt;Viewport width&lt;/h4&gt;
&lt;p&gt;Default viewport width when width is not specified in the rendering request. Default is &lt;code&gt;1000&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;width&amp;#34;: 1000
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;viewport-height&#34;&gt;Viewport height&lt;/h4&gt;
&lt;p&gt;Default viewport height when height is not specified in the rendering request. Default is &lt;code&gt;500&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;height&amp;#34;: 500
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;viewport-maximum-width&#34;&gt;Viewport maximum width&lt;/h4&gt;
&lt;p&gt;Limit the maximum viewport width that can be requested. Default is &lt;code&gt;3000&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;maxWidth&amp;#34;: 1000
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;viewport-maximum-height&#34;&gt;Viewport maximum height&lt;/h4&gt;
&lt;p&gt;Limit the maximum viewport height that can be requested. Default is &lt;code&gt;3000&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;maxHeight&amp;#34;: 500
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;device-scale-factor&#34;&gt;Device scale factor&lt;/h4&gt;
&lt;p&gt;Specify default device scale factor for rendering images. &lt;code&gt;2&lt;/code&gt; is enough for monitor resolutions, &lt;code&gt;4&lt;/code&gt; would be better for printed material. Setting a higher value affects performance and memory. Default is &lt;code&gt;1&lt;/code&gt;.
This can be overridden in the rendering request.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;deviceScaleFactor&amp;#34;: 2
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;maximum-device-scale-factor&#34;&gt;Maximum device scale factor&lt;/h4&gt;
&lt;p&gt;Limit the maximum device scale factor that can be requested. Default is &lt;code&gt;4&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;maxDeviceScaleFactor&amp;#34;: 4
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;page-zoom-level&#34;&gt;Page zoom level&lt;/h4&gt;
&lt;p&gt;The following command sets a page zoom level. The default value is &lt;code&gt;1&lt;/code&gt;. A value of &lt;code&gt;1.5&lt;/code&gt; equals 150% zoom.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;RENDERING_VIEWPORT_PAGE_ZOOM_LEVEL=1&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
  &amp;#34;rendering&amp;#34;: {
    &amp;#34;pageZoomLevel&amp;#34;: 1
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
]]></content><description>&lt;h1 id="set-up-image-rendering">Set up image rendering&lt;/h1>
&lt;p>Grafana supports automatic rendering of panels as PNG images. This allows Grafana to automatically generate images of your panels to include in alert notifications, &lt;a href="../../dashboards/create-reports/#export-dashboard-as-pdf">PDF export&lt;/a>, and &lt;a href="../../dashboards/create-reports/">Reporting&lt;/a>. PDF Export and Reporting are available only in &lt;a href="../../introduction/grafana-enterprise/">Grafana Enterprise&lt;/a>.&lt;/p></description></item><item><title>Set up Grafana Live</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-grafana-live/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/set-up-grafana-live/</guid><content><![CDATA[&lt;h1 id=&#34;set-up-grafana-live&#34;&gt;Set up Grafana Live&lt;/h1&gt;
&lt;p&gt;Grafana Live is a real-time messaging engine introduced in Grafana v8.0.&lt;/p&gt;
&lt;p&gt;With Grafana Live, you can push event data to a frontend as soon as an event occurs.&lt;/p&gt;
&lt;p&gt;This could be notifications about dashboard changes, new frames for rendered data, and so on. Live features can help eliminate a page reload or polling in many places, it can stream Internet of things (IoT) sensors or any other real-time data to panels.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;By &lt;code&gt;real-time&lt;/code&gt;, we indicate a soft real-time. Due to network latencies, garbage collection cycles, and so on, the delay of a delivered message can be up to several hundred milliseconds or higher.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;concepts&#34;&gt;Concepts&lt;/h2&gt;
&lt;p&gt;Grafana Live sends data to clients over persistent WebSocket connection. Grafana frontend subscribes on channels to receive data which was published into that channel – in other words PUB/SUB mechanics is used. All subscriptions on a page multiplexed inside a single WebSocket connection. There are some rules regarding Live channel names – see &lt;a href=&#34;#grafana-live-channel&#34;&gt;Grafana Live channel&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Handling persistent connections like WebSocket in scale may require operating system and infrastructure tuning. That&amp;rsquo;s why by default Grafana Live supports 100 simultaneous connections max. For more details on how to tune this limit, refer to &lt;a href=&#34;#configure-grafana-live&#34;&gt;Live configuration section&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;features&#34;&gt;Features&lt;/h2&gt;
&lt;p&gt;Having a way to send data to clients in real-time opens a road for new ways of data interaction and visualization. Below we describe Grafana Live features supported at the moment.&lt;/p&gt;
&lt;h3 id=&#34;dashboard-change-notifications&#34;&gt;Dashboard change notifications&lt;/h3&gt;
&lt;p&gt;As soon as there is a change to the dashboard layout, it is automatically reflected on other devices connected to Grafana Live.&lt;/p&gt;
&lt;h3 id=&#34;data-streaming-from-plugins&#34;&gt;Data streaming from plugins&lt;/h3&gt;
&lt;p&gt;With Grafana Live, backend data source plugins can stream updates to frontend panels.&lt;/p&gt;
&lt;p&gt;For data source plugin channels, Grafana uses &lt;code&gt;ds&lt;/code&gt; scope. Namespace in the case of data source channels is a data source unique ID (UID) which is issued by Grafana at the moment of data source creation. The path is a custom string that plugin authors free to choose themselves (just make sure it consists of allowed symbols).&lt;/p&gt;
&lt;p&gt;For example, a data source channel looks like this: &lt;code&gt;ds/&amp;lt;DATASOURCE_UID&amp;gt;/&amp;lt;CUSTOM_PATH&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Refer to the tutorial about &lt;a href=&#34;/tutorials/build-a-streaming-data-source-plugin/&#34;&gt;building a streaming data source backend plugin&lt;/a&gt; for more details.&lt;/p&gt;
&lt;p&gt;The basic streaming example included in Grafana core streams frames with some generated data to a panel. To look at it create a new panel and point it to the &lt;code&gt;-- Grafana --&lt;/code&gt; data source. Next, choose &lt;code&gt;Live Measurements&lt;/code&gt; and select the &lt;code&gt;plugin/testdata/random-20Hz-stream&lt;/code&gt; channel.&lt;/p&gt;
&lt;h3 id=&#34;data-streaming-from-telegraf&#34;&gt;Data streaming from Telegraf&lt;/h3&gt;
&lt;p&gt;A new API endpoint &lt;code&gt;/api/live/push/:streamId&lt;/code&gt; allows accepting metrics data in Influx format from Telegraf. These metrics are transformed into Grafana data frames and published to channels.&lt;/p&gt;
&lt;p&gt;Refer to the tutorial about &lt;a href=&#34;/tutorials/stream-metrics-from-telegraf-to-grafana/&#34;&gt;streaming metrics from Telegraf to Grafana&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id=&#34;grafana-live-channel&#34;&gt;Grafana Live channel&lt;/h2&gt;
&lt;p&gt;Grafana Live is a PUB/SUB server, clients subscribe to channels to receive real-time updates published to those channels.&lt;/p&gt;
&lt;h3 id=&#34;channel-structure&#34;&gt;Channel structure&lt;/h3&gt;
&lt;p&gt;Channel is a string identifier. In Grafana channel consists of 3 parts delimited by &lt;code&gt;/&lt;/code&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Scope&lt;/li&gt;
&lt;li&gt;Namespace&lt;/li&gt;
&lt;li&gt;Path&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, the channel &lt;code&gt;grafana/dashboard/xyz&lt;/code&gt; has the scope &lt;code&gt;grafana&lt;/code&gt;, namespace &lt;code&gt;dashboard&lt;/code&gt;, and path &lt;code&gt;xyz&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Scope, namespace and path can only have ASCII alphanumeric symbols (A-Z, a-z, 0-9), &lt;code&gt;_&lt;/code&gt; (underscore) and &lt;code&gt;-&lt;/code&gt; (dash) at the moment. The path part can additionally have &lt;code&gt;/&lt;/code&gt;, &lt;code&gt;.&lt;/code&gt; and &lt;code&gt;=&lt;/code&gt; symbols. The meaning of scope, namespace and path is context-specific.&lt;/p&gt;
&lt;p&gt;The maximum length of a channel is 160 symbols.&lt;/p&gt;
&lt;p&gt;Scope determines the purpose of a channel in Grafana. For example, for data source plugin channels Grafana uses &lt;code&gt;ds&lt;/code&gt; scope. For built-in features like dashboard edit notifications Grafana uses &lt;code&gt;grafana&lt;/code&gt; scope.&lt;/p&gt;
&lt;p&gt;Namespace has a different meaning depending on scope. For example, for &lt;code&gt;grafana&lt;/code&gt; scope this could be a name of built-in real-time feature like &lt;code&gt;dashboard&lt;/code&gt; (i.e. dashboards events).&lt;/p&gt;
&lt;p&gt;The path, which is the final part of a channel, usually contains the identifier of some concrete resource such as the ID of a dashboard that a user is currently looking at. But a path can be anything.&lt;/p&gt;
&lt;p&gt;Channels are lightweight and ephemeral - they are created automatically on user subscription and removed as soon as last user left a channel.&lt;/p&gt;
&lt;h3 id=&#34;data-format&#34;&gt;Data format&lt;/h3&gt;
&lt;p&gt;All data travelling over Live channels must be JSON-encoded.&lt;/p&gt;
&lt;h2 id=&#34;configure-grafana-live&#34;&gt;Configure Grafana Live&lt;/h2&gt;
&lt;p&gt;Grafana Live is enabled by default. In Grafana v8.0, it has a strict default for a maximum number of connections per Grafana server instance.&lt;/p&gt;
&lt;h3 id=&#34;max-number-of-connections&#34;&gt;Max number of connections&lt;/h3&gt;
&lt;p&gt;Grafana Live uses persistent connections (WebSocket at the moment) to deliver real-time updates to clients.&lt;/p&gt;
&lt;p&gt;WebSocket is a persistent connection that starts with an HTTP Upgrade request (using the same HTTP port as the rest of Grafana) and then switches to a TCP mode where WebSocket frames can travel in both directions between a client and a server. Each logged-in user opens a WebSocket connection – one per browser tab.&lt;/p&gt;
&lt;p&gt;The number of maximum WebSocket connections users can establish with Grafana is limited to 100 by default. See &lt;a href=&#34;../configure-grafana/#max_connections&#34;&gt;max_connections&lt;/a&gt; option.&lt;/p&gt;
&lt;p&gt;In case you want to increase this limit, ensure that your server and infrastructure allow handling more connections. The following sections discuss several common problems which could happen when managing persistent connections, in particular WebSocket connections.&lt;/p&gt;
&lt;h3 id=&#34;request-origin-check&#34;&gt;Request origin check&lt;/h3&gt;
&lt;p&gt;To avoid hijacking of WebSocket connection Grafana Live checks the Origin request header sent by a client in an HTTP Upgrade request. Requests without Origin header pass through without any origin check.&lt;/p&gt;
&lt;p&gt;By default, Live accepts connections with Origin header that matches configured &lt;a href=&#34;../configure-grafana/#root_url&#34;&gt;root_url&lt;/a&gt; (which is a public Grafana URL).&lt;/p&gt;
&lt;p&gt;It is possible to provide a list of additional origin patterns to allow WebSocket connections from. This can be achieved using the &lt;a href=&#34;../configure-grafana/#allowed_origins&#34;&gt;allowed_origins&lt;/a&gt; option of Grafana Live configuration.&lt;/p&gt;
&lt;h4 id=&#34;resource-usage&#34;&gt;Resource usage&lt;/h4&gt;
&lt;p&gt;Each persistent connection costs some memory on a server. Typically, this should be about 50 KB per connection at this moment. Thus a server with 1 GB RAM is expected to handle about 20k connections max. Each active connection consumes additional CPU resources since the client and server send PING/PONG frames to each other to maintain a connection.&lt;/p&gt;
&lt;p&gt;Using the streaming functionality results in additional CPU usage. The exact CPU resource utilization can be hard to estimate as it heavily depends on the Grafana Live usage pattern.&lt;/p&gt;
&lt;h4 id=&#34;open-file-limit&#34;&gt;Open file limit&lt;/h4&gt;
&lt;p&gt;Each WebSocket connection costs a file descriptor on a server machine where Grafana runs. Most operating systems have a quite low default limit for the maximum number of descriptors that process can open.&lt;/p&gt;
&lt;p&gt;To look at the current limit on Unix run:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;ulimit -n&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;On a Linux system, you can also check out the current limits for a running process with:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;cat /proc/&amp;lt;PROCESS_PID&amp;gt;/limits&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The open files limit shows approximately how many user connections your server can currently handle.&lt;/p&gt;
&lt;p&gt;To increase this limit, refer to &lt;a href=&#34;https://docs.riak.com/riak/kv/2.2.3/using/performance/open-files-limit.1.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;these instructions&lt;/a&gt;for popular operating systems.&lt;/p&gt;
&lt;h4 id=&#34;ephemeral-port-exhaustion&#34;&gt;Ephemeral port exhaustion&lt;/h4&gt;
&lt;p&gt;Ephemeral port exhaustion problem can happen between your load balancer (or reverse proxy) software and Grafana server. For example, when you load balance requests/connections between different Grafana instances. If you connect directly to a single Grafana server instance, then you should not come across this issue.&lt;/p&gt;
&lt;p&gt;The problem arises because each TCP connection uniquely identified in the OS by the 4-part-tuple:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;source ip | source port | destination ip | destination port&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;By default, on load balancer/server boundary you are limited to 65535 possible variants. But actually, due to some OS limits (for example on Unix available ports defined in &lt;code&gt;ip_local_port_range&lt;/code&gt; sysctl parameter) and sockets in TIME_WAIT state, the number is even less.&lt;/p&gt;
&lt;p&gt;In order to eliminate a problem you can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Increase the ephemeral port range by tuning &lt;code&gt;ip_local_port_range&lt;/code&gt; kernel option.&lt;/li&gt;
&lt;li&gt;Deploy more Grafana server instances to load balance across.&lt;/li&gt;
&lt;li&gt;Deploy more load balancer instances.&lt;/li&gt;
&lt;li&gt;Use virtual network interfaces.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;websocket-and-proxies&#34;&gt;WebSocket and proxies&lt;/h4&gt;
&lt;p&gt;Not all proxies can transparently proxy WebSocket connections by default. For example, if you are using Nginx before Grafana you need to configure WebSocket proxy like this:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;http {
    map $http_upgrade $connection_upgrade {
        default upgrade;
        &amp;#39;&amp;#39; close;
    }

    upstream grafana {
        server 127.0.0.1:3000;
    }

    server {
        listen 8000;

        location / {
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection $connection_upgrade;
            proxy_set_header Host $http_host;
            proxy_pass http://grafana;
        }
    }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;See the &lt;a href=&#34;https://www.nginx.com/blog/websocket-nginx/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Nginx blog on their website&lt;/a&gt; for more information. Also, refer to your load balancer/reverse proxy documentation to find out more information on dealing with WebSocket connections.&lt;/p&gt;
&lt;p&gt;Some corporate proxies can remove headers required to properly establish a WebSocket connection. In this case, you should tune intermediate proxies to not remove required headers. However, the better option is to use Grafana with TLS. Now WebSocket connection will inherit TLS and thus must be handled transparently by proxies.&lt;/p&gt;
&lt;p&gt;Proxies like Nginx and Envoy have default limits on maximum number of connections which can be established. Make sure you have a reasonable limit for max number of incoming and outgoing connections in your proxy configuration.&lt;/p&gt;
&lt;h2 id=&#34;configure-grafana-live-ha-setup&#34;&gt;Configure Grafana Live HA setup&lt;/h2&gt;
&lt;p&gt;By default, Grafana Live uses in-memory data structures and in-memory PUB/SUB hub for handling subscriptions.&lt;/p&gt;
&lt;p&gt;In a high availability Grafana setup involving several Grafana server instances behind a load balancer, you can find the following limitations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Built-in features like dashboard change notifications will only be broadcasted to users connected to the same Grafana server process instance.&lt;/li&gt;
&lt;li&gt;Streaming from Telegraf will deliver data only to clients connected to the same instance which received Telegraf data, active stream cache is not shared between different Grafana instances.&lt;/li&gt;
&lt;li&gt;A separate unidirectional stream between Grafana and backend data source may be opened on different Grafana servers for the same channel.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To bypass these limitations, Grafana v8.1 has an experimental Live HA engine that requires Redis to work.&lt;/p&gt;
&lt;h3 id=&#34;configure-redis-live-engine&#34;&gt;Configure Redis Live engine&lt;/h3&gt;
&lt;p&gt;When the Redis engine is configured, Grafana Live keeps its state in Redis and uses Redis PUB/SUB functionality to deliver messages to all subscribers throughout all Grafana server nodes.&lt;/p&gt;
&lt;p&gt;Here is an example configuration:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;[live]
ha_engine = redis
ha_engine_address = 127.0.0.1:6379&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;For additional information, refer to the &lt;a href=&#34;../configure-grafana/#ha_engine&#34;&gt;ha_engine&lt;/a&gt; and &lt;a href=&#34;../configure-grafana/#ha_engine_address&#34;&gt;ha_engine_address&lt;/a&gt; options.&lt;/p&gt;
&lt;p&gt;After running:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;All built-in real-time notifications like dashboard changes are delivered to all Grafana server instances and broadcasted to all subscribers.&lt;/li&gt;
&lt;li&gt;Streaming from Telegraf delivers messages to all subscribers.&lt;/li&gt;
&lt;li&gt;A separate unidirectional stream between Grafana and backend data source opens on different Grafana servers. Publishing data to a channel delivers messages to instance subscribers, as a result, publications from different instances on different machines do not produce duplicate data on panels.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;At the moment we only support single Redis node.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; It&amp;rsquo;s possible to use Redis Sentinel and Haproxy to achieve a highly available Redis setup. Redis nodes should be managed by &lt;a href=&#34;https://redis.io/topics/sentinel&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Redis Sentinel&lt;/a&gt; to achieve automatic failover. Haproxy configuration example:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;listen redis
  server redis-01 127.0.0.1:6380 check port 6380 check inter 2s weight 1 inter 2s downinter 5s rise 10 fall 2 on-marked-down shutdown-sessions on-marked-up shutdown-backup-sessions
  server redis-02 127.0.0.1:6381 check port 6381 check inter 2s weight 1 inter 2s downinter 5s rise 10 fall 2 backup
  bind *:6379
  mode tcp
  option tcpka
  option tcplog
  option tcp-check
  tcp-check send PING\r\n
  tcp-check expect string &amp;#43;PONG
  tcp-check send info\ replication\r\n
  tcp-check expect string role:master
  tcp-check send QUIT\r\n
  tcp-check expect string &amp;#43;OK
  balance roundrobin&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Next, point Grafana Live to Haproxy address:port.&lt;/p&gt;&lt;/blockquote&gt;
]]></content><description>&lt;h1 id="set-up-grafana-live">Set up Grafana Live&lt;/h1>
&lt;p>Grafana Live is a real-time messaging engine introduced in Grafana v8.0.&lt;/p>
&lt;p>With Grafana Live, you can push event data to a frontend as soon as an event occurs.&lt;/p></description></item><item><title>Configure a Grafana Docker image</title><link>https://grafana.com/docs/grafana/v10.0/setup-grafana/configure-docker/</link><pubDate>Fri, 07 Mar 2025 11:34:44 +0100</pubDate><guid>https://grafana.com/docs/grafana/v10.0/setup-grafana/configure-docker/</guid><content><![CDATA[&lt;h1 id=&#34;configure-a-grafana-docker-image&#34;&gt;Configure a Grafana Docker image&lt;/h1&gt;
&lt;p&gt;This topic explains how to run Grafana on Docker in complex environments that require you to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use different images&lt;/li&gt;
&lt;li&gt;Change logging levels&lt;/li&gt;
&lt;li&gt;Define secrets on the Cloud&lt;/li&gt;
&lt;li&gt;Configure plugins&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The examples in this topic use the Grafana Enterprise Docker image. You can use the Grafana Open Source edition by changing the Docker image to &lt;code&gt;grafana/grafana-oss&lt;/code&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;supported-docker-image-variants&#34;&gt;Supported Docker image variants&lt;/h2&gt;
&lt;p&gt;You can install and run Grafana using the following official Docker images.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Grafana Enterprise&lt;/strong&gt;: &lt;code&gt;grafana/grafana-enterprise&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Grafana Open Source&lt;/strong&gt;: &lt;code&gt;grafana/grafana-oss&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each edition is available in two variants: Alpine and Ubuntu.&lt;/p&gt;
&lt;h2 id=&#34;alpine-image-recommended&#34;&gt;Alpine image (recommended)&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://alpinelinux.org/about/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Alpine Linux&lt;/a&gt; is a Linux distribution not affiliated with any commercial entity. It is a versatile operating system that caters to users who prioritize security, efficiency, and user-friendliness. Alpine Linux is much smaller than other distribution base images, allowing for slimmer and more secure images to be created.&lt;/p&gt;
&lt;p&gt;By default, the images are built using the widely used &lt;a href=&#34;http://alpinelinux.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Alpine Linux project&lt;/a&gt; base image, which can be found in the &lt;a href=&#34;https://hub.docker.com/_/alpine&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Alpine docker repo&lt;/a&gt;.
If you prioritize security and want to minimize the size of your image, it is recommended that you use the Alpine variant. However, it&amp;rsquo;s important to note that the Alpine variant uses &lt;a href=&#34;http://www.musl-libc.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;musl libc&lt;/a&gt; instead of &lt;a href=&#34;http://www.etalabs.net/compare_libcs.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;glibc and others&lt;/a&gt;. As a result, some software might encounter problems depending on their libc requirements. Nonetheless, most software should not experience any issues, so the Alpine variant is generally reliable.&lt;/p&gt;
&lt;h2 id=&#34;ubuntu-image&#34;&gt;Ubuntu image&lt;/h2&gt;
&lt;p&gt;The Ubuntu-based Grafana Enterprise and OSS images are built using the &lt;a href=&#34;https://ubuntu.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ubuntu&lt;/a&gt; base image, which can be found in the &lt;a href=&#34;https://hub.docker.com/_/ubuntu&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ubuntu docker repo&lt;/a&gt;. An Ubuntu-based image can be a good option for users who prefer an Ubuntu-based image or require certain tools unavailable on Alpine.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Grafana Enterprise&lt;/strong&gt;: &lt;code&gt;grafana/grafana-enterprise:&amp;lt;version&amp;gt;-ubuntu&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Grafana Open Source&lt;/strong&gt;: &lt;code&gt;grafana/grafana-oss:&amp;lt;version&amp;gt;-ubuntu&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;run-a-specific-version-of-grafana&#34;&gt;Run a specific version of Grafana&lt;/h2&gt;
&lt;p&gt;You can also run a specific version of Grafana or a beta version based on the main branch of the &lt;a href=&#34;https://github.com/grafana/grafana&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;grafana/grafana GitHub repository&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you use a Linux operating system such as Debian or Ubuntu and encounter permission errors when running Docker commands, you might need to prefix the command with &lt;code&gt;sudo&lt;/code&gt; or add your user to the &lt;code&gt;docker&lt;/code&gt; group. The official Docker documentation provides instructions on how to &lt;a href=&#34;https://docs.docker.com/engine/install/linux-postinstall/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;run Docker without a non-root user&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;To run a specific version of Grafana, add it in the command &lt;version number&gt; section:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker run -d -p 3000:3000 --name grafana grafana/grafana-enterprise:&amp;lt;version number&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;The following command runs the Grafana Enterprise container and specifies version 9.4.7. If you want to run a different version, modify the version number section.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker run -d -p 3000:3000 --name grafana grafana/grafana-enterprise:9.4.7&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;run-the-grafana-main-branch&#34;&gt;Run the Grafana main branch&lt;/h2&gt;
&lt;p&gt;After every successful build of the main branch, two tags, &lt;code&gt;grafana/grafana-oss:main&lt;/code&gt; and &lt;code&gt;grafana/grafana-oss:main-ubuntu&lt;/code&gt;, are updated. Additionally, two new tags are created: &lt;code&gt;grafana/grafana-oss-dev:&amp;lt;version&amp;gt;&amp;lt;build ID&amp;gt;-pre&lt;/code&gt; and &lt;code&gt;grafana/grafana-oss-dev:&amp;lt;version&amp;gt;&amp;lt;build ID&amp;gt;-pre-ubuntu&lt;/code&gt;, where &lt;code&gt;version&lt;/code&gt; is the next version of Grafana and &lt;code&gt;build ID &lt;/code&gt;is the ID of the corresponding CI build. These tags provide access to the most recent Grafana main builds. For more information, refer to &lt;a href=&#34;https://hub.docker.com/r/grafana/grafana-oss-dev/tags&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;grafana/grafana-oss-dev&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To ensure stability and consistency, we strongly recommend using the &lt;code&gt;grafana/grafana-oss-dev:&amp;lt;version&amp;gt;&amp;lt;build ID&amp;gt;-pre&lt;/code&gt; tag when running the Grafana main branch in a production environment. This tag ensures that you are using a specific version of Grafana instead of the most recent commit, which could potentially introduce bugs or issues. It also avoids polluting the tag namespace for the main Grafana images with thousands of pre-release tags.&lt;/p&gt;
&lt;p&gt;For a list of available tags, refer to &lt;a href=&#34;https://hub.docker.com/r/grafana/grafana-oss/tags/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;grafana/grafana-oss&lt;/a&gt; and &lt;a href=&#34;https://hub.docker.com/r/grafana/grafana-oss-dev/tags/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;grafana/grafana-oss-dev&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;default-paths&#34;&gt;Default paths&lt;/h2&gt;
&lt;p&gt;Grafana comes with default configuration parameters that remain the same among versions regardless of the operating system or the environment (for example, virtual machine, Docker, Kubernetes, etc.). You can refer to the &lt;a href=&#34;../configure-grafana/&#34;&gt;Configure Grafana&lt;/a&gt; documentation to view all the default configuration settings.&lt;/p&gt;
&lt;p&gt;The following configurations are set by default when you start the Grafana Docker container. When running in Docker you cannot change the configurations by editing the &lt;code&gt;conf/grafana.ini&lt;/code&gt; file. Instead, you can modify the configuration using &lt;a href=&#34;../configure-grafana/#override-configuration-with-environment-variables&#34;&gt;environment variables&lt;/a&gt;.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Setting&lt;/th&gt;
              &lt;th&gt;Default value&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;GF_PATHS_CONFIG&lt;/td&gt;
              &lt;td&gt;/etc/grafana/grafana.ini&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;GF_PATHS_DATA&lt;/td&gt;
              &lt;td&gt;/var/lib/grafana&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;GF_PATHS_HOME&lt;/td&gt;
              &lt;td&gt;/usr/share/grafana&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;GF_PATHS_LOGS&lt;/td&gt;
              &lt;td&gt;/var/log/grafana&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;GF_PATHS_PLUGINS&lt;/td&gt;
              &lt;td&gt;/var/lib/grafana/plugins&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;GF_PATHS_PROVISIONING&lt;/td&gt;
              &lt;td&gt;/etc/grafana/provisioning&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h2 id=&#34;install-plugins-in-the-docker-container&#34;&gt;Install plugins in the Docker container&lt;/h2&gt;
&lt;p&gt;You can install publicly available plugins and plugins that are private or used internally in an organization. For plugin installation instructions, refer to &lt;a href=&#34;../installation/docker/#install-plugins-in-the-docker-container&#34;&gt;Install plugins in the Docker container&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;install-plugins-from-other-sources&#34;&gt;Install plugins from other sources&lt;/h3&gt;
&lt;p&gt;To install plugins from other sources, you must define the custom URL and specify it immediately before the plugin name in the &lt;code&gt;GF_INSTALL_PLUGINS&lt;/code&gt; environment variable: &lt;code&gt;GF_INSTALL_PLUGINS=&amp;lt;url to plugin zip&amp;gt;;&amp;lt;plugin name&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;The following command runs Grafana Enterprise on &lt;strong&gt;port 3000&lt;/strong&gt; in detached mode and installs the custom plugin, which is specified as a URL parameter in the &lt;code&gt;GF_INSTALL_PLUGINS&lt;/code&gt; environment variable.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker run -d -p 3000:3000 --name=grafana \
  -e &amp;#34;GF_INSTALL_PLUGINS=http://plugin-domain.com/my-custom-plugin.zip;custom-plugin,grafana-clock-panel&amp;#34; \
  grafana/grafana-enterprise&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;build-a-custom-grafana-docker-image&#34;&gt;Build a custom Grafana Docker image&lt;/h2&gt;
&lt;p&gt;In the Grafana GitHub repository, the &lt;code&gt;packaging/docker/custom/&lt;/code&gt; folder includes a &lt;code&gt;Dockerfile&lt;/code&gt; that you can use to build a custom Grafana image. The &lt;code&gt;Dockerfile&lt;/code&gt; accepts &lt;code&gt;GRAFANA_VERSION&lt;/code&gt;, &lt;code&gt;GF_INSTALL_PLUGINS&lt;/code&gt;, and &lt;code&gt;GF_INSTALL_IMAGE_RENDERER_PLUGIN&lt;/code&gt; as build arguments.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;GRAFANA_VERSION&lt;/code&gt; build argument must be a valid &lt;code&gt;grafana/grafana&lt;/code&gt; Docker image tag. By default, Grafana builds an Alpine-based image. To build an Ubuntu-based image, append &lt;code&gt;-ubuntu&lt;/code&gt; to the &lt;code&gt;GRAFANA_VERSION&lt;/code&gt; build argument.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;The following example shows you how to build and run a custom Grafana Docker image based on the latest official Ubuntu-based Grafana Docker image:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# go to the custom directory
cd packaging/docker/custom

# run the docker build command to build the image
docker build \
  --build-arg &amp;#34;GRAFANA_VERSION=latest-ubuntu&amp;#34; \
  -t grafana-custom .

# run the custom grafana container using docker run command
docker run -d -p 3000:3000 --name=grafana grafana-custom&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;build-grafana-with-the-image-renderer-plugin-pre-installed&#34;&gt;Build Grafana with the Image Renderer plugin pre-installed&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This feature is experimental.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Currently, the Grafana Image Renderer plugin requires dependencies that are not available in the Grafana Docker image (see &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer/issues/301&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;GitHub Issue#301&lt;/a&gt; for more details). However, you can create a customized Docker image using the &lt;code&gt;GF_INSTALL_IMAGE_RENDERER_PLUGIN&lt;/code&gt; build argument as a solution. This will install the necessary dependencies for the Grafana Image Renderer plugin to run.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;The following example shows how to build a customized Grafana Docker image that includes the Image Renderer plugin.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# go to the folder
cd packaging/docker/custom

# running the build command
docker build \
  --build-arg &amp;#34;GRAFANA_VERSION=latest&amp;#34; \
  --build-arg &amp;#34;GF_INSTALL_IMAGE_RENDERER_PLUGIN=true&amp;#34; \
  -t grafana-custom .

# running the docker run command
docker run -d -p 3000:3000 --name=grafana grafana-custom&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;build-a-grafana-docker-image-with-pre-installed-plugins&#34;&gt;Build a Grafana Docker image with pre-installed plugins&lt;/h3&gt;
&lt;p&gt;If you run multiple Grafana installations with the same plugins, you can save time by building a customized image that includes plugins available on the &lt;a href=&#34;/grafana/plugins&#34;&gt;Grafana Plugin download page&lt;/a&gt;. When you build a customized image, Grafana doesn&amp;rsquo;t have to install the plugins each time it starts, making the startup process more efficient.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; To specify the version of a plugin, you can use the &lt;code&gt;GF_INSTALL_PLUGINS&lt;/code&gt; build argument and add the version number. The latest version is used if you don&amp;rsquo;t specify a version number. For example, you can use &lt;code&gt;--build-arg &amp;quot;GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5&amp;quot;&lt;/code&gt; to specify the versions of two plugins.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;The following example shows how to build and run a custom Grafana Docker image with pre-installed plugins.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# go to the custom directory
cd packaging/docker/custom

# running the build command
# include the plugins you want e.g. clock planel etc
docker build \
  --build-arg &amp;#34;GRAFANA_VERSION=latest&amp;#34; \
  --build-arg &amp;#34;GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource&amp;#34; \
  -t grafana-custom .

# running the custom Grafana container using the docker run command
docker run -d -p 3000:3000 --name=grafana grafana-custom&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;build-a-grafana-docker-image-with-pre-installed-plugins-from-other-sources&#34;&gt;Build a Grafana Docker image with pre-installed plugins from other sources&lt;/h3&gt;
&lt;p&gt;You can create a Docker image containing a plugin that is exclusive to your organization, even if it is not accessible to the public. Simply use the &lt;code&gt;GF_INSTALL_PLUGINS&lt;/code&gt; build argument to specify the plugin&amp;rsquo;s URL and installation folder name, such as &lt;code&gt;GF_INSTALL_PLUGINS=&amp;lt;url to plugin zip&amp;gt;;&amp;lt;plugin install folder name&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The following example demonstrates creating a customized Grafana Docker image that includes a custom plugin from a URL link, the clock panel plugin, and the simple-json-datasource plugin. You can define these plugins in the build argument using the Grafana Plugin environment variable.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# go to the folder
cd packaging/docker/custom

# running the build command
docker build \
  --build-arg &amp;#34;GRAFANA_VERSION=latest&amp;#34; \
  --build-arg &amp;#34;GF_INSTALL_PLUGINS=http://plugin-domain.com/my-custom-plugin.zip;my-custom-plugin,grafana-clock-panel,grafana-simple-json-datasource&amp;#34; \
  -t grafana-custom .

# running the docker run command
docker run -d -p 3000:3000 --name=grafana grafana-custom&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;logging&#34;&gt;Logging&lt;/h2&gt;
&lt;p&gt;By default, Docker container logs are directed to &lt;code&gt;STDOUT&lt;/code&gt;, a common practice in the Docker community. You can change this by setting a different &lt;a href=&#34;../configure-grafana/#mode&#34;&gt;log mode&lt;/a&gt; such as &lt;code&gt;console&lt;/code&gt;, &lt;code&gt;file&lt;/code&gt;, or &lt;code&gt;syslog&lt;/code&gt;. You can use one or more modes by separating them with spaces, for example, &lt;code&gt;console file&lt;/code&gt;. By default, both &lt;code&gt;console&lt;/code&gt; and &lt;code&gt;file&lt;/code&gt; modes are enabled.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;The following example runs Grafana using the &lt;code&gt;console file&lt;/code&gt; log mode that is set in the &lt;code&gt;GF_LOG_MODE&lt;/code&gt; environment variable.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# Run Grafana while logging to both standard out
# and /var/log/grafana/grafana.log

docker run -p 3000:3000 -e &amp;#34;GF_LOG_MODE=console file&amp;#34; grafana/grafana-enterprise&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;configure-grafana-with-docker-secrets&#34;&gt;Configure Grafana with Docker Secrets&lt;/h2&gt;
&lt;p&gt;You can input confidential data like login credentials and secrets into Grafana using configuration files. This method works well with &lt;a href=&#34;https://docs.docker.com/engine/swarm/secrets/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Docker Secrets&lt;/a&gt;, as the secrets are automatically mapped to the &lt;code&gt;/run/secrets/&lt;/code&gt; location within the container.&lt;/p&gt;
&lt;p&gt;You can apply this technique to any configuration options in &lt;code&gt;conf/grafana.ini&lt;/code&gt; by setting &lt;code&gt;GF_&amp;lt;SectionName&amp;gt;_&amp;lt;KeyName&amp;gt;__FILE&lt;/code&gt; to the file path that contains the secret information. For more information about Docker secret command usage, refer to &lt;a href=&#34;https://docs.docker.com/engine/reference/commandline/secret/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;docker secret&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The following example demonstrates how to set the admin password:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Admin password secret: &lt;code&gt;/run/secrets/admin_password&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Environment variable: &lt;code&gt;GF_SECURITY_ADMIN_PASSWORD__FILE=/run/secrets/admin_password&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;configure-docker-secrets-credentials-for-aws-cloudwatch&#34;&gt;Configure Docker secrets credentials for AWS CloudWatch&lt;/h3&gt;
&lt;p&gt;Grafana ships with built-in support for the &lt;a href=&#34;../../datasources/aws-cloudwatch/&#34;&gt;Amazon CloudWatch datasource&lt;/a&gt;. To configure the data source, you must provide information such as the AWS ID-Key, secret access key, region, and so on. You can use Docker secrets as a way to provide this information.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;The example below shows how to use Grafana environment variables via Docker Secrets for the AWS ID-Key, secret access key, region, and profile.&lt;/p&gt;
&lt;p&gt;The example uses the following values for the AWS Cloudwatch data source:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;AWS_default_ACCESS_KEY_ID=aws01us02
AWS_default_SECRET_ACCESS_KEY=topsecret9b78c6
AWS_default_REGION=us-east-1&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a Docker secret for each of the values noted above.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;echo &amp;#34;aws01us02&amp;#34; | docker secret create aws_access_key_id -&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;echo &amp;#34;topsecret9b78c6&amp;#34; | docker secret create aws_secret_access_key -&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;echo &amp;#34;us-east-1&amp;#34; | docker secret create aws_region -&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to determine that the secrets were created.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;$ docker secret ls&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The output from the command should look similar to the following:&lt;/p&gt;

&lt;div class=&#34;code-snippet code-snippet__mini&#34;&gt;&lt;div class=&#34;lang-toolbar__mini&#34;&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet code-snippet__border&#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-none&#34;&gt;ID                          NAME           DRIVER    CREATED              UPDATED
i4g62kyuy80lnti5d05oqzgwh   aws_access_key_id             5 minutes ago        5 minutes ago
uegit5plcwodp57fxbqbnke7h   aws_secret_access_key         3 minutes ago        3 minutes ago
fxbqbnke7hplcwodp57fuegit   aws_region                    About a minute ago   About a minute ago&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Where:&lt;/p&gt;
&lt;p&gt;ID = the secret unique ID that will be use in the docker run command&lt;/p&gt;
&lt;p&gt;NAME = the logical name defined for each secret&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the secrets to the command line when you run Docker.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker run -d -p 3000:3000 --name grafana \
  -e &amp;#34;GF_DEFAULT_INSTANCE_NAME=my-grafana&amp;#34; \
  -e &amp;#34;GF_AWS_PROFILES=default&amp;#34; \
  -e &amp;#34;GF_AWS_default_ACCESS_KEY_ID__FILE=/run/secrets/aws_access_key_id&amp;#34; \
  -e &amp;#34;GF_AWS_default_SECRET_ACCESS_KEY__FILE=/run/secrets/aws_secret_access_key&amp;#34; \
  -e &amp;#34;GF_AWS_default_REGION__FILE=/run/secrets/aws_region&amp;#34; \
  -v grafana-data:/var/lib/grafana \
  grafana/grafana-enterprise&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can also specify multiple profiles to &lt;code&gt;GF_AWS_PROFILES&lt;/code&gt; (for example, &lt;code&gt;GF_AWS_PROFILES=default another&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;The following list includes the supported environment variables:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;GF_AWS_${profile}_ACCESS_KEY_ID&lt;/code&gt;: AWS access key ID (required).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;GF_AWS_${profile}_SECRET_ACCESS_KEY&lt;/code&gt;: AWS secret access key (required).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;GF_AWS_${profile}_REGION&lt;/code&gt;: AWS region (optional).&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;troubleshoot-a-docker-deployment&#34;&gt;Troubleshoot a Docker deployment&lt;/h2&gt;
&lt;p&gt;By default, the Grafana log level is set to &lt;code&gt;INFO&lt;/code&gt;, but you can increase the log level to &lt;code&gt;DEBUG&lt;/code&gt; mode when you want to reproduce a problem.&lt;/p&gt;
&lt;p&gt;For more information about logging, refer to &lt;a href=&#34;../configure-grafana/#log&#34;&gt;logs&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;increase-log-level-using-the-docker-run-cli-command&#34;&gt;Increase log level using the Docker run (CLI) command&lt;/h3&gt;
&lt;p&gt;To increase the log level to &lt;code&gt;DEBUG&lt;/code&gt; mode, add the environment variable &lt;code&gt;GF_LOG_LEVEL&lt;/code&gt; to the command line.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker run -d -p 3000:3000 --name=grafana \
  -e &amp;#34;GF_LOG_LEVEL=debug&amp;#34; \
  grafana/grafana-enterprise&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;increase-log-level-using-the-docker-compose&#34;&gt;Increase log level using the Docker Compose&lt;/h3&gt;
&lt;p&gt;To increase the log level to &lt;code&gt;DEBUG&lt;/code&gt; mode, add the environment variable &lt;code&gt;GF_LOG_LEVEL&lt;/code&gt; to the &lt;code&gt;docker-compose.yaml&lt;/code&gt; file.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;YAML&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-yaml&#34;&gt;version: &amp;#39;3.8&amp;#39;
services:
  grafana:
    image: grafana/grafana-enterprise
    container_name: grafana
    restart: unless-stopped
    environment:
      # increases the log level from info to debug
      - GF_LOG_LEVEL=debug
    ports:
      - &amp;#39;3000:3000&amp;#39;
    volumes:
      - &amp;#39;grafana_storage:/var/lib/grafana&amp;#39;
volumes:
  grafana_storage: {}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;validate-docker-compose-yaml-file&#34;&gt;Validate Docker Compose YAML file&lt;/h3&gt;
&lt;p&gt;The chance of syntax errors appearing in a YAML file increases as the file becomes more complex. You can use the following command to check for syntax errors.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;Bash&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;# go to your docker-compose.yaml directory
cd /path-to/docker-compose/file

# run the validation command
docker compose config&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If there are errors in the YAML file, the command output highlights the lines that contain errors. If there are no errors in the YAML file, the output includes the content of the &lt;code&gt;docker-compose.yaml&lt;/code&gt; file in detailed YAML format.&lt;/p&gt;
]]></content><description>&lt;h1 id="configure-a-grafana-docker-image">Configure a Grafana Docker image&lt;/h1>
&lt;p>This topic explains how to run Grafana on Docker in complex environments that require you to:&lt;/p>
&lt;ul>
&lt;li>Use different images&lt;/li>
&lt;li>Change logging levels&lt;/li>
&lt;li>Define secrets on the Cloud&lt;/li>
&lt;li>Configure plugins&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>&lt;strong>Note:&lt;/strong> The examples in this topic use the Grafana Enterprise Docker image. You can use the Grafana Open Source edition by changing the Docker image to &lt;code>grafana/grafana-oss&lt;/code>.&lt;/p></description></item></channel></rss>