<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/v12.4/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/v12.4/setup-grafana/index.xml" rel="self" type="application/rss+xml"/><item><title>Install Grafana</title><link>https://grafana.com/docs/grafana/v12.4/setup-grafana/installation/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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;The following video guides you through the steps and common commands for installing Grafana on various operating systems as described in this document.&lt;/p&gt;
&lt;iframe width=&#34;560&#34; height=&#34;315&#34; src=&#39;https://www.youtube.com/embed/f-x_p2lvz8s&#39; title=&#34;YouTube video player&#34; frameborder=&#34;0&#34; allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; allowfullscreen&gt;&lt;/iframe&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;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 following minimum system resources:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Minimum recommended memory: 512 MB&lt;/li&gt;
&lt;li&gt;Minimum recommended CPU: 1 core&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some features might require more memory or CPUs. For more information, refer to the following sizing guidance.&lt;/p&gt;
&lt;h3 id=&#34;sizing-your-deployment&#34;&gt;Sizing your deployment&lt;/h3&gt;
&lt;p&gt;This sizing guidance covers the Grafana server process only, meaning the UI, data source proxy, alert engine, and image renderer. It does not account for the resources required by your data sources. Metric stores such as Prometheus or Grafana Mimir, log stores such as Grafana Loki, and trace backends such as Grafana Tempo each have their own hardware and capacity requirements. For guidance, refer to &lt;a href=&#34;/docs/mimir/latest/manage/run-production-environment/planning-capacity/&#34;&gt;Planning Grafana Mimir capacity&lt;/a&gt;, &lt;a href=&#34;/docs/loki/latest/setup/size/&#34;&gt;Size the Loki cluster&lt;/a&gt;, and &lt;a href=&#34;/docs/tempo/latest/set-up-for-tracing/setup-tempo/plan/&#34;&gt;Plan your Tempo deployment&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Four factors most directly drive resource needs for Grafana:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Concurrent users:&lt;/strong&gt; active, concurrent browser sessions issuing queries or causing panels to refresh. This is the primary driver of CPU and memory load. Users who have Grafana open but are not actively viewing dashboards contribute little load, unless those dashboards have auto-refresh enabled.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Alert rules:&lt;/strong&gt; background evaluation load on the alert scheduler. High rule counts with short evaluation intervals can saturate CPU independently of user activity. In Grafana OSS, the alert engine runs in the same process as the UI and data source proxy, so alert CPU saturation directly competes with dashboard query performance. This is why isolating alert evaluation to dedicated instances matters at Large scale. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/alerting/set-up/performance-limitations/&#34;&gt;Performance considerations and limitations&lt;/a&gt; for details.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data sources:&lt;/strong&gt; while the number of proxied data source connections matters, type matters more. Plugins that use the Grafana backend data source proxy — most SQL sources such as MySQL, PostgreSQL, and Microsoft SQL Server — hold an open connection per query on the server. Pull-based metric sources such as Prometheus or Graphite are queried more efficiently and place less load on the Grafana process. Some plugins, such as certain public API or Infinity sources, execute queries directly in the browser and may place no server-side load — depending on plugin configuration and authentication requirements. A deployment with five heavily-queried proxied SQL data sources can exceed the resource needs of one with twenty Prometheus sources.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dashboards and panels:&lt;/strong&gt; panel count and refresh interval together determine query throughput. A dashboard with 30 panels refreshing every 10 seconds generates roughly six times the query load of the same dashboard refreshing every minute. Dashboards with many panels and short refresh intervals should be treated as a tier higher than their raw dashboard count suggests. Note that Grafana Enterprise includes query caching, which can significantly reduce this multiplier when many users view the same dashboard simultaneously and may shift a deployment down a tier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Image rendering and large numbers of short-interval alert rules are the two most common reasons a deployment outgrows its initial sizing. Multi-organization setups and SSO or LDAP directory sync add overhead that can push a deployment into the next tier.&lt;/p&gt;
&lt;h3 id=&#34;deployment-tiers&#34;&gt;Deployment tiers&lt;/h3&gt;
&lt;p&gt;Use the table below to identify which tier describes your workload, then refer to the corresponding hardware baseline.&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;Tier&lt;/th&gt;
              &lt;th&gt;Concurrent users&lt;/th&gt;
              &lt;th&gt;Alert rules&lt;/th&gt;
              &lt;th&gt;Data sources&lt;/th&gt;
              &lt;th&gt;Dashboards&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;Small&lt;/td&gt;
              &lt;td&gt;&amp;lt; 25&lt;/td&gt;
              &lt;td&gt;&amp;lt; 100&lt;/td&gt;
              &lt;td&gt;&amp;lt; 5&lt;/td&gt;
              &lt;td&gt;&amp;lt; 200&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Medium&lt;/td&gt;
              &lt;td&gt;25 – 200&lt;/td&gt;
              &lt;td&gt;100 – 1,000&lt;/td&gt;
              &lt;td&gt;5 – 25&lt;/td&gt;
              &lt;td&gt;200 – 2,000&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Large&lt;/td&gt;
              &lt;td&gt;200&#43;&lt;/td&gt;
              &lt;td&gt;1,000&#43;&lt;/td&gt;
              &lt;td&gt;25&#43;&lt;/td&gt;
              &lt;td&gt;2,000&#43;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;The dashboard count threshold assumes roughly 10-20 panels per dashboard with refresh intervals of 30 seconds or longer. Dashboards with more panels or shorter refresh intervals produce proportionally more query load and should be weighted toward the higher tier. Similarly, the data source count assumes a mix of source types. Deployments that rely heavily on proxied SQL sources should plan for the next tier up.&lt;/p&gt;
&lt;p&gt;These thresholds are starting points. Validate sizing with a load test that reflects your actual dashboard complexity, panel count, and refresh rates before committing to production hardware. Size for your current workload and include headroom for traffic spikes and growth.&lt;/p&gt;
&lt;h4 id=&#34;small&#34;&gt;Small&lt;/h4&gt;
&lt;p&gt;Small deployments suit small teams, internal tooling, and low-traffic environments.&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;Resource&lt;/th&gt;
              &lt;th&gt;Minimum&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;CPU&lt;/td&gt;
              &lt;td&gt;2 cores&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Memory&lt;/td&gt;
              &lt;td&gt;2 – 4 GB&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Disk&lt;/td&gt;
              &lt;td&gt;10 – 20 GB SSD (database host)&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Instances&lt;/td&gt;
              &lt;td&gt;1&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;Database:&lt;/strong&gt; SQLite works for local development and small evaluation instances, but isn&amp;rsquo;t recommended for production environments. For production use, consider an external MySQL or PostgreSQL instance for higher reliability and growth capacity. For more information, refer to &lt;a href=&#34;#supported-databases&#34;&gt;Supported databases&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Image rendering:&lt;/strong&gt; optional; can run on the same host for light use. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/image-rendering/&#34;&gt;Set up image rendering&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;medium&#34;&gt;Medium&lt;/h4&gt;
&lt;p&gt;Medium deployments suit shared team environments and departmental observability platforms.&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;Resource&lt;/th&gt;
              &lt;th&gt;Recommendation&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;CPU&lt;/td&gt;
              &lt;td&gt;4 – 8 cores&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Memory&lt;/td&gt;
              &lt;td&gt;8 – 16 GB&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Disk&lt;/td&gt;
              &lt;td&gt;20 – 50 GB SSD (database host)&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Instances&lt;/td&gt;
              &lt;td&gt;2 (load-balanced)&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;Database:&lt;/strong&gt; SQLite isn&amp;rsquo;t recommended for production environments and isn&amp;rsquo;t suitable at this tier. Use an external MySQL or PostgreSQL database. Refer to &lt;a href=&#34;#supported-databases&#34;&gt;Supported databases&lt;/a&gt; for guidance on choosing an external database.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Image rendering:&lt;/strong&gt; run the image renderer as a separate process or container. Each renderer worker uses approximately 1 GB of memory; size your renderer host accordingly. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/image-rendering/&#34;&gt;Set up image rendering&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;High availability:&lt;/strong&gt; if you run two or more Grafana instances, configure a Redis session store or enable sticky sessions at the load balancer to prevent users from being signed out between requests. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/set-up-for-high-availability/&#34;&gt;Set up Grafana for high availability&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;large&#34;&gt;Large&lt;/h4&gt;
&lt;p&gt;Large deployments suit organization-wide platforms and high-traffic production environments.&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;Resource&lt;/th&gt;
              &lt;th&gt;Recommendation&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;CPU&lt;/td&gt;
              &lt;td&gt;8 – 16&#43; cores per instance&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Memory&lt;/td&gt;
              &lt;td&gt;16 – 32&#43; GB per instance&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Disk&lt;/td&gt;
              &lt;td&gt;50&#43; GB SSD, high I/O operations per second (IOPS) (database host)&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Instances&lt;/td&gt;
              &lt;td&gt;3&#43; (load-balanced)&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Network&lt;/td&gt;
              &lt;td&gt;10 Gbps or faster&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;&lt;strong&gt;Database:&lt;/strong&gt; SQLite isn&amp;rsquo;t recommended for production environments and isn&amp;rsquo;t suitable at this tier. A highly available MySQL or PostgreSQL cluster is strongly advised. Refer to &lt;a href=&#34;#supported-databases&#34;&gt;Supported databases&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Image rendering:&lt;/strong&gt; run a dedicated renderer fleet with multiple workers, isolated from Grafana instances. Each renderer worker uses approximately 1 GB of memory. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/image-rendering/&#34;&gt;Set up image rendering&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Alert evaluation:&lt;/strong&gt; with more than 1,000 alert rules or short evaluation intervals of under one minute, alert evaluation can saturate CPU and degrade dashboard query performance on the same instance. Isolate alert evaluation to one or more dedicated Grafana instances in 
    &lt;a href=&#34;/docs/grafana/v12.4/alerting/&#34;&gt;remote evaluation mode&lt;/a&gt; to prevent this. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/alerting/set-up/performance-limitations/&#34;&gt;Performance considerations and limitations&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;High availability:&lt;/strong&gt; sticky sessions or a shared Redis session store are required. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/set-up-for-high-availability/&#34;&gt;Set up Grafana for high availability&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Data source latency:&lt;/strong&gt; minimize network hops between Grafana instances and data sources. Low-latency links to your database and data sources are important at this scale.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Deployment model:&lt;/strong&gt; managing three or more Grafana instances alongside a Redis cluster, renderer fleet, and highly available database becomes operationally complex on bare metal. Kubernetes reduces this operational burden significantly at this tier. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/installation/kubernetes/&#34;&gt;Deploy Grafana on Kubernetes&lt;/a&gt; and the 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/installation/helm/&#34;&gt;Grafana Helm chart&lt;/a&gt; for guidance.&lt;/p&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 8.0&#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 12&#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. If you need to migrate to a different database later, note that database schema and data migrations are customer-managed operations and fall outside the scope of Grafana Support.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-caution&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Caution&lt;/p&gt;&lt;p&gt;SQLite isn&amp;rsquo;t recommended for production environments. It works well for local development and small evaluation instances, but it doesn&amp;rsquo;t scale for production workloads. If you want 
    &lt;a href=&#34;/docs/grafana/v12.4/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/v12.4/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;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;Grafana binaries and images might not work with unsupported databases, even if they claim to be drop-in or replicate the API to their best.
Binaries and images built with &lt;a href=&#34;https://pkg.go.dev/crypto/internal/boring&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;BoringCrypto&lt;/a&gt; may have different problems than other distributions of Grafana.&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/v12.4/setup-grafana/configure-grafana/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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;/docs/grafana/v12.4/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.&lt;/p&gt;
&lt;p&gt;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;&amp;lt;WORKING DIRECTORY&amp;gt;/conf/defaults.ini&lt;/code&gt; file.
&lt;em&gt;Don&amp;rsquo;t&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;&amp;lt;WORKING DIRECTORY&amp;gt;/conf/custom.ini&lt;/code&gt; file or the &lt;code&gt;/usr/local/etc/grafana/grafana.ini&lt;/code&gt; file.
You can use a custom configuration path with the &lt;code&gt;--config&lt;/code&gt; option.&lt;/p&gt;
&lt;h3 id=&#34;linux&#34;&gt;Linux&lt;/h3&gt;
&lt;p&gt;If you installed Grafana using the deb or RPM 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; option.&lt;/p&gt;
&lt;h3 id=&#34;docker&#34;&gt;Docker&lt;/h3&gt;
&lt;p&gt;Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/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;/opt/homebrew/etc/grafana/grafana.ini&lt;/code&gt; or &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; directory to override the settings defined in &lt;code&gt;conf/defaults.ini&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;grafana-cloud&#34;&gt;Grafana Cloud&lt;/h3&gt;
&lt;p&gt;There is no local configuration file for Grafana Cloud stacks, but many of these settings are still configurable. To edit configurable settings, open a support ticket.&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 (&lt;code&gt;;&lt;/code&gt;) to comment out lines in the INI file.
To uncomment a line, remove the semicolon (&lt;code&gt;;&lt;/code&gt;) from the beginning of that line.&lt;/p&gt;
&lt;p&gt;Grafana ignores all configuration lines that begin with a semicolon.&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;;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;Don&amp;rsquo;t 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;SECTION NAME&amp;gt;_&amp;lt;KEY&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Where &lt;em&gt;&lt;code&gt;&amp;lt;SECTION NAME&amp;gt;&lt;/code&gt;&lt;/em&gt; is the text within the square brackets (&lt;code&gt;[&lt;/code&gt; and &lt;code&gt;]&lt;/code&gt;) in the configuration file.
All letters must be uppercase, periods (&lt;code&gt;.&lt;/code&gt;) and dashes (&lt;code&gt;-&lt;/code&gt;) must replaced by underscores (&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;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 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;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 Grafana evaluates them.
The evaluation 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;&lt;code&gt;env&lt;/code&gt; provider&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;env&lt;/code&gt; provider expands environment variables.
If you set an option to &lt;code&gt;$__env{PORT}&lt;/code&gt; the value of the &lt;code&gt;PORT&lt;/code&gt; environment variable replaces it.
For environment variables you can also use the short-hand syntax &lt;code&gt;${PORT}&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The following example sets the log directory to the path in the &lt;code&gt;LOGDIR&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;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;&lt;code&gt;file&lt;/code&gt; provider&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;file&lt;/code&gt; provider reads a file from the filesystem.
It trims whitespace from the beginning and the end of files.&lt;/p&gt;
&lt;p&gt;The following example sets the database password to the contents 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;&lt;code&gt;vault&lt;/code&gt; provider&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;vault&lt;/code&gt; provider lets 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;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 &lt;code&gt;vault&lt;/code&gt; provider is only available in Grafana Enterprise.&lt;/p&gt;
&lt;p&gt;For more information, refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/configure-security/configure-database-encryption/integrate-with-hashicorp-vault/&#34;&gt;Integrate Grafana with Hashicorp Vault&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;configuration-options&#34;&gt;Configuration options&lt;/h2&gt;
&lt;p&gt;The following headings describe the sections and configuration options of the Grafana configuration file.&lt;/p&gt;
&lt;h3 id=&#34;app_mode&#34;&gt;&lt;code&gt;app_mode&lt;/code&gt;&lt;/h3&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;Don&amp;rsquo;t&lt;/em&gt; change this option unless you are working on Grafana development.&lt;/p&gt;
&lt;h3 id=&#34;instance_name&#34;&gt;&lt;code&gt;instance_name&lt;/code&gt;&lt;/h3&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 uses the value of the environment variable &lt;code&gt;HOSTNAME&lt;/code&gt;, if that is empty or doesn&amp;rsquo;t exist Grafana tries to use system calls to get the machine name.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;paths&#34;&gt;&lt;code&gt;[paths]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;data&#34;&gt;&lt;code&gt;data&lt;/code&gt;&lt;/h4&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;h4 id=&#34;temp_data_lifetime&#34;&gt;&lt;code&gt;temp_data_lifetime&lt;/code&gt;&lt;/h4&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;h4 id=&#34;logs&#34;&gt;&lt;code&gt;logs&lt;/code&gt;&lt;/h4&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.&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 overriding the default log path in the configuration file or environment variable file, Grafana still logs to the default log path until it has fully started.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&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;h4 id=&#34;plugins&#34;&gt;&lt;code&gt;plugins&lt;/code&gt;&lt;/h4&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;h4 id=&#34;provisioning&#34;&gt;&lt;code&gt;provisioning&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Directory that contains &lt;a href=&#34;../../administration/provisioning/&#34;&gt;provisioning&lt;/a&gt; configuration files that Grafana applies on startup.
Dashboards are reloaded when the JSON files change.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;server&#34;&gt;&lt;code&gt;[server]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;protocol&#34;&gt;&lt;code&gt;protocol&lt;/code&gt;&lt;/h4&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;h4 id=&#34;min_tls_version&#34;&gt;&lt;code&gt;min_tls_version&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The TLS Handshake requires a minimum TLS version. The available options are TLS1.2 and TLS1.3.
If you do not specify a version, the system uses TLS1.2.&lt;/p&gt;
&lt;h4 id=&#34;http_addr&#34;&gt;&lt;code&gt;http_addr&lt;/code&gt;&lt;/h4&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;h4 id=&#34;http_port&#34;&gt;&lt;code&gt;http_port&lt;/code&gt;&lt;/h4&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;h4 id=&#34;domain&#34;&gt;&lt;code&gt;domain&lt;/code&gt;&lt;/h4&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;h4 id=&#34;enforce_domain&#34;&gt;&lt;code&gt;enforce_domain&lt;/code&gt;&lt;/h4&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;h4 id=&#34;root_url&#34;&gt;&lt;code&gt;root_url&lt;/code&gt;&lt;/h4&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 sub-path.&lt;/p&gt;
&lt;p&gt;In that case add the sub-path to the end of this URL setting.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h4 id=&#34;serve_from_sub_path&#34;&gt;&lt;code&gt;serve_from_sub_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Serve Grafana from sub-path 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 sub-path in &lt;code&gt;root_url&lt;/code&gt; like &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 sub-path Grafana redirects the request to the sub-path.&lt;/p&gt;
&lt;h4 id=&#34;router_logging&#34;&gt;&lt;code&gt;router_logging&lt;/code&gt;&lt;/h4&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;h4 id=&#34;static_root_path&#34;&gt;&lt;code&gt;static_root_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The path to the directory where the frontend 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;h4 id=&#34;enable_gzip&#34;&gt;&lt;code&gt;enable_gzip&lt;/code&gt;&lt;/h4&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;h4 id=&#34;cert_file&#34;&gt;&lt;code&gt;cert_file&lt;/code&gt;&lt;/h4&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;h4 id=&#34;cert_key&#34;&gt;&lt;code&gt;cert_key&lt;/code&gt;&lt;/h4&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;h4 id=&#34;cert_pass&#34;&gt;&lt;code&gt;cert_pass&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional. Password to decrypt encrypted certificates.&lt;/p&gt;
&lt;h4 id=&#34;certs_watch_interval&#34;&gt;&lt;code&gt;certs_watch_interval&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Controls whether &lt;code&gt;cert_key&lt;/code&gt; and &lt;code&gt;cert_file&lt;/code&gt; are periodically watched for changes.
Disabled, by default. When enabled, &lt;code&gt;cert_key&lt;/code&gt; and &lt;code&gt;cert_file&lt;/code&gt;
are watched for changes. If there is change, the new certificates are loaded automatically.&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;After the new certificates are loaded, connections with old certificates don&amp;rsquo;t work.
You must reload the connections with old certificates for them to work.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h4 id=&#34;socket_gid&#34;&gt;&lt;code&gt;socket_gid&lt;/code&gt;&lt;/h4&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 &lt;code&gt;-1&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;socket_mode&#34;&gt;&lt;code&gt;socket_mode&lt;/code&gt;&lt;/h4&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;h4 id=&#34;socket&#34;&gt;&lt;code&gt;socket&lt;/code&gt;&lt;/h4&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;h4 id=&#34;cdn_url&#34;&gt;&lt;code&gt;cdn_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specify a full HTTP URL address to the root of your Grafana CDN assets. Grafana adds 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 tries 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;h4 id=&#34;read_timeout&#34;&gt;&lt;code&gt;read_timeout&lt;/code&gt;&lt;/h4&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;h3 id=&#34;servercustom_response_headers&#34;&gt;&lt;code&gt;[server.custom_response_headers]&lt;/code&gt;&lt;/h3&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;h3 id=&#34;database&#34;&gt;&lt;code&gt;[database]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;type&#34;&gt;&lt;code&gt;type&lt;/code&gt;&lt;/h4&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;h4 id=&#34;host&#34;&gt;&lt;code&gt;host&lt;/code&gt;&lt;/h4&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;h4 id=&#34;name&#34;&gt;&lt;code&gt;name&lt;/code&gt;&lt;/h4&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;h4 id=&#34;user&#34;&gt;&lt;code&gt;user&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The database user (not applicable for &lt;code&gt;sqlite3&lt;/code&gt;).&lt;/p&gt;
&lt;h4 id=&#34;password&#34;&gt;&lt;code&gt;password&lt;/code&gt;&lt;/h4&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;h4 id=&#34;url&#34;&gt;&lt;code&gt;url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Use either URL or the previous fields to configure the database
Example: &lt;code&gt;type://user:password@host:port/name&lt;/code&gt;&lt;/p&gt;
&lt;h4 id=&#34;max_idle_conn&#34;&gt;&lt;code&gt;max_idle_conn&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The maximum number of connections in the idle connection pool.&lt;/p&gt;
&lt;h4 id=&#34;max_open_conn&#34;&gt;&lt;code&gt;max_open_conn&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The maximum number of open connections to the database. For MYSQL, configure this setting on both Grafana and the database. For more information, refer to &lt;a href=&#34;https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_connections&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;sysvar_max_connections&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;conn_max_lifetime&#34;&gt;&lt;code&gt;conn_max_lifetime&lt;/code&gt;&lt;/h4&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;h4 id=&#34;migration_locking&#34;&gt;&lt;code&gt;migration_locking&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable database locking during the migrations. Default is true.&lt;/p&gt;
&lt;h4 id=&#34;locking_attempt_timeout_sec&#34;&gt;&lt;code&gt;locking_attempt_timeout_sec&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;For &lt;code&gt;mysql&lt;/code&gt; and &lt;code&gt;postgres&lt;/code&gt; only.
Specify the time, in seconds, to wait before failing to lock the database for the migrations.
Default is &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;log_queries&#34;&gt;&lt;code&gt;log_queries&lt;/code&gt;&lt;/h4&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;h4 id=&#34;ssl_mode&#34;&gt;&lt;code&gt;ssl_mode&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;For Postgres, use any &lt;a href=&#34;https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;valid &lt;code&gt;libpq&lt;/code&gt; &lt;code&gt;sslmode&lt;/code&gt;&lt;/a&gt;, for example, &lt;code&gt;disable&lt;/code&gt;, &lt;code&gt;require&lt;/code&gt;, &lt;code&gt;verify-full&lt;/code&gt;, etc.
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;h4 id=&#34;ssl_sni&#34;&gt;&lt;code&gt;ssl_sni&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;For Postgres, set to &lt;code&gt;0&lt;/code&gt; to disable &lt;a href=&#34;https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLSNI&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Server Name Indication&lt;/a&gt;.
This is enabled by default on SSL-enabled connections.&lt;/p&gt;
&lt;h4 id=&#34;isolation_level&#34;&gt;&lt;code&gt;isolation_level&lt;/code&gt;&lt;/h4&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;h4 id=&#34;ca_cert_path&#34;&gt;&lt;code&gt;ca_cert_path&lt;/code&gt;&lt;/h4&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;h4 id=&#34;client_key_path&#34;&gt;&lt;code&gt;client_key_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The path to the client key. Only if server requires client authentication.&lt;/p&gt;
&lt;h4 id=&#34;client_cert_path&#34;&gt;&lt;code&gt;client_cert_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The path to the client cert. Only if server requires client authentication.&lt;/p&gt;
&lt;h4 id=&#34;server_cert_name&#34;&gt;&lt;code&gt;server_cert_name&lt;/code&gt;&lt;/h4&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;h4 id=&#34;path&#34;&gt;&lt;code&gt;path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Only applicable for &lt;code&gt;sqlite3&lt;/code&gt; database.
The path to the database file.&lt;/p&gt;
&lt;h4 id=&#34;cache_mode&#34;&gt;&lt;code&gt;cache_mode&lt;/code&gt;&lt;/h4&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;h4 id=&#34;wal&#34;&gt;&lt;code&gt;wal&lt;/code&gt;&lt;/h4&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;h4 id=&#34;query_retries&#34;&gt;&lt;code&gt;query_retries&lt;/code&gt;&lt;/h4&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;h4 id=&#34;transaction_retries&#34;&gt;&lt;code&gt;transaction_retries&lt;/code&gt;&lt;/h4&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;h4 id=&#34;instrument_queries&#34;&gt;&lt;code&gt;instrument_queries&lt;/code&gt;&lt;/h4&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;h4 id=&#34;skip_dashboard_uid_migration_on_startup&#34;&gt;&lt;code&gt;skip_dashboard_uid_migration_on_startup&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to true to skip dashboard UID migrations on startup. Improves startup performance for instances with large numbers of annotations who do not plan to downgrade Grafana. The default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;remote_cache&#34;&gt;&lt;code&gt;[remote_cache]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Caches authentication tokens and other temporary authentication-related data in the configured database, Redis, or Memcached. This setting doesn&amp;rsquo;t 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;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 doesn&amp;rsquo;t control user session storage. User sessions are &lt;em&gt;always&lt;/em&gt; stored in the main database configured in &lt;code&gt;[database]&lt;/code&gt; regardless of your &lt;code&gt;[remote_cache]&lt;/code&gt; settings.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h4 id=&#34;type-1&#34;&gt;&lt;code&gt;type&lt;/code&gt;&lt;/h4&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;h4 id=&#34;connstr&#34;&gt;&lt;code&gt;connstr&lt;/code&gt;&lt;/h4&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;h5 id=&#34;database-1&#34;&gt;&lt;code&gt;database&lt;/code&gt;&lt;/h5&gt;
&lt;p&gt;Leave empty when using &lt;code&gt;database&lt;/code&gt; and Grafana uses the primary database.&lt;/p&gt;
&lt;h5 id=&#34;redis&#34;&gt;&lt;code&gt;redis&lt;/code&gt;&lt;/h5&gt;
&lt;p&gt;Example connection string: &lt;code&gt;addr=127.0.0.1:6379,pool_size=100,db=0,username=grafana,password=grafanaRocks,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;username&lt;/code&gt; (optional) is the connection identifier to authenticate the current connection.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;password&lt;/code&gt; (optional) is the connection secret to authenticate the current connection.&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;h5 id=&#34;memcache&#34;&gt;&lt;code&gt;memcache&lt;/code&gt;&lt;/h5&gt;
&lt;p&gt;Example connection string: &lt;code&gt;127.0.0.1:11211&lt;/code&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;dataproxy&#34;&gt;&lt;code&gt;[dataproxy]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;logging&#34;&gt;&lt;code&gt;logging&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;This enables data proxy logging, default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;timeout&#34;&gt;&lt;code&gt;timeout&lt;/code&gt;&lt;/h4&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;h4 id=&#34;keep_alive_seconds&#34;&gt;&lt;code&gt;keep_alive_seconds&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Interval between keep-alive probes. Default is &lt;code&gt;30&lt;/code&gt; seconds. For more details, refer to the &lt;a href=&#34;https://golang.org/pkg/net/#Dialer.KeepAlive&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;Dialer.KeepAlive&lt;/code&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h4 id=&#34;tls_handshake_timeout_seconds&#34;&gt;&lt;code&gt;tls_handshake_timeout_seconds&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The length of time that Grafana waits for a successful TLS handshake with the data source.
Default is &lt;code&gt;10&lt;/code&gt; seconds.
For more information, refer to the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.TLSHandshakeTimeout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;Transport.TLSHandshakeTimeout&lt;/code&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h4 id=&#34;expect_continue_timeout_seconds&#34;&gt;&lt;code&gt;expect_continue_timeout_seconds&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The length of time that Grafana waits for the first response headers from a data source after fully writing the request headers, if the request has an &lt;code&gt;Expect: 100-continue&lt;/code&gt; header.
A value of &lt;code&gt;0&lt;/code&gt; results in the body being sent immediately.
Default is &lt;code&gt;1&lt;/code&gt; second.
For more information, refer to the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.ExpectContinueTimeout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;Transport.ExpectContinueTimeout&lt;/code&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h4 id=&#34;max_conns_per_host&#34;&gt;&lt;code&gt;max_conns_per_host&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;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 information, refer to the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.MaxConnsPerHost&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;Transport.MaxConnsPerHost&lt;/code&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h4 id=&#34;max_idle_connections&#34;&gt;&lt;code&gt;max_idle_connections&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The maximum number of idle connections that Grafana maintains. Default is &lt;code&gt;100&lt;/code&gt;.
For more information, refer to the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.MaxIdleConns&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;Transport.MaxIdleConns&lt;/code&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h4 id=&#34;idle_conn_timeout_seconds&#34;&gt;&lt;code&gt;idle_conn_timeout_seconds&lt;/code&gt;&lt;/h4&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 information, refer to the &lt;a href=&#34;https://golang.org/pkg/net/http/#Transport.IdleConnTimeout&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;Transport.IdleConnTimeout&lt;/code&gt;&lt;/a&gt; documentation.&lt;/p&gt;
&lt;h4 id=&#34;send_user_header&#34;&gt;&lt;code&gt;send_user_header&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;If enabled and user is not anonymous, data proxy adds the &lt;code&gt;X-Grafana-User&lt;/code&gt; header with username into the request. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;response_limit&#34;&gt;&lt;code&gt;response_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limits the amount of bytes that Grafana reads from responses of outgoing HTTP requests. Default is &lt;code&gt;0&lt;/code&gt; which means disabled.&lt;/p&gt;
&lt;h4 id=&#34;row_limit&#34;&gt;&lt;code&gt;row_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limits the number of rows that Grafana processes from SQL data sources. Default is &lt;code&gt;1000000&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;user_agent&#34;&gt;&lt;code&gt;user_agent&lt;/code&gt;&lt;/h4&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;h3 id=&#34;analytics&#34;&gt;&lt;code&gt;[analytics]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;enabled&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&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 write to the Grafana database and the associated features, such as dashboard and data source insights, presence indicators, and advanced dashboard search. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;reporting_enabled&#34;&gt;&lt;code&gt;reporting_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;When enabled Grafana sends anonymous usage statistics to &lt;code&gt;stats.grafana.org&lt;/code&gt;.
Grafana doesn&amp;rsquo;t track IP addresses, only counters of running instances, versions, dashboards, and errors.&lt;/p&gt;
&lt;p&gt;The anonymous usage statistics help inform the future development of Grafana.
Counters are sent every 24 hours.
Default value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;check_for_updates&#34;&gt;&lt;code&gt;check_for_updates&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable checking for new versions of Grafana in GitHub.
When enabled, the check for a new version runs every ten minutes.
It notifies, via the UI, when a new version is available.
The check itself doesn&amp;rsquo;t cause automatic updates of the Grafana software, nor does it send any sensitive information.&lt;/p&gt;
&lt;h4 id=&#34;check_for_plugin_updates&#34;&gt;&lt;code&gt;check_for_plugin_updates&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to disable 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 ten minutes.
It notifies, via the UI, when a new plugin update exists.
The check itself doesn&amp;rsquo;t cause any automatic updates of any plugins, nor does it send any sensitive information.&lt;/p&gt;
&lt;h4 id=&#34;google_analytics_ua_id&#34;&gt;&lt;code&gt;google_analytics_ua_id&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;If you want to track Grafana usage with Google Analytics specify &lt;em&gt;your&lt;/em&gt; Universal Analytics ID here.
By default this feature is disabled.&lt;/p&gt;
&lt;h4 id=&#34;google_analytics_4_id&#34;&gt;&lt;code&gt;google_analytics_4_id&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;If you want to track Grafana usage with Google Analytics 4 specify &lt;em&gt;your&lt;/em&gt; GA4 ID here.
By default this feature is disabled.&lt;/p&gt;
&lt;h4 id=&#34;google_tag_manager_id&#34;&gt;&lt;code&gt;google_tag_manager_id&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Google Tag Manager ID, only enabled if you enter an ID here.&lt;/p&gt;
&lt;h4 id=&#34;rudderstack_write_key&#34;&gt;&lt;code&gt;rudderstack_write_key&lt;/code&gt;&lt;/h4&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;h4 id=&#34;rudderstack_data_plane_url&#34;&gt;&lt;code&gt;rudderstack_data_plane_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;RudderStack data plane URL to receive RudderStack events.
You must also provide the &lt;code&gt;rudderstack_write_key&lt;/code&gt; to enable this feature.&lt;/p&gt;
&lt;h4 id=&#34;rudderstack_sdk_url&#34;&gt;&lt;code&gt;rudderstack_sdk_url&lt;/code&gt;&lt;/h4&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;h4 id=&#34;rudderstack_v3_sdk_url&#34;&gt;&lt;code&gt;rudderstack_v3_sdk_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional.
This is mirroring the old configuration option, which will be deprecated.
If &lt;code&gt;rudderstack_sdk_url&lt;/code&gt; and &lt;code&gt;rudderstack_v3_sdk_url&lt;/code&gt; are both set, the feature toggle &lt;code&gt;rudderstackUpgrade&lt;/code&gt; will control which one is loaded.&lt;/p&gt;
&lt;h4 id=&#34;rudderstack_config_url&#34;&gt;&lt;code&gt;rudderstack_config_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional.
If tracking with RudderStack is enabled, you can provide a custom URL to load the RudderStack configuration.&lt;/p&gt;
&lt;h4 id=&#34;rudderstack_integrations_url&#34;&gt;&lt;code&gt;rudderstack_integrations_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional.
If tracking with RudderStack is enabled, you can provide a custom URL to load the SDK for destinations running in device mode.
This setting is only valid for RudderStack version 1.1 and higher.&lt;/p&gt;
&lt;h4 id=&#34;application_insights_connection_string&#34;&gt;&lt;code&gt;application_insights_connection_string&lt;/code&gt;&lt;/h4&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;h4 id=&#34;application_insights_endpoint_url&#34;&gt;&lt;code&gt;application_insights_endpoint_url&lt;/code&gt;&lt;/h4&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;h4 id=&#34;application_insights_auto_route_tracking&#34;&gt;&lt;code&gt;application_insights_auto_route_tracking&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optionally, use this to configure &lt;code&gt;enableAutoRouteTracking&lt;/code&gt; in Azure Application Insights. Defaults to &lt;code&gt;true&lt;/code&gt;. For more details, refer to the &lt;a href=&#34;https://learn.microsoft.com/en-us/azure/azure-monitor/app/application-insights-faq#is-there-a-way-to-see-fewer-events-per-transaction-when-i-use-the-application-insights-javascript-sdk&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Azure documentation&lt;/a&gt;&lt;/p&gt;
&lt;h4 id=&#34;feedback_links_enabled&#34;&gt;&lt;code&gt;feedback_links_enabled&lt;/code&gt;&lt;/h4&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;hr /&gt;
&lt;h3 id=&#34;security&#34;&gt;&lt;code&gt;[security]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;disable_initial_admin_creation&#34;&gt;&lt;code&gt;disable_initial_admin_creation&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Disable creation of a Grafana Admin user on first start of Grafana. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;admin_user&#34;&gt;&lt;code&gt;admin_user&lt;/code&gt;&lt;/h4&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;h4 id=&#34;admin_password&#34;&gt;&lt;code&gt;admin_password&lt;/code&gt;&lt;/h4&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;h4 id=&#34;admin_email&#34;&gt;&lt;code&gt;admin_email&lt;/code&gt;&lt;/h4&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;h4 id=&#34;secret_key&#34;&gt;&lt;code&gt;secret_key&lt;/code&gt;&lt;/h4&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;h4 id=&#34;disable_gravatar&#34;&gt;&lt;code&gt;disable_gravatar&lt;/code&gt;&lt;/h4&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;h4 id=&#34;data_source_proxy_whitelist&#34;&gt;&lt;code&gt;data_source_proxy_whitelist&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Define a allowlist of IP addresses or domains with ports, that can be used in data source URLs with the Grafana data source proxy.&lt;/p&gt;
&lt;p&gt;The format is &lt;code&gt;&amp;lt;IP&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;DOMAIN&amp;gt;:&amp;lt;PORT&amp;gt;&lt;/code&gt; separated by spaces.
PostgreSQL, MySQL, and MSSQL data sources don&amp;rsquo;t use the proxy and are not affected by this setting.&lt;/p&gt;
&lt;h4 id=&#34;disable_brute_force_login_protection&#34;&gt;&lt;code&gt;disable_brute_force_login_protection&lt;/code&gt;&lt;/h4&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;.
Login is blocked for five minutes if all login attempts are spent within a 5 minute window.&lt;/p&gt;
&lt;h4 id=&#34;brute_force_login_protection_max_attempts&#34;&gt;&lt;code&gt;brute_force_login_protection_max_attempts&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Configure how many login attempts can be made within a five minute window before being blocked.
Default is &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;disable_username_login_protection&#34;&gt;&lt;code&gt;disable_username_login_protection&lt;/code&gt;&lt;/h4&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 by username&lt;/a&gt;. Default is &lt;code&gt;false&lt;/code&gt;. User will be unable to login for 5 minutes if all login attempts are spent within a 5 minute window.&lt;/p&gt;
&lt;h4 id=&#34;disable_ip_address_login_protection&#34;&gt;&lt;code&gt;disable_ip_address_login_protection&lt;/code&gt;&lt;/h4&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 by IP address&lt;/a&gt;. Default is &lt;code&gt;true&lt;/code&gt;. Anyone from the IP address will be unable to login for 5 minutes if all login attempts are spent within a 5 minute window.&lt;/p&gt;
&lt;h4 id=&#34;cookie_secure&#34;&gt;&lt;code&gt;cookie_secure&lt;/code&gt;&lt;/h4&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;h4 id=&#34;cookie_samesite&#34;&gt;&lt;code&gt;cookie_samesite&lt;/code&gt;&lt;/h4&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;p&gt;If you want to use OAuth/SAML for login, it is necessary to configure this attribute as &lt;code&gt;lax&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;allow_embedding&#34;&gt;&lt;code&gt;allow_embedding&lt;/code&gt;&lt;/h4&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; is set in Grafana HTTP responses which instructs 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;h4 id=&#34;strict_transport_security&#34;&gt;&lt;code&gt;strict_transport_security&lt;/code&gt;&lt;/h4&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;h4 id=&#34;strict_transport_security_max_age_seconds&#34;&gt;&lt;code&gt;strict_transport_security_max_age_seconds&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets how long a browser should cache HSTS in seconds.
Only applied if &lt;code&gt;strict_transport_security&lt;/code&gt; is enabled. The default value is &lt;code&gt;86400&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;strict_transport_security_preload&#34;&gt;&lt;code&gt;strict_transport_security_preload&lt;/code&gt;&lt;/h4&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 &lt;code&gt;strict_transport_security&lt;/code&gt; is enabled. The default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;strict_transport_security_subdomains&#34;&gt;&lt;code&gt;strict_transport_security_subdomains&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to enable the HSTS includeSubDomains option. Only applied if &lt;code&gt;strict_transport_security&lt;/code&gt; is enabled. The default value is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;x_content_type_options&#34;&gt;&lt;code&gt;x_content_type_options&lt;/code&gt;&lt;/h4&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;h4 id=&#34;x_xss_protection&#34;&gt;&lt;code&gt;x_xss_protection&lt;/code&gt;&lt;/h4&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;h4 id=&#34;content_security_policy&#34;&gt;&lt;code&gt;content_security_policy&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to add the &lt;code&gt;Content-Security-Policy&lt;/code&gt; header to your requests.
The Content Security Policy (CSP) controls which resources that the user agent can load and helps prevent XSS attacks.&lt;/p&gt;
&lt;h4 id=&#34;content_security_policy_template&#34;&gt;&lt;code&gt;content_security_policy_template&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the policy template that&amp;rsquo;s used to add 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;h4 id=&#34;content_security_policy_report_only&#34;&gt;&lt;code&gt;content_security_policy_report_only&lt;/code&gt;&lt;/h4&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 &amp;ldquo;Report Only&amp;rdquo; mode lets you to experiment with policies by monitoring their effects without enforcing them.
You can enable both policies simultaneously.&lt;/p&gt;
&lt;h4 id=&#34;content_security_policy_template-1&#34;&gt;&lt;code&gt;content_security_policy_template&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the policy template that&amp;rsquo;s used to add 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;h4 id=&#34;actions_allow_post_url&#34;&gt;&lt;code&gt;actions_allow_post_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets API paths to be accessible between plugins using the POST verb. If the value is empty, you can only pass remote requests through the proxy. If the value is set, you can also send authenticated POST requests to the local server. You typically use this to enable backend communication between plugins.&lt;/p&gt;
&lt;p&gt;This is a comma-separated list which uses glob matching.&lt;/p&gt;
&lt;p&gt;The following example allows access to all plugins that have a backend:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;actions_allow_post_url=/api/plugins/*&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The following example limits access to the backend of a single plugin:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;actions_allow_post_url=/api/plugins/grafana-special-app&lt;/code&gt;&lt;/p&gt;
&lt;h4 id=&#34;csrf_trusted_origins&#34;&gt;&lt;code&gt;csrf_trusted_origins&lt;/code&gt;&lt;/h4&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;h4 id=&#34;csrf_additional_headers&#34;&gt;&lt;code&gt;csrf_additional_headers&lt;/code&gt;&lt;/h4&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;h4 id=&#34;csrf_always_check&#34;&gt;&lt;code&gt;csrf_always_check&lt;/code&gt;&lt;/h4&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;h4 id=&#34;enable_frontend_sandbox_for_plugins&#34;&gt;&lt;code&gt;enable_frontend_sandbox_for_plugins&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Comma-separated list of plugins IDs to load inside the frontend sandbox.&lt;/p&gt;
&lt;h3 id=&#34;snapshots&#34;&gt;&lt;code&gt;[snapshots]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;enabled-1&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&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;h4 id=&#34;external_enabled&#34;&gt;&lt;code&gt;external_enabled&lt;/code&gt;&lt;/h4&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;h4 id=&#34;external_snapshot_url&#34;&gt;&lt;code&gt;external_snapshot_url&lt;/code&gt;&lt;/h4&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;h4 id=&#34;external_snapshot_name&#34;&gt;&lt;code&gt;external_snapshot_name&lt;/code&gt;&lt;/h4&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;h4 id=&#34;public_mode&#34;&gt;&lt;code&gt;public_mode&lt;/code&gt;&lt;/h4&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;hr /&gt;
&lt;h3 id=&#34;dashboards&#34;&gt;&lt;code&gt;[dashboards]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;versions_to_keep&#34;&gt;&lt;code&gt;versions_to_keep&lt;/code&gt;&lt;/h4&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;h4 id=&#34;min_refresh_interval&#34;&gt;&lt;code&gt;min_refresh_interval&lt;/code&gt;&lt;/h4&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 (&lt;code&gt;ms&lt;/code&gt;, &lt;code&gt;s&lt;/code&gt;, &lt;code&gt;m&lt;/code&gt;, &lt;code&gt;h&lt;/code&gt;, &lt;code&gt;d&lt;/code&gt;). For example &lt;code&gt;30s&lt;/code&gt; or &lt;code&gt;1m&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This also limits the refresh interval options in Explore.&lt;/p&gt;
&lt;h4 id=&#34;default_home_dashboard_path&#34;&gt;&lt;code&gt;default_home_dashboard_path&lt;/code&gt;&lt;/h4&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;h3 id=&#34;dashboard_cleanup&#34;&gt;&lt;code&gt;[dashboard_cleanup]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Settings related to cleaning up associated dashboards information if the dashboard was deleted through /apis.&lt;/p&gt;
&lt;h4 id=&#34;interval&#34;&gt;&lt;code&gt;interval&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;How often to run the job to cleanup associated resources. The default interval is &lt;code&gt;30s&lt;/code&gt;. The minimum allowed value is &lt;code&gt;10s&lt;/code&gt; to ensure the system isn&amp;rsquo;t overloaded.&lt;/p&gt;
&lt;p&gt;The interval string must include a unit suffix (ms, s, m, h), e.g. 30s or 1m.&lt;/p&gt;
&lt;h4 id=&#34;batch_size&#34;&gt;&lt;code&gt;batch_size&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Number of deleted dashboards to process in each batch during the cleanup process.
Default: &lt;code&gt;10&lt;/code&gt;, Minimum: &lt;code&gt;5&lt;/code&gt;, Maximum: &lt;code&gt;200&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Increasing this value allows processing more dashboards in each cleanup cycle but may impact system performance.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;datasources&#34;&gt;&lt;code&gt;[datasources]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;default_manage_alerts_ui_toggle&#34;&gt;&lt;code&gt;default_manage_alerts_ui_toggle&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Default behavior for the &amp;ldquo;Manage alerts via Alerting UI&amp;rdquo; toggle when configuring a data source. It only works if the data source&amp;rsquo;s &lt;code&gt;jsonData.manageAlerts&lt;/code&gt; prop does not contain a previously configured value.&lt;/p&gt;
&lt;h4 id=&#34;default_allow_recording_rules_target_alerts_ui_toggle&#34;&gt;&lt;code&gt;default_allow_recording_rules_target_alerts_ui_toggle&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Default behavior for the &amp;ldquo;Allow as recording rules target&amp;rdquo; toggle when configuring a data source. It only works if the data source&amp;rsquo;s &lt;code&gt;jsonData.allowAsRecordingRulesTarget&lt;/code&gt; prop does not contain a previously configured value.&lt;/p&gt;
&lt;h3 id=&#34;sql_datasources&#34;&gt;&lt;code&gt;[sql_datasources]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;max_open_conns_default&#34;&gt;&lt;code&gt;max_open_conns_default&lt;/code&gt;&lt;/h4&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 is preferred over the default value.&lt;/p&gt;
&lt;h4 id=&#34;max_idle_conns_default&#34;&gt;&lt;code&gt;max_idle_conns_default&lt;/code&gt;&lt;/h4&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 is preferred over the default value.&lt;/p&gt;
&lt;h4 id=&#34;max_conn_lifetime_default&#34;&gt;&lt;code&gt;max_conn_lifetime_default&lt;/code&gt;&lt;/h4&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 is preferred over the default value.&lt;/p&gt;
&lt;hr/&gt;
&lt;h3 id=&#34;users&#34;&gt;&lt;code&gt;[users]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;allow_sign_up&#34;&gt;&lt;code&gt;allow_sign_up&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;false&lt;/code&gt; to prohibit users from being able to sign up or create user accounts.
Default is &lt;code&gt;false&lt;/code&gt;.
A Grafana Admin 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;h4 id=&#34;allow_org_create&#34;&gt;&lt;code&gt;allow_org_create&lt;/code&gt;&lt;/h4&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;h4 id=&#34;auto_assign_org&#34;&gt;&lt;code&gt;auto_assign_org&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to automatically add new users to the main organization (ID &lt;code&gt;1&lt;/code&gt;).
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 is 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;h4 id=&#34;auto_assign_org_id&#34;&gt;&lt;code&gt;auto_assign_org_id&lt;/code&gt;&lt;/h4&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;.
The organization must already exist.
Default is &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;auto_assign_org_role&#34;&gt;&lt;code&gt;auto_assign_org_role&lt;/code&gt;&lt;/h4&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 &lt;code&gt;true&lt;/code&gt;.
You can set this to one of the following roles: (&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;h4 id=&#34;verify_email_enabled&#34;&gt;&lt;code&gt;verify_email_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Require email validation before sign up completes or when updating a user email address. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;login_default_org_id&#34;&gt;&lt;code&gt;login_default_org_id&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the default organization for users when they sign in. The default is &lt;code&gt;-1&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;login_hint&#34;&gt;&lt;code&gt;login_hint&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Text used as placeholder text on login page for login/username input.&lt;/p&gt;
&lt;h4 id=&#34;password_hint&#34;&gt;&lt;code&gt;password_hint&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Text used as placeholder text on login page for password input.&lt;/p&gt;
&lt;h4 id=&#34;default_theme&#34;&gt;&lt;code&gt;default_theme&lt;/code&gt;&lt;/h4&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;h4 id=&#34;default_language&#34;&gt;&lt;code&gt;default_language&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;This option sets the default UI language if a supported IETF language tag like &lt;code&gt;en-US&lt;/code&gt; is available.
If set to &lt;code&gt;detect&lt;/code&gt;, the default UI language is determined by browser preference.
The default is &lt;code&gt;en-US&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;home_page&#34;&gt;&lt;code&gt;home_page&lt;/code&gt;&lt;/h4&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;h4 id=&#34;external-user-management&#34;&gt;&lt;code&gt;External user management&lt;/code&gt;&lt;/h4&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;h4 id=&#34;viewers_can_edit&#34;&gt;&lt;code&gt;viewers_can_edit&lt;/code&gt;&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;This option is deprecated - assign your viewers as editors, if you are using RBAC assign the data sources explorer role to your users.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&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;h4 id=&#34;user_invite_max_lifetime_duration&#34;&gt;&lt;code&gt;user_invite_max_lifetime_duration&lt;/code&gt;&lt;/h4&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;h4 id=&#34;verification_email_max_lifetime_duration&#34;&gt;&lt;code&gt;verification_email_max_lifetime_duration&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The duration in time a verification email, used to update the email address of a user, remains valid before expiring.
This setting should be expressed as a duration. Examples: 6h (hours), 2d (days), 1w (week).
Default is 1h (1 hour).&lt;/p&gt;
&lt;h4 id=&#34;last_seen_update_interval&#34;&gt;&lt;code&gt;last_seen_update_interval&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The frequency of updating a user&amp;rsquo;s last seen time.
This setting should be expressed as a duration. Examples: 1h (hour), 15m (minutes)
Default is &lt;code&gt;15m&lt;/code&gt; (15 minutes). The minimum supported duration is &lt;code&gt;5m&lt;/code&gt; (5 minutes). The maximum supported duration is &lt;code&gt;1h&lt;/code&gt; (1 hour).&lt;/p&gt;
&lt;h4 id=&#34;hidden_users&#34;&gt;&lt;code&gt;hidden_users&lt;/code&gt;&lt;/h4&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;h3 id=&#34;auth&#34;&gt;&lt;code&gt;[auth]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Grafana provides many ways to authenticate users. Refer to the Grafana &lt;a href=&#34;../configure-access/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;h4 id=&#34;login_cookie_name&#34;&gt;&lt;code&gt;login_cookie_name&lt;/code&gt;&lt;/h4&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;h4 id=&#34;login_maximum_inactive_lifetime_duration&#34;&gt;&lt;code&gt;login_maximum_inactive_lifetime_duration&lt;/code&gt;&lt;/h4&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 such &lt;code&gt;5m&lt;/code&gt; (minutes), &lt;code&gt;6h&lt;/code&gt; (hours), &lt;code&gt;10d&lt;/code&gt; (days), &lt;code&gt;2w&lt;/code&gt; (weeks), or &lt;code&gt;1M&lt;/code&gt; (month).
The lifetime resets at each successful token rotation (&lt;code&gt;token_rotation_interval_minutes&lt;/code&gt;).&lt;/p&gt;
&lt;h4 id=&#34;login_maximum_lifetime_duration&#34;&gt;&lt;code&gt;login_maximum_lifetime_duration&lt;/code&gt;&lt;/h4&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 such &lt;code&gt;5m&lt;/code&gt; (minutes), &lt;code&gt;6h&lt;/code&gt; (hours), &lt;code&gt;10d&lt;/code&gt; (days), &lt;code&gt;2w&lt;/code&gt; (weeks), or &lt;code&gt;1M&lt;/code&gt; (month).&lt;/p&gt;
&lt;h4 id=&#34;token_rotation_interval_minutes&#34;&gt;&lt;code&gt;token_rotation_interval_minutes&lt;/code&gt;&lt;/h4&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;h4 id=&#34;disable_login_form&#34;&gt;&lt;code&gt;disable_login_form&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to disable (hide) the login form, useful if you use OAuth 2.0. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;disable_signout_menu&#34;&gt;&lt;code&gt;disable_signout_menu&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to disable the sign out link in the side menu. This is useful if you use &lt;code&gt;auth.proxy&lt;/code&gt;. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;signout_redirect_url&#34;&gt;&lt;code&gt;signout_redirect_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The URL the user is redirected to upon signing out. To support &lt;a href=&#34;https://openid.net/specs/openid-connect-rpinitiated-1_0.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;OpenID Connect RP-Initiated Logout&lt;/a&gt;, the user must add &lt;code&gt;post_logout_redirect_uri&lt;/code&gt; to the &lt;code&gt;signout_redirect_url&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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;signout_redirect_url = http://localhost:8087/realms/grafana/protocol/openid-connect/logout?post_logout_redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Flogin&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;oauth_auto_login&#34;&gt;&lt;code&gt;oauth_auto_login&lt;/code&gt;&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;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;h4 id=&#34;oauth_state_cookie_max_age&#34;&gt;&lt;code&gt;oauth_state_cookie_max_age&lt;/code&gt;&lt;/h4&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;h4 id=&#34;oauth_login_error_message&#34;&gt;&lt;code&gt;oauth_login_error_message&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;A custom error message for when users are unauthorized. Default is a key for an internationalized phrase in the frontend, &lt;code&gt;Login provider denied login request&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;oauth_refresh_token_server_lock_min_wait_ms&#34;&gt;&lt;code&gt;oauth_refresh_token_server_lock_min_wait_ms&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Minimum wait time in milliseconds for the server lock retry mechanism. Default is &lt;code&gt;1000&lt;/code&gt; (milliseconds). The server lock retry mechanism is used to prevent multiple Grafana instances from simultaneously refreshing OAuth tokens. This mechanism waits at least this amount of time before retrying to acquire the server lock.&lt;/p&gt;
&lt;p&gt;There are five retries in total, so with the default value, the total wait time (for acquiring the lock) is at least 5 seconds (the wait time between retries is calculated as random(n, n &#43; 500)), which means that the maximum token refresh duration must be less than 5-6 seconds.&lt;/p&gt;
&lt;p&gt;If you experience issues with the OAuth token refresh mechanism, you can increase this value to allow more time for the token refresh to complete.&lt;/p&gt;
&lt;h4 id=&#34;oauth_skip_org_role_update_sync&#34;&gt;&lt;code&gt;oauth_skip_org_role_update_sync&lt;/code&gt;&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;This option is removed from G11 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 from &lt;code&gt;true&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;, then 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.&lt;/p&gt;
&lt;p&gt;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 are reset to the default organization role on every login.&lt;/p&gt;
&lt;p&gt;For more information, refer to &lt;a href=&#34;#auto_assign_org_role&#34;&gt;&lt;code&gt;auto_assign_org_role&lt;/code&gt; option&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h4 id=&#34;skip_org_role_sync&#34;&gt;&lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/h4&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;The default value for &lt;code&gt;skip_org_role_sync&lt;/code&gt; 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;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;Enabling &lt;code&gt;skip_org_role_sync&lt;/code&gt; also disables the synchronization of Grafana Admins from the external provider, as such &lt;code&gt;allow_assign_grafana_admin&lt;/code&gt; is ignored.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&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;code&gt;[auth.grafana_com]&lt;/code&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;Resulting Org Role&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;code&gt;[auth.azuread]&lt;/code&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;Resulting Org Role&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;code&gt;[auth.google]&lt;/code&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;Resulting Org Role&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;code&gt;[auth.github]&lt;/code&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;Resulting Org Role&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;code&gt;[auth.gitlab]&lt;/code&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;Resulting Org Role&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;code&gt;[auth.generic_oauth]&lt;/code&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;Resulting Org Role&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;code&gt;[auth.okta]&lt;/code&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;Resulting Org Role&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;h5 id=&#34;example-skip_org_role_sync&#34;&gt;Example &lt;code&gt;skip_org_role_sync&lt;/code&gt;&lt;/h5&gt;
&lt;p&gt;&lt;code&gt;[auth.google]&lt;/code&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;Resulting Org Role&lt;/th&gt;
              &lt;th&gt;Example Scenario&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;em&gt;not&lt;/em&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;em&gt;not&lt;/em&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;em&gt;not&lt;/em&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;h4 id=&#34;api_key_max_seconds_to_live&#34;&gt;&lt;code&gt;api_key_max_seconds_to_live&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit of API key seconds to live before expiration. Default is -1 (unlimited).&lt;/p&gt;
&lt;h4 id=&#34;sigv4_auth_enabled&#34;&gt;&lt;code&gt;sigv4_auth_enabled&lt;/code&gt;&lt;/h4&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 data sources. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;sigv4_verbose_logging&#34;&gt;&lt;code&gt;sigv4_verbose_logging&lt;/code&gt;&lt;/h4&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;h4 id=&#34;managed_service_accounts_enabled&#34;&gt;&lt;code&gt;managed_service_accounts_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;blockquote&gt;
&lt;p&gt;Only available in Grafana 11.3&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; to enable the use of managed service accounts for plugin authentication. Default is &lt;code&gt;false&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 feature only supports single-organization deployments.
The plugin&amp;rsquo;s service account is automatically created in the default organization.
This means the plugin can only access data and resources within that specific organization.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;authanonymous&#34;&gt;&lt;code&gt;[auth.anonymous]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/grafana/#anonymous-authentication&#34;&gt;Anonymous authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authgithub&#34;&gt;&lt;code&gt;[auth.github]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/github/&#34;&gt;GitHub OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authgitlab&#34;&gt;&lt;code&gt;[auth.gitlab]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/gitlab/&#34;&gt;GitLab OAuth 2.0 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authgoogle&#34;&gt;&lt;code&gt;[auth.google]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/google/&#34;&gt;Google OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authgrafananet&#34;&gt;&lt;code&gt;[auth.grafananet]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Legacy key names, still in the configuration file so they work in environment variables.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authgrafana_com&#34;&gt;&lt;code&gt;[auth.grafana_com]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Legacy key names, still in the configuration file so they work in environment variables.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authazuread&#34;&gt;&lt;code&gt;[auth.azuread]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/azuread/&#34;&gt;Entra ID OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authokta&#34;&gt;&lt;code&gt;[auth.okta]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/okta/&#34;&gt;Okta OAuth2 authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authgeneric_oauth&#34;&gt;&lt;code&gt;[auth.generic_oauth]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/generic-oauth/&#34;&gt;Generic OAuth authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authbasic&#34;&gt;&lt;code&gt;[auth.basic]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/#basic-authentication&#34;&gt;Basic authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authproxy&#34;&gt;&lt;code&gt;[auth.proxy]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/auth-proxy/&#34;&gt;Auth proxy authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;authldap&#34;&gt;&lt;code&gt;[auth.ldap]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/ldap/&#34;&gt;LDAP authentication&lt;/a&gt; for detailed instructions.&lt;/p&gt;
&lt;h3 id=&#34;aws&#34;&gt;&lt;code&gt;[aws]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;You can configure core and external AWS plugins.&lt;/p&gt;
&lt;h4 id=&#34;allowed_auth_providers&#34;&gt;&lt;code&gt;allowed_auth_providers&lt;/code&gt;&lt;/h4&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;h4 id=&#34;assume_role_enabled&#34;&gt;&lt;code&gt;assume_role_enabled&lt;/code&gt;&lt;/h4&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;h4 id=&#34;list_metrics_page_limit&#34;&gt;&lt;code&gt;list_metrics_page_limit&lt;/code&gt;&lt;/h4&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 Amazon CloudWatch data source. By default, the page limit is 500.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;azure&#34;&gt;&lt;code&gt;[azure]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Grafana supports additional integration with Azure services when hosted in the Azure Cloud.&lt;/p&gt;
&lt;h4 id=&#34;cloud&#34;&gt;&lt;code&gt;cloud&lt;/code&gt;&lt;/h4&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;h4 id=&#34;clouds_config&#34;&gt;&lt;code&gt;clouds_config&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The JSON configuration defines a list of Azure clouds and their associated properties when hosted in custom Azure environments.&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;clouds_config = `[
		{
			&amp;#34;name&amp;#34;:&amp;#34;CustomCloud1&amp;#34;,
			&amp;#34;displayName&amp;#34;:&amp;#34;Custom Cloud 1&amp;#34;,
			&amp;#34;aadAuthority&amp;#34;:&amp;#34;https://login.cloud1.contoso.com/&amp;#34;,
			&amp;#34;properties&amp;#34;:{
				&amp;#34;azureDataExplorerSuffix&amp;#34;: &amp;#34;.kusto.windows.cloud1.contoso.com&amp;#34;,
				&amp;#34;logAnalytics&amp;#34;:            &amp;#34;https://api.loganalytics.cloud1.contoso.com&amp;#34;,
				&amp;#34;portal&amp;#34;:                  &amp;#34;https://portal.azure.cloud1.contoso.com&amp;#34;,
				&amp;#34;prometheusResourceId&amp;#34;:    &amp;#34;https://prometheus.monitor.azure.cloud1.contoso.com&amp;#34;,
				&amp;#34;resourceManager&amp;#34;:         &amp;#34;https://management.azure.cloud1.contoso.com&amp;#34;
			}
		}]`&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;managed_identity_enabled&#34;&gt;&lt;code&gt;managed_identity_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specifies whether Grafana is running in Azure with Managed Identity configured (for example, running in a Azure Virtual Machines instance). Disabled by default, needs to be explicitly enabled.&lt;/p&gt;
&lt;h4 id=&#34;managed_identity_client_id&#34;&gt;&lt;code&gt;managed_identity_client_id&lt;/code&gt;&lt;/h4&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;h4 id=&#34;workload_identity_enabled&#34;&gt;&lt;code&gt;workload_identity_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specifies whether Entra ID Workload Identity authentication should be enabled in data sources that support it.&lt;/p&gt;
&lt;p&gt;For more documentation on Entra ID 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;Entra ID Workload Identity&lt;/a&gt; documentation.&lt;/p&gt;
&lt;p&gt;Disabled by default, needs to be explicitly enabled.&lt;/p&gt;
&lt;h4 id=&#34;workload_identity_tenant_id&#34;&gt;&lt;code&gt;workload_identity_tenant_id&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Tenant ID of the Entra ID Workload Identity.&lt;/p&gt;
&lt;p&gt;Allows to override default tenant ID of the Entra ID identity associated with the Kubernetes service account.&lt;/p&gt;
&lt;h4 id=&#34;workload_identity_client_id&#34;&gt;&lt;code&gt;workload_identity_client_id&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Client ID of the Entra ID Workload Identity.&lt;/p&gt;
&lt;p&gt;Allows to override default client ID of the Entra ID identity associated with the Kubernetes service account.&lt;/p&gt;
&lt;h4 id=&#34;workload_identity_token_file&#34;&gt;&lt;code&gt;workload_identity_token_file&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Custom path to token file for the Entra ID 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;h4 id=&#34;user_identity_enabled&#34;&gt;&lt;code&gt;user_identity_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specifies whether user identity authentication (on behalf of currently signed-in user) should be enabled in data sources that support it (requires AAD authentication).&lt;/p&gt;
&lt;p&gt;Disabled by default, needs to be explicitly enabled.&lt;/p&gt;
&lt;h4 id=&#34;user_identity_fallback_credentials_enabled&#34;&gt;&lt;code&gt;user_identity_fallback_credentials_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specifies whether user identity authentication fallback credentials should be enabled in data sources. Enabling this allows data source creators to provide fallback credentials for backend-initiated requests, such as alerting, recorded queries, and so on.&lt;/p&gt;
&lt;p&gt;It is by default and needs to be explicitly disabled. It doesn&amp;rsquo;t have any effect if user identity authentication is disabled.&lt;/p&gt;
&lt;h4 id=&#34;user_identity_token_url&#34;&gt;&lt;code&gt;user_identity_token_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Override token URL for Azure Active Directory.&lt;/p&gt;
&lt;p&gt;By default is the same as token URL configured for AAD authentication settings.&lt;/p&gt;
&lt;h3 id=&#34;user_identity_client_authentication&#34;&gt;&lt;code&gt;user_identity_client_authentication&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Override client authentication method for Azure Active Directory. Currently supported values are &lt;code&gt;client_secret_post&lt;/code&gt; and &lt;code&gt;managed_identity&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;By default is the same as client authentication method configured for AAD authentication settings.&lt;/p&gt;
&lt;h3 id=&#34;user_identity_client_id&#34;&gt;&lt;code&gt;user_identity_client_id&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Override ADD application ID which would be used to exchange users token to an access token for the data source.&lt;/p&gt;
&lt;p&gt;By default is the same as used in AAD authentication or can be set to another application (for OBO flow).&lt;/p&gt;
&lt;h4 id=&#34;user_identity_client_secret&#34;&gt;&lt;code&gt;user_identity_client_secret&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Override the AAD application client secret.&lt;/p&gt;
&lt;p&gt;By default is the same as used in AAD authentication or can be set to another application (for OBO flow).&lt;/p&gt;
&lt;h3 id=&#34;user_identity_managed_identity_client_id&#34;&gt;&lt;code&gt;user_identity_managed_identity_client_id&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Override the AAD application managed identity client ID of the federated credential configured as a user-assigned managed identity.&lt;/p&gt;
&lt;p&gt;By default is the same as used in AAD authentication or can be set to another managed identity (for OBO flow).&lt;/p&gt;
&lt;h3 id=&#34;user_identity_federated_credential_audience&#34;&gt;&lt;code&gt;user_identity_federated_credential_audience&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Override the AAD federated credential audience of the federated credential configured as a user-assigned managed identity.&lt;/p&gt;
&lt;p&gt;By default is the same as used in AAD authentication or can be set to another audience (for OBO flow).&lt;/p&gt;
&lt;h3 id=&#34;forward_settings_to_plugins&#34;&gt;&lt;code&gt;forward_settings_to_plugins&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Set plugins to receive Azure settings via plugin context.&lt;/p&gt;
&lt;p&gt;By default, this includes all Grafana Labs owned Azure plugins or those that use Azure settings (Azure Monitor, Azure Data Explorer, Prometheus, MSSQL).&lt;/p&gt;
&lt;h4 id=&#34;azure_entra_password_credentials_enabled&#34;&gt;&lt;code&gt;azure_entra_password_credentials_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specifies whether Entra password authentication can be used for the MSSQL data source. This authentication isn&amp;rsquo;t recommended and consideration should be taken before enabling this.&lt;/p&gt;
&lt;p&gt;Disabled by default, needs to be explicitly enabled.&lt;/p&gt;
&lt;h3 id=&#34;authjwt&#34;&gt;&lt;code&gt;[auth.jwt]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../configure-access/configure-authentication/jwt/&#34;&gt;JWT authentication&lt;/a&gt; for more information.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&#34;smtp&#34;&gt;&lt;code&gt;[smtp]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Email server settings.&lt;/p&gt;
&lt;h4 id=&#34;enabled-2&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&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;h4 id=&#34;host-1&#34;&gt;&lt;code&gt;host&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Default is &lt;code&gt;localhost:25&lt;/code&gt;. Use port 465 for implicit TLS.&lt;/p&gt;
&lt;h4 id=&#34;user-1&#34;&gt;&lt;code&gt;user&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;In case of SMTP auth, default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;password-1&#34;&gt;&lt;code&gt;password&lt;/code&gt;&lt;/h4&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;h4 id=&#34;cert_file-1&#34;&gt;&lt;code&gt;cert_file&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;File path to a cert file, default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;key_file&#34;&gt;&lt;code&gt;key_file&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;File path to a key file, default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;skip_verify&#34;&gt;&lt;code&gt;skip_verify&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Verify SSL for SMTP server, default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;from_address&#34;&gt;&lt;code&gt;from_address&lt;/code&gt;&lt;/h4&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;h4 id=&#34;from_name&#34;&gt;&lt;code&gt;from_name&lt;/code&gt;&lt;/h4&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;h4 id=&#34;ehlo_identity&#34;&gt;&lt;code&gt;ehlo_identity&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Name to be used as client identity for EHLO in SMTP conversation, default is &lt;code&gt;&amp;lt;instance_name&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;starttls_policy&#34;&gt;&lt;code&gt;startTLS_policy&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Either &lt;code&gt;OpportunisticStartTLS&lt;/code&gt;, &lt;code&gt;MandatoryStartTLS&lt;/code&gt;, &lt;code&gt;NoStartTLS&lt;/code&gt;, or &lt;code&gt;empty&lt;/code&gt;. Default is &lt;code&gt;empty&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;enable_tracing&#34;&gt;&lt;code&gt;enable_tracing&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable trace propagation in email headers, using the &lt;code&gt;traceparent&lt;/code&gt;, &lt;code&gt;tracestate&lt;/code&gt; and (optionally) &lt;code&gt;baggage&lt;/code&gt; fields. Default is &lt;code&gt;false&lt;/code&gt;. To enable, you must first configure tracing in one of the &lt;code&gt;tracing.opentelemetry.*&lt;/code&gt; sections.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;smtpstatic_headers&#34;&gt;&lt;code&gt;[smtp.static_headers]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Enter key-value pairs on their own lines to be included as headers on outgoing emails. All keys must be in canonical mail header format.
Examples: &lt;code&gt;Foo=bar&lt;/code&gt;, &lt;code&gt;Foo-Header=bar&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;emails&#34;&gt;&lt;code&gt;[emails]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;welcome_email_on_sign_up&#34;&gt;&lt;code&gt;welcome_email_on_sign_up&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;templates_pattern&#34;&gt;&lt;code&gt;templates_pattern&lt;/code&gt;&lt;/h4&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;h4 id=&#34;content_types&#34;&gt;&lt;code&gt;content_types&lt;/code&gt;&lt;/h4&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.
For example, &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 uses the media 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;h3 id=&#34;log&#34;&gt;&lt;code&gt;[log]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Grafana logging options.&lt;/p&gt;
&lt;h4 id=&#34;mode&#34;&gt;&lt;code&gt;mode&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Options are &lt;code&gt;console&lt;/code&gt;, &lt;code&gt;file&lt;/code&gt;, and &lt;code&gt;syslog&lt;/code&gt;. Default is &lt;code&gt;console&lt;/code&gt; and &lt;code&gt;file&lt;/code&gt;.
Use spaces to separate multiple modes, for example, &lt;code&gt;console file&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;level&#34;&gt;&lt;code&gt;level&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Options are &lt;code&gt;debug&lt;/code&gt;, &lt;code&gt;info&lt;/code&gt;, &lt;code&gt;warn&lt;/code&gt;, &lt;code&gt;error&lt;/code&gt;. &lt;code&gt;critical&lt;/code&gt; is an alias for &lt;code&gt;error&lt;/code&gt;. Default is &lt;code&gt;info&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;filters&#34;&gt;&lt;code&gt;filters&lt;/code&gt;&lt;/h4&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;p&gt;You can use multiple filters with a comma-seperated list:
For example: &lt;code&gt;filters = sqlstore:debug,plugins:info&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The equivalent for a &lt;code&gt;docker-compose.yaml&lt;/code&gt; looks 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;GF_LOG_FILTERS: sqlstore:debug,plugins:info
GF_LOG_LEVEL: error&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;user_facing_default_error&#34;&gt;&lt;code&gt;user_facing_default_error&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Use this configuration option to set the default error message shown to users. This message is displayed instead of sensitive backend errors, which should be obfuscated. The default message is &lt;code&gt;Please inspect the Grafana server log for details.&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;logconsole&#34;&gt;&lt;code&gt;[log.console]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Only applicable when &lt;code&gt;console&lt;/code&gt; is used in &lt;code&gt;[log]&lt;/code&gt; mode.&lt;/p&gt;
&lt;h4 id=&#34;level-1&#34;&gt;&lt;code&gt;level&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;See &lt;a href=&#34;#level&#34;&gt;&lt;code&gt;[log] level&lt;/code&gt;&lt;/a&gt; for values. Default is inherited from &lt;code&gt;[log]&lt;/code&gt; level.&lt;/p&gt;
&lt;h4 id=&#34;format&#34;&gt;&lt;code&gt;format&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Log line format, valid options are &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;console&lt;/code&gt;, and &lt;code&gt;json&lt;/code&gt;. Default is &lt;code&gt;console&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;logfile&#34;&gt;&lt;code&gt;[log.file]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Only applicable when &lt;code&gt;file&lt;/code&gt; used in &lt;code&gt;[log]&lt;/code&gt; mode.&lt;/p&gt;
&lt;h4 id=&#34;level-2&#34;&gt;&lt;code&gt;level&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;See &lt;a href=&#34;#level&#34;&gt;&lt;code&gt;[log] level&lt;/code&gt;&lt;/a&gt; for values. Default is inherited from &lt;code&gt;[log]&lt;/code&gt; level.&lt;/p&gt;
&lt;h4 id=&#34;format-1&#34;&gt;&lt;code&gt;format&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Log line format, valid options are &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;console&lt;/code&gt;, and &lt;code&gt;json&lt;/code&gt;. Default is &lt;code&gt;text&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;log_rotate&#34;&gt;&lt;code&gt;log_rotate&lt;/code&gt;&lt;/h4&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;h4 id=&#34;max_lines&#34;&gt;&lt;code&gt;max_lines&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Maximum lines per file before rotating it. Default is &lt;code&gt;1000000&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;max_size_shift&#34;&gt;&lt;code&gt;max_size_shift&lt;/code&gt;&lt;/h4&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;h4 id=&#34;daily_rotate&#34;&gt;&lt;code&gt;daily_rotate&lt;/code&gt;&lt;/h4&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;h4 id=&#34;max_days&#34;&gt;&lt;code&gt;max_days&lt;/code&gt;&lt;/h4&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;h3 id=&#34;logsyslog&#34;&gt;&lt;code&gt;[log.syslog]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Only applicable when &lt;code&gt;syslog&lt;/code&gt; used in &lt;code&gt;[log]&lt;/code&gt; mode.&lt;/p&gt;
&lt;h4 id=&#34;level-3&#34;&gt;&lt;code&gt;level&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;See &lt;a href=&#34;#level&#34;&gt;&lt;code&gt;[log] level&lt;/code&gt;&lt;/a&gt; for values. Default is inherited from &lt;code&gt;[log]&lt;/code&gt; level.&lt;/p&gt;
&lt;h4 id=&#34;format-2&#34;&gt;&lt;code&gt;format&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Log line format, valid options are &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;console&lt;/code&gt;, and &lt;code&gt;json&lt;/code&gt;. Default is &lt;code&gt;text&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;network-and-address&#34;&gt;&lt;code&gt;network and address&lt;/code&gt;&lt;/h4&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;h4 id=&#34;facility&#34;&gt;&lt;code&gt;facility&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Syslog facility. Valid options are &lt;code&gt;user&lt;/code&gt;, &lt;code&gt;daemon&lt;/code&gt; or &lt;code&gt;local0&lt;/code&gt; through &lt;code&gt;local7&lt;/code&gt;. Default is empty.&lt;/p&gt;
&lt;h4 id=&#34;tag&#34;&gt;&lt;code&gt;tag&lt;/code&gt;&lt;/h4&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;h3 id=&#34;logfrontend&#34;&gt;&lt;code&gt;[log.frontend]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;enabled-3&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Grafana Faro instrumentation is initialized. Default is &lt;code&gt;false&lt;/code&gt;. Enables the default set of instrumentations from &lt;code&gt;getWebInstrumentations&lt;/code&gt;. See the options below to selectively disable some of these.&lt;/p&gt;
&lt;h4 id=&#34;custom_endpoint&#34;&gt;&lt;code&gt;custom_endpoint&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Custom HTTP endpoint to send events captured by the Grafana Faro agent to. Default, &lt;code&gt;/log-grafana-javascript-agent&lt;/code&gt;, logs the events to standard output.&lt;/p&gt;
&lt;h4 id=&#34;api_key&#34;&gt;&lt;code&gt;api_key&lt;/code&gt;&lt;/h4&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;h4 id=&#34;instrumentations_console_enabled&#34;&gt;&lt;code&gt;instrumentations_console_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enables the &lt;a href=&#34;/docs/grafana-cloud/monitor-applications/frontend-observability/instrument/console-instrumentation/&#34;&gt;Console instrumentation&lt;/a&gt; for Grafana Faro, defaults to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;instrumentations_performance_enabled&#34;&gt;&lt;code&gt;instrumentations_performance_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enables the &lt;a href=&#34;/docs/grafana-cloud/monitor-applications/frontend-observability/instrument/performance-instrumentation/&#34;&gt;Performance instrumentation&lt;/a&gt; for Grafana Faro, defaults to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;instrumentations_csp_enabled&#34;&gt;&lt;code&gt;instrumentations_csp_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enables the &lt;a href=&#34;/docs/grafana-cloud/monitor-applications/frontend-observability/instrument/csp-violation-tracking/&#34;&gt;Content Security Policy Violations instrumentation&lt;/a&gt; for Grafana Faro, defaults to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;instrumentations_tracing_enabled&#34;&gt;&lt;code&gt;instrumentations_tracing_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enables the &lt;a href=&#34;/docs/grafana-cloud/monitor-applications/frontend-observability/instrument/tracing-instrumentation/&#34;&gt;Tracing instrumentation&lt;/a&gt; for Grafana Faro, defaults to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;log_endpoint_requests_per_second_limit&#34;&gt;&lt;code&gt;log_endpoint_requests_per_second_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Requests per second limit enforced per an extended period, for Grafana backend log ingestion endpoint, &lt;code&gt;/log-grafana-javascript-agent&lt;/code&gt;. Default is &lt;code&gt;3&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;log_endpoint_burst_limit&#34;&gt;&lt;code&gt;log_endpoint_burst_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Maximum requests accepted per short interval of time for Grafana backend log ingestion endpoint, &lt;code&gt;/log-grafana-javascript-agent&lt;/code&gt;. Default is &lt;code&gt;15&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;bot_filter_enabled&#34;&gt;&lt;code&gt;bot_filter_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enables the bot filter for the Grafana Faro JavaScript agent integration. Default is &lt;code&gt;false&lt;/code&gt;. When enabled, it will filter out requests from known bots and crawlers.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;quota&#34;&gt;&lt;code&gt;[quota]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Set quotas to &lt;code&gt;-1&lt;/code&gt; to make unlimited.&lt;/p&gt;
&lt;h4 id=&#34;enabled-4&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable usage quotas. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;org_user&#34;&gt;&lt;code&gt;org_user&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the number of users allowed per organization. Default is 10.&lt;/p&gt;
&lt;h4 id=&#34;org_dashboard&#34;&gt;&lt;code&gt;org_dashboard&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the number of dashboards allowed per organization. Default is 100.&lt;/p&gt;
&lt;h4 id=&#34;org_data_source&#34;&gt;&lt;code&gt;org_data_source&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the number of data sources allowed per organization. Default is 10.&lt;/p&gt;
&lt;h4 id=&#34;org_api_key&#34;&gt;&lt;code&gt;org_api_key&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the number of API keys that can be entered per organization. Default is 10.&lt;/p&gt;
&lt;h4 id=&#34;org_alert_rule&#34;&gt;&lt;code&gt;org_alert_rule&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the number of alert rules that can be entered per organization. Default is 100.&lt;/p&gt;
&lt;h4 id=&#34;user_org&#34;&gt;&lt;code&gt;user_org&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the number of organizations a user can create. Default is 10.&lt;/p&gt;
&lt;h4 id=&#34;global_user&#34;&gt;&lt;code&gt;global_user&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets a global limit of users. Default is -1 (unlimited).&lt;/p&gt;
&lt;h4 id=&#34;global_org&#34;&gt;&lt;code&gt;global_org&lt;/code&gt;&lt;/h4&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;h4 id=&#34;global_dashboard&#34;&gt;&lt;code&gt;global_dashboard&lt;/code&gt;&lt;/h4&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;h4 id=&#34;global_api_key&#34;&gt;&lt;code&gt;global_api_key&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets global limit of API keys that can be entered. Default is -1 (unlimited).&lt;/p&gt;
&lt;h4 id=&#34;global_session&#34;&gt;&lt;code&gt;global_session&lt;/code&gt;&lt;/h4&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;h4 id=&#34;global_alert_rule&#34;&gt;&lt;code&gt;global_alert_rule&lt;/code&gt;&lt;/h4&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;h4 id=&#34;global_correlations&#34;&gt;&lt;code&gt;global_correlations&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets a global limit on number of correlations that can be created. Default is -1 (unlimited).&lt;/p&gt;
&lt;h4 id=&#34;alerting_rule_evaluation_results&#34;&gt;&lt;code&gt;alerting_rule_evaluation_results&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the number of query evaluation results per alert rule. If the condition query of an alert rule produces more results than this limit, the evaluation results in an error. Default is -1 (unlimited).&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;unified_alerting&#34;&gt;&lt;code&gt;[unified_alerting]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;For more information about the Grafana alerts, refer to &lt;a href=&#34;../../alerting/&#34;&gt;Grafana Alerting&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;enabled-5&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable or disable Grafana Alerting. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Alerting rules migrated from dashboards and panels include a link back via the &lt;code&gt;annotations&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;disabled_orgs&#34;&gt;&lt;code&gt;disabled_orgs&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Comma-separated list of organization IDs for which to disable Grafana 8 Unified Alerting.&lt;/p&gt;
&lt;h4 id=&#34;admin_config_poll_interval&#34;&gt;&lt;code&gt;admin_config_poll_interval&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specify the frequency of polling for configuration 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), for example, 30s or 1m.&lt;/p&gt;
&lt;h4 id=&#34;alertmanager_config_poll_interval&#34;&gt;&lt;code&gt;alertmanager_config_poll_interval&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Specify the frequency of polling for Alertmanager configuration 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), for example, 30s or 1m.&lt;/p&gt;
&lt;h4 id=&#34;alertmanager_max_template_output_bytes&#34;&gt;&lt;code&gt;alertmanager_max_template_output_bytes&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Maximum size in bytes that the expanded result of any single template expression (e.g. {{ .CommonAnnotations.description }}, {{ .ExternalURL }}, etc.) may reach during notification rendering.
The limit is checked after template execution for each templated field, but before the value is inserted into the final notification payload sent to the receiver.
If exceeded, the notification will contain output truncated up to the limit and a warning will be logged.
The default value is 10,485,760 bytes (10Mb).&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_address&#34;&gt;&lt;code&gt;ha_redis_address&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Redis server address or addresses. It can be a single Redis address if using Redis standalone,
or a list of comma-separated addresses if using Redis Cluster/Sentinel.&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;For more information on Redis, refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/alerting/set-up/configure-high-availability/#enable-alerting-high-availability-using-redis&#34;&gt;Enable alerting high availability using Redis&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h4 id=&#34;ha_redis_cluster_mode_enabled&#34;&gt;&lt;code&gt;ha_redis_cluster_mode_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; when using Redis in Cluster mode. Mutually exclusive with &lt;code&gt;ha_redis_sentinel_mode_enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_sentinel_mode_enabled&#34;&gt;&lt;code&gt;ha_redis_sentinel_mode_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set to &lt;code&gt;true&lt;/code&gt; when using Redis in Sentinel mode. Mutually exclusive with &lt;code&gt;ha_redis_cluster_mode_enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_sentinel_master_name&#34;&gt;&lt;code&gt;ha_redis_sentinel_master_name&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Redis Sentinel master name. Only applicable when &lt;code&gt;ha_redis_sentinel_mode_enabled&lt;/code&gt; is set to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_username&#34;&gt;&lt;code&gt;ha_redis_username&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The username that should be used to authenticate with Redis.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_password&#34;&gt;&lt;code&gt;ha_redis_password&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The password that should be used to authenticate with Redis.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_sentinel_username&#34;&gt;&lt;code&gt;ha_redis_sentinel_username&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The username that should be used to authenticate with Redis Sentinel. Only applicable when &lt;code&gt;ha_redis_sentinel_mode_enabled&lt;/code&gt; is set to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_sentinel_password&#34;&gt;&lt;code&gt;ha_redis_sentinel_password&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The password that should be used to authenticate with Redis Sentinel. Only applicable when &lt;code&gt;ha_redis_sentinel_mode_enabled&lt;/code&gt; is set to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_db&#34;&gt;&lt;code&gt;ha_redis_db&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The Redis database. The default value is &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_prefix&#34;&gt;&lt;code&gt;ha_redis_prefix&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;A prefix that is used for every key or channel that is created on the Redis server as part of HA for alerting. Useful if you plan to share Redis with multiple Grafana instances.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_peer_name&#34;&gt;&lt;code&gt;ha_redis_peer_name&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The name of the cluster peer to use as an identifier. If none is provided, a random one is generated.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_max_conns&#34;&gt;&lt;code&gt;ha_redis_max_conns&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The maximum number of simultaneous Redis connections.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_enabled&#34;&gt;&lt;code&gt;ha_redis_tls_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable TLS on the client used to communicate with the Redis server. This should be set to &lt;code&gt;true&lt;/code&gt; if using any of the other &lt;code&gt;ha_redis_tls_*&lt;/code&gt; fields.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_cert_path&#34;&gt;&lt;code&gt;ha_redis_tls_cert_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Path to the PEM-encoded TLS client certificate file used to authenticate with the Redis server. Required if using Mutual TLS.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_key_path&#34;&gt;&lt;code&gt;ha_redis_tls_key_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Path to the PEM-encoded TLS private key file. Also requires the client certificate to be configured. Required if using Mutual TLS.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_ca_path&#34;&gt;&lt;code&gt;ha_redis_tls_ca_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Path to the PEM-encoded CA certificates file. If not set, the host&amp;rsquo;s root CA certificates are used.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_server_name&#34;&gt;&lt;code&gt;ha_redis_tls_server_name&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Overrides the expected name of the Redis server certificate.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_insecure_skip_verify&#34;&gt;&lt;code&gt;ha_redis_tls_insecure_skip_verify&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Skips validating the Redis server certificate.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_cipher_suites&#34;&gt;&lt;code&gt;ha_redis_tls_cipher_suites&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Overrides the default TLS cipher suite list.&lt;/p&gt;
&lt;h4 id=&#34;ha_redis_tls_min_version&#34;&gt;&lt;code&gt;ha_redis_tls_min_version&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Overrides the default minimum TLS version. Allowed values: &lt;code&gt;VersionTLS10&lt;/code&gt;, &lt;code&gt;VersionTLS11&lt;/code&gt;, &lt;code&gt;VersionTLS12&lt;/code&gt;, &lt;code&gt;VersionTLS13&lt;/code&gt;&lt;/p&gt;
&lt;h4 id=&#34;ha_listen_address&#34;&gt;&lt;code&gt;ha_listen_address&lt;/code&gt;&lt;/h4&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;h4 id=&#34;ha_advertise_address&#34;&gt;&lt;code&gt;ha_advertise_address&lt;/code&gt;&lt;/h4&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;h4 id=&#34;ha_peers&#34;&gt;&lt;code&gt;ha_peers&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Comma-separated list of initial instances (in a format of &lt;code&gt;&amp;lt;HOST&amp;gt;:&amp;lt;PORT&amp;gt;&lt;/code&gt;) that form the HA cluster. Configuring this setting enables the High Availability mode for alerting.&lt;/p&gt;
&lt;h4 id=&#34;ha_peer_timeout&#34;&gt;&lt;code&gt;ha_peer_timeout&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Time to wait for an instance to send a notification via the Alertmanager.
In HA, each Grafana instance is assigned a position (for example, &lt;code&gt;0&lt;/code&gt;, &lt;code&gt;1&lt;/code&gt;).
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), for example, 30s or 1m.&lt;/p&gt;
&lt;h4 id=&#34;ha_label&#34;&gt;&lt;code&gt;ha_label&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The label is an optional string to include on each packet and stream. It uniquely identifies the cluster and prevents cross-communication issues when sending gossip messages in an environment with multiple clusters.&lt;/p&gt;
&lt;h4 id=&#34;ha_gossip_interval&#34;&gt;&lt;code&gt;ha_gossip_interval&lt;/code&gt;&lt;/h4&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), for example, 30s or 1m.&lt;/p&gt;
&lt;h4 id=&#34;ha_reconnect_timeout&#34;&gt;&lt;code&gt;ha_reconnect_timeout&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Length of time to attempt to reconnect to a lost peer. When running Grafana in a Kubernetes cluster, set this duration to less than &lt;code&gt;15m&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The string is a possibly signed sequence of decimal numbers followed by a unit suffix (ms, s, m, h, d), such as &lt;code&gt;30s&lt;/code&gt; or &lt;code&gt;1m&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;ha_push_pull_interval&#34;&gt;&lt;code&gt;ha_push_pull_interval&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The interval between gossip full state syncs. Setting this interval lower (more frequent) increases 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), for example, 30s or 1m.&lt;/p&gt;
&lt;h4 id=&#34;execute_alerts&#34;&gt;&lt;code&gt;execute_alerts&lt;/code&gt;&lt;/h4&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.&lt;/p&gt;
&lt;h4 id=&#34;evaluation_timeout&#34;&gt;&lt;code&gt;evaluation_timeout&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets the alert evaluation timeout when fetching data from the data source. The default value is &lt;code&gt;30s&lt;/code&gt;.&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), for example, 30s or 1m.&lt;/p&gt;
&lt;h4 id=&#34;max_attempts&#34;&gt;&lt;code&gt;max_attempts&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The maximum number of times Grafana retries evaluating an alert rule before giving up on that evaluation. Default is &lt;code&gt;3&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The retry mechanism:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Adds jitter to retry delays to prevent thundering herd problems when multiple rules fail simultaneously.&lt;/li&gt;
&lt;li&gt;Stops when either &lt;code&gt;max_attempts&lt;/code&gt; is reached or the rule’s evaluation interval is exceeded.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can customize retry behaviour with &lt;code&gt;initial_retry_delay&lt;/code&gt;, &lt;code&gt;max_retry_delay&lt;/code&gt;, and &lt;code&gt;randomization_factor&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;initial_retry_delay&#34;&gt;&lt;code&gt;initial_retry_delay&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The initial delay before retrying a failed alert evaluation. Default is &lt;code&gt;1s&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This value is the starting point for exponential backoff.&lt;/p&gt;
&lt;h4 id=&#34;initialization_timeout&#34;&gt;&lt;code&gt;initialization_timeout&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Allows the context deadline for the &lt;code&gt;AlertNG&lt;/code&gt; service to be configurable. The default timeout is 30s.&lt;/p&gt;
&lt;h4 id=&#34;max_retry_delay&#34;&gt;&lt;code&gt;max_retry_delay&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The maximum delay between retries during exponential backoff. Default is &lt;code&gt;4s&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;After the retry delay reaches &lt;code&gt;max_retry_delay&lt;/code&gt;, all subsequent retries use this delay.&lt;/p&gt;
&lt;p&gt;To avoid overlapping retries with scheduled evaluations, &lt;code&gt;max_retry_delay&lt;/code&gt; must be less than the rule’s evaluation interval.&lt;/p&gt;
&lt;h4 id=&#34;randomization_factor&#34;&gt;&lt;code&gt;randomization_factor&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The randomization factor for exponential backoff retries. Default is &lt;code&gt;0.1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The value must be between &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The actual retry delay is chosen randomly between:&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;[current_delay*(1-randomization_factor), current_delay*(1&amp;#43;randomization_factor)]&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h4 id=&#34;min_interval&#34;&gt;&lt;code&gt;min_interval&lt;/code&gt;&lt;/h4&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 are 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 Grafana schedules fewer evaluations over time.&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), for example, 30s or 1m.&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 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;/div&gt;

&lt;hr&gt;
&lt;h4 id=&#34;rule_version_record_limit&#34;&gt;&lt;code&gt;rule_version_record_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Defines the limits for how many alert rule versions are stored in the database per alert rule.&lt;/p&gt;
&lt;p&gt;The default &lt;code&gt;0&lt;/code&gt; value means there&amp;rsquo;s no limit.&lt;/p&gt;
&lt;h3 id=&#34;unified_alertingscreenshots&#34;&gt;&lt;code&gt;[unified_alerting.screenshots]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;For more information about screenshots, refer to &lt;a href=&#34;../../alerting/configure-notifications/template-notifications/images-in-notifications/&#34;&gt;Images in notifications&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;capture&#34;&gt;&lt;code&gt;capture&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable screenshots in notifications.
This option requires a remote HTTP image rendering service.
For more information, refer to &lt;a href=&#34;#rendering&#34;&gt;&lt;code&gt;[rendering]&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;capture_timeout&#34;&gt;&lt;code&gt;capture_timeout&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The timeout for capturing screenshots. If a screenshot cannot be captured within the timeout then the notification is sent without a screenshot.
The maximum duration is 30 seconds. This timeout should be less than the minimum Interval of all Evaluation Groups to avoid back pressure on alert rule evaluation.&lt;/p&gt;
&lt;h4 id=&#34;max_concurrent_screenshots&#34;&gt;&lt;code&gt;max_concurrent_screenshots&lt;/code&gt;&lt;/h4&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 &lt;code&gt;concurrent_render_request_limit&lt;/code&gt; sets the total number of concurrent screenshots across all Grafana services.&lt;/p&gt;
&lt;h4 id=&#34;upload_external_image_storage&#34;&gt;&lt;code&gt;upload_external_image_storage&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Uploads screenshots to the local Grafana server or remote storage such as Azure, S3 and GCS.
For more information, refer to &lt;a href=&#34;#external-image-store&#34;&gt;&lt;code&gt;[external_image_storage]&lt;/code&gt;&lt;/a&gt;.
If this option is false then screenshots are persisted to disk for up to &lt;code&gt;temp_data_lifetime&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;unified_alertingreserved_labels&#34;&gt;&lt;code&gt;[unified_alerting.reserved_labels]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;disabled_labels&#34;&gt;&lt;code&gt;disabled_labels&lt;/code&gt;&lt;/h4&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;h3 id=&#34;unified_alertingstate_history&#34;&gt;&lt;code&gt;[unified_alerting.state_history]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This section configures where Grafana Alerting writes alert state history. Refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/alerting/set-up/configure-alert-state-history/&#34;&gt;Configure alert state history&lt;/a&gt; for end-to-end setup and examples.&lt;/p&gt;
&lt;h4 id=&#34;enabled-6&#34;&gt;&lt;code&gt;enabled &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enables recording alert state history. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;backend&#34;&gt;&lt;code&gt;backend &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Select the backend used to store alert state history. Supported values: &lt;code&gt;loki&lt;/code&gt;, &lt;code&gt;prometheus&lt;/code&gt;, &lt;code&gt;multiple&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;loki_remote_url&#34;&gt;&lt;code&gt;loki_remote_url &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The URL of the Loki server used when &lt;code&gt;backend = loki&lt;/code&gt; (or when &lt;code&gt;backend = multiple&lt;/code&gt; and Loki is a primary/secondary).&lt;/p&gt;
&lt;h4 id=&#34;prometheus_target_datasource_uid&#34;&gt;&lt;code&gt;prometheus_target_datasource_uid &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Target Prometheus data source UID used for writing alert state changes when &lt;code&gt;backend = prometheus&lt;/code&gt; (or when &lt;code&gt;backend = multiple&lt;/code&gt; and Prometheus is a secondary).&lt;/p&gt;
&lt;h4 id=&#34;prometheus_metric_name&#34;&gt;&lt;code&gt;prometheus_metric_name &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional. Metric name for the alert state metric. Default is &lt;code&gt;GRAFANA_ALERTS&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;prometheus_write_timeout&#34;&gt;&lt;code&gt;prometheus_write_timeout &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional. Timeout for writing alert state data to the target data source. Default is &lt;code&gt;10s&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;primary&#34;&gt;&lt;code&gt;primary &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Used only when &lt;code&gt;backend = multiple&lt;/code&gt;. Selects the primary backend (for example &lt;code&gt;loki&lt;/code&gt;).&lt;/p&gt;
&lt;h4 id=&#34;secondaries&#34;&gt;&lt;code&gt;secondaries &lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Used only when &lt;code&gt;backend = multiple&lt;/code&gt;. Comma-separated list of secondary backends (for example &lt;code&gt;prometheus&lt;/code&gt;).&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;unified_alertingstate_historyannotations&#34;&gt;&lt;code&gt;[unified_alerting.state_history.annotations]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This section controls retention of annotations automatically created while evaluating alert rules when alerting state history backend is configured to be annotations (see setting [unified_alerting.state_history].backend)&lt;/p&gt;
&lt;h4 id=&#34;max_age&#34;&gt;&lt;code&gt;max_age&lt;/code&gt;&lt;/h4&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 an duration. Ex 6h (hours), 10d (days), 2w (weeks), 1M (month).&lt;/p&gt;
&lt;h4 id=&#34;max_annotations_to_keep&#34;&gt;&lt;code&gt;max_annotations_to_keep&lt;/code&gt;&lt;/h4&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;h3 id=&#34;unified_alertingprometheus_conversion&#34;&gt;&lt;code&gt;[unified_alerting.prometheus_conversion]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This section applies only to rules imported as Grafana-managed rules. For more information about the import process, refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/alerting/alerting-rules/alerting-migration/&#34;&gt;Import data source-managed rules to Grafana-managed rules&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;rule_query_offset&#34;&gt;&lt;code&gt;rule_query_offset&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the query offset to imported Grafana-managed rules when &lt;code&gt;query_offset&lt;/code&gt; is not defined in the original rule group configuration. The default value is &lt;code&gt;1m&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;default_datasource_uid&#34;&gt;&lt;code&gt;default_datasource_uid&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the default data source UID to use for query execution when importing Prometheus rules. Grafana uses this default when the &lt;code&gt;X-Grafana-Alerting-Datasource-UID&lt;/code&gt; header isn&amp;rsquo;t provided during import. If this option isn&amp;rsquo;t set, the header becomes required. The default value is empty.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;annotations&#34;&gt;&lt;code&gt;[annotations]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;cleanupjob_batchsize&#34;&gt;&lt;code&gt;cleanupjob_batchsize&lt;/code&gt;&lt;/h4&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;h4 id=&#34;tags_length&#34;&gt;&lt;code&gt;tags_length&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enforces the maximum allowed amount of tags for any newly introduced annotations. This value can be between 500 and 4096 (inclusive). The default value is 500. Setting it to a higher value would impact performance and is therefore not recommended.&lt;/p&gt;
&lt;h3 id=&#34;annotationsdashboard&#34;&gt;&lt;code&gt;[annotations.dashboard]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Dashboard annotations means that annotations are associated with the dashboard they are created on.&lt;/p&gt;
&lt;h4 id=&#34;max_age-1&#34;&gt;&lt;code&gt;max_age&lt;/code&gt;&lt;/h4&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;h4 id=&#34;max_annotations_to_keep-1&#34;&gt;&lt;code&gt;max_annotations_to_keep&lt;/code&gt;&lt;/h4&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;h3 id=&#34;annotationsapi&#34;&gt;&lt;code&gt;[annotations.api]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;max_age-2&#34;&gt;&lt;code&gt;max_age&lt;/code&gt;&lt;/h4&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;h4 id=&#34;max_annotations_to_keep-2&#34;&gt;&lt;code&gt;max_annotations_to_keep&lt;/code&gt;&lt;/h4&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;h3 id=&#34;explore&#34;&gt;&lt;code&gt;[explore]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;enabled-7&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable or disable the Explore section. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;defaulttimeoffset&#34;&gt;&lt;code&gt;defaultTimeOffset&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set a default time offset from now on the time picker. Default is 1 hour.
This setting should be expressed as a duration. Examples: 1h (hour), 1d (day), 1w (week), 1M (month).&lt;/p&gt;
&lt;h4 id=&#34;hide_logs_download&#34;&gt;&lt;code&gt;hide_logs_download&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Show or hide the button to download logs in Explore. Default is &lt;code&gt;false&lt;/code&gt;, so that the button will be visible.&lt;/p&gt;
&lt;h3 id=&#34;help&#34;&gt;&lt;code&gt;[help]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Configures the help section.&lt;/p&gt;
&lt;h4 id=&#34;enabled-8&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable or disable the Help section. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;profile&#34;&gt;&lt;code&gt;[profile]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Configures the Profile section.&lt;/p&gt;
&lt;h4 id=&#34;enabled-9&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable or disable the Profile section. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;news&#34;&gt;&lt;code&gt;[news]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;news_feed_enabled&#34;&gt;&lt;code&gt;news_feed_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enables the news feed section. Default is &lt;code&gt;true&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;query&#34;&gt;&lt;code&gt;[query]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;concurrent_query_limit&#34;&gt;&lt;code&gt;concurrent_query_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the number of queries that can be executed concurrently in a mixed data source panel. Default is the number of CPUs.&lt;/p&gt;
&lt;h3 id=&#34;query_history&#34;&gt;&lt;code&gt;[query_history]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Configures Query history in Explore.&lt;/p&gt;
&lt;h4 id=&#34;enabled-10&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable or disable the Query history. Default is &lt;code&gt;enabled&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;short_links&#34;&gt;&lt;code&gt;[short_links]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Configures settings around the short link feature.&lt;/p&gt;
&lt;h4 id=&#34;expire_time&#34;&gt;&lt;code&gt;expire_time&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Short links that are never accessed are considered expired or stale and can be deleted as cleanup.
Set the expiration time in days.
The default is &lt;code&gt;-1&lt;/code&gt; days (never expire).
The maximum is &lt;code&gt;365&lt;/code&gt; days.&lt;/p&gt;
&lt;p&gt;A setting above the maximum uses the value &lt;code&gt;365&lt;/code&gt; instead.
A negative value such as &lt;code&gt;-1&lt;/code&gt; disables expiry.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;metrics&#34;&gt;&lt;code&gt;[metrics]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;enabled-11&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&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;h4 id=&#34;interval_seconds&#34;&gt;&lt;code&gt;interval_seconds&lt;/code&gt;&lt;/h4&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;h4 id=&#34;disable_total_stats&#34;&gt;&lt;code&gt;disable_total_stats&lt;/code&gt;&lt;/h4&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;h4 id=&#34;total_stats_collector_interval_seconds&#34;&gt;&lt;code&gt;total_stats_collector_interval_seconds&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets the total stats collector interval. The default is 1800 seconds (30 minutes).&lt;/p&gt;
&lt;h4 id=&#34;basic_auth_username-and-basic_auth_password&#34;&gt;&lt;code&gt;basic_auth_username and basic_auth_password&lt;/code&gt;&lt;/h4&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;h3 id=&#34;metricsenvironment_info&#34;&gt;&lt;code&gt;[metrics.environment_info]&lt;/code&gt;&lt;/h3&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;h3 id=&#34;metricsgraphite&#34;&gt;&lt;code&gt;[metrics.graphite]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Use these options if you want to send internal Grafana metrics to Graphite.&lt;/p&gt;
&lt;h4 id=&#34;address&#34;&gt;&lt;code&gt;address&lt;/code&gt;&lt;/h4&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;h4 id=&#34;prefix&#34;&gt;&lt;code&gt;prefix&lt;/code&gt;&lt;/h4&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;h3 id=&#34;grafana_net&#34;&gt;&lt;code&gt;[grafana_net]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Refer to &lt;a href=&#34;#grafana-com&#34;&gt;&lt;code&gt;[grafana_com]&lt;/code&gt;&lt;/a&gt; configuration as that&amp;rsquo;s the preferred configuration name.
The &lt;code&gt;[grafana_net]&lt;/code&gt; configuration is still accepted and parsed as &lt;code&gt;[grafana_com]&lt;/code&gt; configuration.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;grafana_com&#34;&gt;&lt;code&gt;[grafana_com]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;url-1&#34;&gt;&lt;code&gt;url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Default is &lt;a href=&#34;/&#34;&gt;https://grafana.com&lt;/a&gt;.
The default authentication identity provider for Grafana Cloud.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;tracingjaeger&#34;&gt;&lt;code&gt;[tracing.jaeger]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;[Deprecated - use &lt;code&gt;tracing.opentelemetry.jaeger&lt;/code&gt; or &lt;code&gt;tracing.opentelemetry.otlp&lt;/code&gt; instead]&lt;/p&gt;
&lt;p&gt;Configure a Jaeger client in Grafana 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.
For the full list, refer to the table in &lt;a href=&#34;https://www.jaegertracing.io/docs/1.16/client-features/#tracer-configuration-via-environment-variables&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Trace configuration via environment variables&lt;/a&gt;.
Environment variables override any settings provided here.&lt;/p&gt;
&lt;h4 id=&#34;address-1&#34;&gt;&lt;code&gt;address&lt;/code&gt;&lt;/h4&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;h4 id=&#34;always_included_tag&#34;&gt;&lt;code&gt;always_included_tag&lt;/code&gt;&lt;/h4&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;h4 id=&#34;sampler_type&#34;&gt;&lt;code&gt;sampler_type&lt;/code&gt;&lt;/h4&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;p&gt;&lt;em&gt;To override this setting, enter &lt;code&gt;sampler_type&lt;/code&gt; in the &lt;code&gt;tracing.opentelemetry&lt;/code&gt; section.&lt;/em&gt;&lt;/p&gt;
&lt;h4 id=&#34;sampler_param&#34;&gt;&lt;code&gt;sampler_param&lt;/code&gt;&lt;/h4&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, the argument is the same as for &lt;code&gt;probabilistic&lt;/code&gt; and indicates the initial sampling rate before the actual ones received from the remote.&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;p&gt;Setting &lt;code&gt;sampler_param&lt;/code&gt; in the &lt;code&gt;tracing.opentelemetry&lt;/code&gt; section overrides this setting.&lt;/p&gt;
&lt;h4 id=&#34;sampling_server_url&#34;&gt;&lt;code&gt;sampling_server_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;&lt;code&gt;sampling_server_url&lt;/code&gt; is the URL of a sampling manager providing a sampling strategy.&lt;/p&gt;
&lt;p&gt;Setting &lt;code&gt;sampling_server_url&lt;/code&gt; in the &lt;code&gt;tracing.opentelemetry&lt;/code&gt; section overrides this setting.&lt;/p&gt;
&lt;h4 id=&#34;zipkin_propagation&#34;&gt;&lt;code&gt;zipkin_propagation&lt;/code&gt;&lt;/h4&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 the Zipkin span propagation format (with &lt;code&gt;x-b3-&lt;/code&gt; HTTP headers). By default, the Jaeger 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;h4 id=&#34;disable_shared_zipkin_spans&#34;&gt;&lt;code&gt;disable_shared_zipkin_spans&lt;/code&gt;&lt;/h4&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;h3 id=&#34;tracingopentelemetry&#34;&gt;&lt;code&gt;[tracing.opentelemetry]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Configure general parameters shared between OpenTelemetry providers.&lt;/p&gt;
&lt;h4 id=&#34;custom_attributes&#34;&gt;&lt;code&gt;custom_attributes&lt;/code&gt;&lt;/h4&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 or overridden 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). The service name can be set or overridden using attributes or with the environment variable &lt;code&gt;OTEL_SERVICE_NAME&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;sampler_type-1&#34;&gt;&lt;code&gt;sampler_type&lt;/code&gt;&lt;/h4&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;h4 id=&#34;sampler_param-1&#34;&gt;&lt;code&gt;sampler_param&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Default value is &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Depending on the value of &lt;code&gt;sampler_type&lt;/code&gt;, the sampler configuration parameter can be &lt;code&gt;0&lt;/code&gt;, &lt;code&gt;1&lt;/code&gt;, or any decimal value between &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For the &lt;code&gt;const&lt;/code&gt; sampler, use &lt;code&gt;0&lt;/code&gt; to never sample or &lt;code&gt;1&lt;/code&gt; to always sample&lt;/li&gt;
&lt;li&gt;For the &lt;code&gt;probabilistic&lt;/code&gt; sampler, you can use a decimal value between &lt;code&gt;0.0&lt;/code&gt; and &lt;code&gt;1.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For the &lt;code&gt;rateLimiting&lt;/code&gt; sampler, enter the number of spans per second&lt;/li&gt;
&lt;li&gt;For the &lt;code&gt;remote&lt;/code&gt; sampler, use a decimal value between &lt;code&gt;0.0&lt;/code&gt; and &lt;code&gt;1.0&lt;/code&gt;
to specify the initial sampling rate used before the first update
is received from the sampling server&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;sampling_server_url-1&#34;&gt;&lt;code&gt;sampling_server_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;When &lt;code&gt;sampler_type&lt;/code&gt; is &lt;code&gt;remote&lt;/code&gt;, this specifies the URL of the sampling server. This can be used by all tracing providers.&lt;/p&gt;
&lt;p&gt;Use a sampling server that supports the Jaeger remote sampling API, such as &lt;code&gt;jaeger-agent&lt;/code&gt;, &lt;code&gt;jaeger-collector&lt;/code&gt;, &lt;code&gt;opentelemetry-collector-contrib&lt;/code&gt;, or &lt;a href=&#34;/oss/alloy-opentelemetry-collector/&#34;&gt;Grafana Alloy&lt;/a&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;tracingopentelemetryjaeger&#34;&gt;&lt;code&gt;[tracing.opentelemetry.jaeger]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Configure Grafana with a Jaeger client for distributed tracing.&lt;/p&gt;
&lt;h4 id=&#34;address-2&#34;&gt;&lt;code&gt;address&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The &lt;code&gt;&amp;lt;HOST&amp;gt;:&amp;lt;PORT&amp;gt;&lt;/code&gt; destination for reporting spans. For example, &lt;code&gt;localhost:14268/api/traces&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;propagation&#34;&gt;&lt;code&gt;propagation&lt;/code&gt;&lt;/h4&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;h3 id=&#34;tracingopentelemetryotlp&#34;&gt;&lt;code&gt;[tracing.opentelemetry.otlp]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Configure Grafana with an OTLP client for distributed tracing.&lt;/p&gt;
&lt;h4 id=&#34;address-3&#34;&gt;&lt;code&gt;address&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The &lt;code&gt;&amp;lt;HOST&amp;gt;:&amp;lt;PORT&amp;gt;&lt;/code&gt; destination for reporting spans. For example, &lt;code&gt;localhost:4317&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;propagation-1&#34;&gt;&lt;code&gt;propagation&lt;/code&gt;&lt;/h4&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;h4 id=&#34;insecure&#34;&gt;&lt;code&gt;insecure&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Toggles the insecure communication setting, defaults to &lt;code&gt;true&lt;/code&gt;.
When set to &lt;code&gt;false&lt;/code&gt;, the OTLP client will use TLS credentials with the default system cert pool for communication.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;external_image_storage&#34;&gt;&lt;code&gt;[external_image_storage]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;provider&#34;&gt;&lt;code&gt;provider&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Options are &lt;code&gt;s3&lt;/code&gt;, &lt;code&gt;webdav&lt;/code&gt;, &lt;code&gt;gcs&lt;/code&gt;, &lt;code&gt;azure_blob&lt;/code&gt;, &lt;code&gt;local&lt;/code&gt;).
If left empty, then Grafana ignores the upload action.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;external_image_storages3&#34;&gt;&lt;code&gt;[external_image_storage.s3]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;endpoint&#34;&gt;&lt;code&gt;endpoint&lt;/code&gt;&lt;/h4&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;h4 id=&#34;path_style_access&#34;&gt;&lt;code&gt;path_style_access&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set this to true to force path-style addressing in S3 requests, which uses &lt;code&gt;http://s3.amazonaws.com/&amp;lt;BUCKET&amp;gt;/&amp;lt;KEY&amp;gt;&lt;/code&gt;, instead of the default, which is virtual hosted bucket addressing when possible (&lt;code&gt;http://&amp;lt;BUCKET&amp;gt;.s3.amazonaws.com/&amp;lt;KEY&amp;gt;&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;h4 id=&#34;bucket_url&#34;&gt;&lt;code&gt;bucket_url&lt;/code&gt;&lt;/h4&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;, for example,&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;h4 id=&#34;bucket&#34;&gt;&lt;code&gt;bucket&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Bucket name for S3. For example, &lt;code&gt;grafana.snapshot&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;region&#34;&gt;&lt;code&gt;region&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Region name for S3. For example, &lt;code&gt;us-east-1&lt;/code&gt; or `cn-north-1.&lt;/p&gt;
&lt;h4 id=&#34;path-1&#34;&gt;&lt;code&gt;path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional extra path inside bucket, useful to apply expiration policies.&lt;/p&gt;
&lt;h4 id=&#34;access_key&#34;&gt;&lt;code&gt;access_key&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Access key, for example, 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;h4 id=&#34;secret_key-1&#34;&gt;&lt;code&gt;secret_key&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Secret key, for example, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;external_image_storagewebdav&#34;&gt;&lt;code&gt;[external_image_storage.webdav]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;url-2&#34;&gt;&lt;code&gt;url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;URL where Grafana sends PUT request with images.&lt;/p&gt;
&lt;h4 id=&#34;username&#34;&gt;&lt;code&gt;username&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Basic auth username.&lt;/p&gt;
&lt;h4 id=&#34;password-2&#34;&gt;&lt;code&gt;password&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Basic auth password.&lt;/p&gt;
&lt;h4 id=&#34;public_url&#34;&gt;&lt;code&gt;public_url&lt;/code&gt;&lt;/h4&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 filename is appended to the path part of the URL, leaving any query string unchanged.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;external_image_storagegcs&#34;&gt;&lt;code&gt;[external_image_storage.gcs]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;key_file-1&#34;&gt;&lt;code&gt;key_file&lt;/code&gt;&lt;/h4&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 makes the images public readable when signed URLs aren&amp;rsquo;t enabled.&lt;/p&gt;
&lt;h4 id=&#34;bucket-1&#34;&gt;&lt;code&gt;bucket&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Bucket Name on Google Cloud Storage.&lt;/p&gt;
&lt;h4 id=&#34;path-2&#34;&gt;&lt;code&gt;path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Optional extra path inside bucket.&lt;/p&gt;
&lt;h4 id=&#34;enable_signed_urls&#34;&gt;&lt;code&gt;enable_signed_urls&lt;/code&gt;&lt;/h4&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;h4 id=&#34;signed_url_expiration&#34;&gt;&lt;code&gt;signed_url_expiration&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Sets the signed URL expiration, which defaults to seven days.&lt;/p&gt;
&lt;h3 id=&#34;external_image_storageazure_blob&#34;&gt;&lt;code&gt;[external_image_storage.azure_blob]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;account_name&#34;&gt;&lt;code&gt;account_name&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Storage account name.&lt;/p&gt;
&lt;h4 id=&#34;account_key&#34;&gt;&lt;code&gt;account_key&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Storage account key&lt;/p&gt;
&lt;h4 id=&#34;container_name&#34;&gt;&lt;code&gt;container_name&lt;/code&gt;&lt;/h4&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;h4 id=&#34;sas_token_expiration_days&#34;&gt;&lt;code&gt;sas_token_expiration_days&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Number of days for SAS token validity. If specified, a SAS token is attached to image URL.
Allow storing images in private containers.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;external_image_storagelocal&#34;&gt;&lt;code&gt;[external_image_storage.local]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This option does not require any configuration.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;rendering&#34;&gt;&lt;code&gt;[rendering]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Options to configure a remote HTTP image rendering service, for example, 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;h5 id=&#34;renderer_token&#34;&gt;&lt;code&gt;renderer_token&lt;/code&gt;&lt;/h5&gt;
&lt;p&gt;An authentication token is be sent to and verified by the renderer.
The renderer denies any request without an authentication token matching the one configured on the renderer.&lt;/p&gt;
&lt;h4 id=&#34;server_url&#34;&gt;&lt;code&gt;server_url&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;URL to a remote HTTP image renderer service, for example, &lt;code&gt;http://localhost:8081/render&lt;/code&gt;, that Grafana can use to render panels and dashboards to PNG-images using HTTP requests to an external service.&lt;/p&gt;
&lt;h4 id=&#34;callback_url&#34;&gt;&lt;code&gt;callback_url&lt;/code&gt;&lt;/h4&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, for example, &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;p&gt;The &lt;code&gt;callback_url&lt;/code&gt; can also be configured to support usage of the image renderer running as a plugin with support for SSL / HTTPS. For example https://localhost:3000/.&lt;/p&gt;
&lt;h4 id=&#34;concurrent_render_request_limit&#34;&gt;&lt;code&gt;concurrent_render_request_limit&lt;/code&gt;&lt;/h4&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;h4 id=&#34;ca_cert_file_path&#34;&gt;&lt;code&gt;ca_cert_file_path&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Path to the PEM-encoded CA certificate file from the Image Renderer server.&lt;/p&gt;
&lt;h4 id=&#34;default_image_width&#34;&gt;&lt;code&gt;default_image_width&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Configures the width of the rendered image. The default width is &lt;code&gt;1000&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;default_image_height&#34;&gt;&lt;code&gt;default_image_height&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Configures the height of the rendered image. The default height is &lt;code&gt;500&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;default_image_scale&#34;&gt;&lt;code&gt;default_image_scale&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Configures the scale of the rendered image. The default scale is &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;panels&#34;&gt;&lt;code&gt;[panels]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;enable_alpha&#34;&gt;&lt;code&gt;enable_alpha&lt;/code&gt;&lt;/h4&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;h4 id=&#34;disable_sanitize_html&#34;&gt;&lt;code&gt;disable_sanitize_html&lt;/code&gt;&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;This configuration is not available in Grafana Cloud instances.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;If set to true Grafana allows script tags in text panels.
Not recommended as it enables XSS vulnerabilities.
Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;plugins-1&#34;&gt;&lt;code&gt;[plugins]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;enable_alpha-1&#34;&gt;&lt;code&gt;enable_alpha&lt;/code&gt;&lt;/h4&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;h4 id=&#34;allow_loading_unsigned_plugins&#34;&gt;&lt;code&gt;allow_loading_unsigned_plugins&lt;/code&gt;&lt;/h4&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;h4 id=&#34;plugin_admin_enabled&#34;&gt;&lt;code&gt;plugin_admin_enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Available to Grafana administrators only, enables installing, uninstalling, and 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; hides the controls.&lt;/p&gt;
&lt;p&gt;For more information, refer to &lt;a href=&#34;../../administration/plugin-management/#access-the-plugin-catalog&#34;&gt;Plugin catalog&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;plugin_admin_external_manage_enabled&#34;&gt;&lt;code&gt;plugin_admin_external_manage_enabled&lt;/code&gt;&lt;/h4&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;h4 id=&#34;plugin_catalog_url&#34;&gt;&lt;code&gt;plugin_catalog_url&lt;/code&gt;&lt;/h4&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;h4 id=&#34;plugin_catalog_hidden_plugins&#34;&gt;&lt;code&gt;plugin_catalog_hidden_plugins&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enter a comma-separated list of plugin identifiers to hide in the plugin catalog.&lt;/p&gt;
&lt;h4 id=&#34;public_key_retrieval_disabled&#34;&gt;&lt;code&gt;public_key_retrieval_disabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Disable download of the public key for verifying plugin signature.
The default is &lt;code&gt;false&lt;/code&gt;.
If disabled, it uses the hard-coded public key.&lt;/p&gt;
&lt;h4 id=&#34;public_key_retrieval_on_startup&#34;&gt;&lt;code&gt;public_key_retrieval_on_startup&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Force download of the public key for verifying plugin signature on startup.
The default is &lt;code&gt;false&lt;/code&gt;.
If disabled, the public key is retrieved every 10 days.
Requires &lt;code&gt;public_key_retrieval_disabled&lt;/code&gt; to be &lt;code&gt;false&lt;/code&gt; to have any effect.&lt;/p&gt;
&lt;h4 id=&#34;disable_plugins&#34;&gt;&lt;code&gt;disable_plugins&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enter a comma-separated list of plugin identifiers to avoid loading (including core plugins).
These plugins are hidden in the catalog.&lt;/p&gt;
&lt;h4 id=&#34;preinstall&#34;&gt;&lt;code&gt;preinstall&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enter a comma-separated list of plugin identifiers to install on startup, using the Grafana catalog as the source.
Preinstalled plugins cannot be uninstalled from the Grafana user interface; they need to be removed from this list first.&lt;/p&gt;
&lt;p&gt;Plugins are installed asynchronously, as a background process.
This means that Grafana starts up faster, but the plugins may not be available immediately.&lt;/p&gt;
&lt;p&gt;To pin plugins to a specific version, use the format &lt;code&gt;plugin_id@version&lt;/code&gt;, for example,&lt;code&gt;grafana-piechart-panel@1.6.0&lt;/code&gt;. If no version is specified, the latest version is installed. &lt;em&gt;The plugin is automatically updated&lt;/em&gt; to the latest version when a new version is available in the Grafana plugin catalog on startup (except for new major versions).&lt;/p&gt;
&lt;p&gt;To use a custom URL to download a plugin, use the format &lt;code&gt;plugin_id@version@url&lt;/code&gt;, for example, &lt;code&gt;grafana-piechart-panel@1.6.0@https://example.com/grafana-piechart-panel-1.6.0.zip&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;By default, Grafana installs some suggested plugins on startup. For a list of default preinstalled plugins, refer to &lt;a href=&#34;https://github.com/grafana/grafana/blob/main/pkg/setting/setting_plugins.go#L35-L40&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;pkg/setting/setting_plugins.go:35&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&#34;preinstall_sync&#34;&gt;&lt;code&gt;preinstall_sync&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enter a comma-separated list of plugin identifiers to install on startup, using the Grafana catalog as the source.
Same as &lt;code&gt;preinstall&lt;/code&gt;, but installs plugins synchronously.&lt;/p&gt;
&lt;p&gt;These will be installed before starting Grafana. Useful when used with provisioning.&lt;/p&gt;
&lt;h4 id=&#34;preinstall_disabled&#34;&gt;&lt;code&gt;preinstall_disabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;This option disables all preinstalled plugins. The default is &lt;code&gt;false&lt;/code&gt;. To disable a specific plugin from being preinstalled, use the &lt;code&gt;disable_plugins&lt;/code&gt; option.&lt;/p&gt;
&lt;h4 id=&#34;preinstall_auto_update&#34;&gt;&lt;code&gt;preinstall_auto_update&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Enable automatic updates for preinstalled plugins on start-up.
When enabled, preinstalled plugins without a pinned version are automatically updated to the latest version when Grafana starts.&lt;/p&gt;
&lt;p&gt;The default is &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To prevent automatic updates for specific plugins, pin them to a specific version using the format &lt;code&gt;plugin_id@version&lt;/code&gt; in the &lt;code&gt;preinstall&lt;/code&gt; setting.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;live&#34;&gt;&lt;code&gt;[live]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;max_connections&#34;&gt;&lt;code&gt;max_connections&lt;/code&gt;&lt;/h4&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;h4 id=&#34;allowed_origins&#34;&gt;&lt;code&gt;allowed_origins&lt;/code&gt;&lt;/h4&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 is 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;h4 id=&#34;ha_engine&#34;&gt;&lt;code&gt;ha_engine&lt;/code&gt;&lt;/h4&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 &lt;code&gt;redis&lt;/code&gt;.&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;h4 id=&#34;ha_engine_address&#34;&gt;&lt;code&gt;ha_engine_address&lt;/code&gt;&lt;/h4&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: redis-headless.grafana.svc.cluster.local:6379
ha_engine_password: $__file{/your/redis/password/secret/mount}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h3 id=&#34;pluginplugin_id&#34;&gt;&lt;code&gt;[plugin.plugin_id]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;tracing&#34;&gt;&lt;code&gt;tracing&lt;/code&gt;&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;&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;h3 id=&#34;as_external&#34;&gt;&lt;code&gt;as_external&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Load an external version of a core plugin if it has been installed.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;plugingrafana-image-renderer&#34;&gt;&lt;code&gt;[plugin.grafana-image-renderer]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;rendering_timezone&#34;&gt;&lt;code&gt;rendering_timezone&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance to use a default timezone when not provided by Grafana, for example, when rendering panel image of alert.
Refer to the &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;ICU &lt;code&gt;metaZones.txt&lt;/code&gt; file&lt;/a&gt; for a list of supported timezone IDs. Fallbacks to TZ environment variable if not set.&lt;/p&gt;
&lt;h4 id=&#34;rendering_language&#34;&gt;&lt;code&gt;rendering_language&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance to use a default language when not provided by Grafana, for example, when rendering panel image of alert.
Refer to the HTTP header Accept-Language to understand how to format this value, for example, &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;h4 id=&#34;rendering_viewport_device_scale_factor&#34;&gt;&lt;code&gt;rendering_viewport_device_scale_factor&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Instruct headless browser instance to use a default device scale factor when not provided by Grafana, for example, when rendering panel image of alert.
Default is &lt;code&gt;1&lt;/code&gt;. Using a higher value produces more detailed images (higher DPI), but requires more disk space to store an image.&lt;/p&gt;
&lt;h4 id=&#34;rendering_ignore_https_errors&#34;&gt;&lt;code&gt;rendering_ignore_https_errors&lt;/code&gt;&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, we do not recommend that you ignore HTTPS errors.&lt;/p&gt;
&lt;h4 id=&#34;rendering_verbose_logging&#34;&gt;&lt;code&gt;rendering_verbose_logging&lt;/code&gt;&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 only captures 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;h4 id=&#34;rendering_dumpio&#34;&gt;&lt;code&gt;rendering_dumpio&lt;/code&gt;&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;.&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;h4 id=&#34;rendering_timing_metrics&#34;&gt;&lt;code&gt;rendering_timing_metrics&lt;/code&gt;&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 from &lt;code&gt;grafana-image-renderer&lt;/code&gt; v3.9.0&#43;&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Instruct a headless browser instance on whether to record metrics for the duration of every rendering step. Default is &lt;code&gt;false&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Setting this to &lt;code&gt;true&lt;/code&gt; when optimizing the rendering mode settings to improve the plugin performance or when troubleshooting can be useful.&lt;/p&gt;
&lt;h4 id=&#34;rendering_args&#34;&gt;&lt;code&gt;rendering_args&lt;/code&gt;&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 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;h4 id=&#34;rendering_chrome_bin&#34;&gt;&lt;code&gt;rendering_chrome_bin&lt;/code&gt;&lt;/h4&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;Note that this is &lt;em&gt;not&lt;/em&gt; recommended.
You might encounter problems if the installed version of Chrome or Chromium is not compatible with the plugin.&lt;/p&gt;
&lt;h4 id=&#34;rendering_mode&#34;&gt;&lt;code&gt;rendering_mode&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Instruct how headless browser instances are created. Default is &lt;code&gt;default&lt;/code&gt; and creates a new browser instance on each request.&lt;/p&gt;
&lt;p&gt;Mode &lt;code&gt;clustered&lt;/code&gt; makes sure that only a maximum of browsers or incognito pages can execute concurrently.&lt;/p&gt;
&lt;p&gt;Mode &lt;code&gt;reusable&lt;/code&gt; uses one browser instance and creates a new incognito page on each request.&lt;/p&gt;
&lt;h4 id=&#34;rendering_clustering_mode&#34;&gt;&lt;code&gt;rendering_clustering_mode&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;When &lt;code&gt;rendering_mode = clustered&lt;/code&gt;, you can instruct how many browsers or incognito pages can execute concurrently.
Default is &lt;code&gt;browser&lt;/code&gt; and clusters using browser instances.&lt;/p&gt;
&lt;p&gt;Mode &lt;code&gt;context&lt;/code&gt; clusters using incognito pages.&lt;/p&gt;
&lt;h4 id=&#34;rendering_clustering_max_concurrency&#34;&gt;&lt;code&gt;rendering_clustering_max_concurrency&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;When &lt;code&gt;rendering_mode = clustered&lt;/code&gt;, you can define the maximum number of browser instances or incognito pages that can execute concurrently. Default is &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id=&#34;rendering_clustering_timeout&#34;&gt;&lt;code&gt;rendering_clustering_timeout&lt;/code&gt;&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 &lt;code&gt;grafana-image-renderer&lt;/code&gt; v3.3.0 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;When &lt;code&gt;rendering_mode = clustered&lt;/code&gt;, you can specify the duration a rendering request can take before it times out. Default is &lt;code&gt;30&lt;/code&gt; seconds.&lt;/p&gt;
&lt;h4 id=&#34;rendering_viewport_max_width&#34;&gt;&lt;code&gt;rendering_viewport_max_width&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the maximum viewport width that can be requested.&lt;/p&gt;
&lt;h4 id=&#34;rendering_viewport_max_height&#34;&gt;&lt;code&gt;rendering_viewport_max_height&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the maximum viewport height that can be requested.&lt;/p&gt;
&lt;h4 id=&#34;rendering_viewport_max_device_scale_factor&#34;&gt;&lt;code&gt;rendering_viewport_max_device_scale_factor&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Limit the maximum viewport device scale factor that can be requested.&lt;/p&gt;
&lt;h4 id=&#34;grpc_host&#34;&gt;&lt;code&gt;grpc_host&lt;/code&gt;&lt;/h4&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;h4 id=&#34;grpc_port&#34;&gt;&lt;code&gt;grpc_port&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Change the listening port of the gRPC server. Default port is &lt;code&gt;0&lt;/code&gt; and uses a port not in use.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;enterprise&#34;&gt;&lt;code&gt;[enterprise]&lt;/code&gt;&lt;/h3&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;h3 id=&#34;feature_toggles&#34;&gt;&lt;code&gt;[feature_toggles]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;enable&#34;&gt;&lt;code&gt;enable&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Keys of features to enable, separated by space.&lt;/p&gt;
&lt;h4 id=&#34;feature_name--value&#34;&gt;&lt;code&gt;FEATURE_NAME = &amp;lt;value&amp;gt;&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Use a key-value pair to set feature flag values explicitly, overriding any default values. A few different types are supported, following the OpenFeature specification. See the defaults.ini file for more details.&lt;/p&gt;
&lt;p&gt;For example, to disable an on-by-default feature toggle named &lt;code&gt;exploreMixedDatasource&lt;/code&gt;, specify &lt;code&gt;exploreMixedDatasource = false&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;date_formats&#34;&gt;&lt;code&gt;[date_formats]&lt;/code&gt;&lt;/h3&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;h4 id=&#34;full_date&#34;&gt;&lt;code&gt;full_date&lt;/code&gt;&lt;/h4&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;h4 id=&#34;intervals&#34;&gt;&lt;code&gt;intervals&lt;/code&gt;&lt;/h4&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;h4 id=&#34;use_browser_locale&#34;&gt;&lt;code&gt;use_browser_locale&lt;/code&gt;&lt;/h4&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;h4 id=&#34;default_timezone&#34;&gt;&lt;code&gt;default_timezone&lt;/code&gt;&lt;/h4&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;h4 id=&#34;default_week_start&#34;&gt;&lt;code&gt;default_week_start&lt;/code&gt;&lt;/h4&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;h3 id=&#34;time_picker&#34;&gt;&lt;code&gt;[time_picker]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This section controls system-wide defaults for the time picker, such as the default quick ranges.&lt;/p&gt;
&lt;h4 id=&#34;quick_ranges&#34;&gt;&lt;code&gt;quick_ranges&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the default set of quick relative offset time ranges that show up in the right column of the time picker. Each configuration entry must have a &lt;code&gt;from&lt;/code&gt;, &lt;code&gt;to&lt;/code&gt;, and &lt;code&gt;display&lt;/code&gt; field. Any configuration for this field must be in valid JSON format made up of a list of quick range configurations.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;from&lt;/code&gt; and &lt;code&gt;to&lt;/code&gt; fields should be valid relative time ranges. For more information the relative time formats, refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/dashboards/use-dashboards/#time-units-and-relative-ranges&#34;&gt;Time units and relative ranges.&lt;/a&gt;. The &lt;code&gt;from&lt;/code&gt; field is required, but omitting &lt;code&gt;to&lt;/code&gt; will result in the &lt;code&gt;from&lt;/code&gt; value being used in both fields.&lt;/p&gt;
&lt;p&gt;If no configuration is provided, the default time ranges will be used.&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;[time_picker]
quick_ranges = &amp;#34;&amp;#34;&amp;#34;[
{&amp;#34;from&amp;#34;:&amp;#34;now-6s&amp;#34;,&amp;#34;to&amp;#34;:&amp;#34;now&amp;#34;,&amp;#34;display&amp;#34;:&amp;#34;Last 6 seconds&amp;#34;},
{&amp;#34;from&amp;#34;:&amp;#34;now-10m&amp;#34;,&amp;#34;to&amp;#34;:&amp;#34;now&amp;#34;,&amp;#34;display&amp;#34;:&amp;#34;Last 10 minutes&amp;#34;},
{&amp;#34;from&amp;#34;:&amp;#34;now-25h&amp;#34;,&amp;#34;to&amp;#34;:&amp;#34;now&amp;#34;,&amp;#34;display&amp;#34;:&amp;#34;Last 24 hours&amp;#34;},
{&amp;#34;from&amp;#34;:&amp;#34;now/w&amp;#34;,&amp;#34;to&amp;#34;:&amp;#34;now/w&amp;#34;,&amp;#34;display&amp;#34;:&amp;#34;This week&amp;#34;},
{&amp;#34;from&amp;#34;:&amp;#34;now-1w/w&amp;#34;,&amp;#34;to&amp;#34;:&amp;#34;now-1w/w&amp;#34;,&amp;#34;display&amp;#34;:&amp;#34;Last week&amp;#34;},
{&amp;#34;from&amp;#34;:&amp;#34;now-10d&amp;#34;,&amp;#34;to&amp;#34;:&amp;#34;now&amp;#34;,&amp;#34;display&amp;#34;:&amp;#34;Last 10 days&amp;#34;}
]&amp;#34;&amp;#34;&amp;#34;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;expressions&#34;&gt;&lt;code&gt;[expressions]&lt;/code&gt;&lt;/h3&gt;
&lt;h4 id=&#34;enabled-12&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&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;h4 id=&#34;sql_expression_cell_limit&#34;&gt;&lt;code&gt;sql_expression_cell_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the maximum number of cells that can be passed to a SQL expression. Default is &lt;code&gt;100000&lt;/code&gt;. A setting of &lt;code&gt;0&lt;/code&gt; means no limit.&lt;/p&gt;
&lt;h4 id=&#34;sql_expression_output_cell_limit&#34;&gt;&lt;code&gt;sql_expression_output_cell_limit&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set the maximum number of cells that can be returned from a SQL expression. Default is &lt;code&gt;100000&lt;/code&gt;. A setting of &lt;code&gt;0&lt;/code&gt; means no limit.&lt;/p&gt;
&lt;h3 id=&#34;sql_expression_query_length_limit&#34;&gt;&lt;code&gt;sql_expression_query_length_limit&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Set the maximum length of a SQL query that can be used in a SQL expression. Default is &lt;code&gt;10000&lt;/code&gt; characters. A setting of &lt;code&gt;0&lt;/code&gt; means no limit.&lt;/p&gt;
&lt;h4 id=&#34;sql_expression_timeout&#34;&gt;&lt;code&gt;sql_expression_timeout&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The duration a SQL expression will run before being cancelled. The default is &lt;code&gt;10s&lt;/code&gt;. A setting of &lt;code&gt;0s&lt;/code&gt; means no limit.&lt;/p&gt;
&lt;h3 id=&#34;geomap&#34;&gt;&lt;code&gt;[geomap]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This section controls the defaults settings for &lt;strong&gt;Geomap Plugin&lt;/strong&gt;.&lt;/p&gt;
&lt;h4 id=&#34;default_baselayer_config&#34;&gt;&lt;code&gt;default_baselayer_config&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The JSON configuration 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;h4 id=&#34;enable_custom_baselayers&#34;&gt;&lt;code&gt;enable_custom_baselayers&lt;/code&gt;&lt;/h4&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;h3 id=&#34;rbac&#34;&gt;&lt;code&gt;[rbac]&lt;/code&gt;&lt;/h3&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;
&lt;h3 id=&#34;navigationapp_sections&#34;&gt;&lt;code&gt;[navigation.app_sections]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Move an app plugin (referenced by its id), including all its pages, to a specific navigation section. Format: &lt;code&gt;&amp;lt;pluginId&amp;gt; = &amp;lt;sectionId&amp;gt; &amp;lt;sortWeight&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;navigationapp_standalone_pages&#34;&gt;&lt;code&gt;[navigation.app_standalone_pages]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Move an individual app plugin page (referenced by its &lt;code&gt;path&lt;/code&gt; field) to a specific navigation section.
Format: &lt;code&gt;&amp;lt;pageUrl&amp;gt; = &amp;lt;sectionId&amp;gt; &amp;lt;sortWeight&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;public_dashboards&#34;&gt;&lt;code&gt;[public_dashboards]&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This section configures the 
    &lt;a href=&#34;/docs/grafana/v12.4/dashboards/share-dashboards-panels/shared-dashboards/&#34;&gt;shared dashboards&lt;/a&gt; feature.&lt;/p&gt;
&lt;h4 id=&#34;enabled-13&#34;&gt;&lt;code&gt;enabled&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Set this to &lt;code&gt;false&lt;/code&gt; to disable the shared dashboards feature. This prevents users from creating new shared dashboards and disables existing ones.&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="/docs/grafana/v12.4/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/v12.4/setup-grafana/start-restart-grafana/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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&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 &#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 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 &#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;[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 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 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 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 service grafana-server start&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 &#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 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 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 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;yml&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-yml&#34;&gt;version: &amp;#39;3.8&amp;#39;
services:
  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    restart: unless-stopped
    environment:
      - TERM=linux
      - GF_PLUGINS_PREINSTALL=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/v12.4/setup-grafana/sign-in-to-grafana/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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/v12.4/setup-grafana/configure-security/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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;You can require all network requests 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;h3 id=&#34;configure-cors&#34;&gt;Configure CORS&lt;/h3&gt;
&lt;p&gt;If you want to enable CORS for your Grafana instance, run Grafana behind a reverse proxy and configure the CORS headers in the reverse proxy.&lt;/p&gt;
&lt;p&gt;For more information, refer to &lt;a href=&#34;/tutorials/run-grafana-behind-a-proxy/&#34;&gt;Run Grafana behind a reverse proxy&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;Grafana doesn&amp;rsquo;t recommend using wildcard values (&lt;code&gt;*&lt;/code&gt;) as header values and recommends using a URL instead.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;limit-viewer-query-permissions&#34;&gt;Limit Viewer query permissions&lt;/h2&gt;
&lt;p&gt;Users with the &lt;code&gt;Viewer role&lt;/code&gt; 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;For example, 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 many 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 in Grafana, any visitor or user can use Grafana as a Viewer without signing in. This section lists the security implications of enabling Anonymous access.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Anyone with the URL of a dashboard accessible by the Viewer role can access that dashboard.&lt;/li&gt;
&lt;li&gt;New dashboards are publicly available unless the dashboard creator hides them from &lt;strong&gt;all Viewers&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Anyone can edit or delete dashboards that have granted Edit or Admin abilities to Viewers.&lt;/li&gt;
&lt;li&gt;Anyone can make &lt;code&gt;view&lt;/code&gt; 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>Plan your IAM integration strategy</title><link>https://grafana.com/docs/grafana/v12.4/setup-grafana/configure-access/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/setup-grafana/configure-access/</guid><content><![CDATA[&lt;h1 id=&#34;plan-your-iam-integration-strategy&#34;&gt;Plan your IAM integration strategy&lt;/h1&gt;
&lt;p&gt;This section describes the decisions you should make when using an Identity and Access Management (IAM) provider to manage access to Grafana. IAM ensures that users have secure access to sensitive data and &lt;a href=&#34;../../administration/data-source-management/&#34;&gt;other resources&lt;/a&gt;, simplifying user management and authentication.&lt;/p&gt;
&lt;h2 id=&#34;benefits-of-integrating-with-an-iam-provider&#34;&gt;Benefits of integrating with an IAM provider&lt;/h2&gt;
&lt;p&gt;Integrating with an IAM provider provides the following benefits:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;User management&lt;/strong&gt;: By providing Grafana access to your current user management system, you eliminate the overhead of replicating user information and instead have centralized user management for users&amp;rsquo; roles and permissions to Grafana resources.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Security&lt;/strong&gt;: Many IAM solutions provide advanced security features such as multi-factor authentication, RBAC, and audit trails, which can help to improve the security of your Grafana installation.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;SSO&lt;/strong&gt;: Properly setting up Grafana with your current IAM solution enables users to access Grafana with the same credentials they use for other applications.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Scalability&lt;/strong&gt;: User additions and updates in your user database are immediately reflected in Grafana.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In order to plan an integration with Grafana, assess your organization&amp;rsquo;s current needs, requirements, and any existing IAM solutions being used. This includes thinking about how roles and permissions will be mapped to users in Grafana and how users can be grouped to access shared resources.&lt;/p&gt;
&lt;h2 id=&#34;internal-vs-external-users&#34;&gt;Internal vs external users&lt;/h2&gt;
&lt;p&gt;As a first step, determine how you want to manage users who will access Grafana.&lt;/p&gt;
&lt;p&gt;Do you already use an identity provider to manage users? If so, Grafana might be able to integrate with your identity provider through one of our IdP integrations.
Refer to &lt;a href=&#34;../configure-access/configure-authentication/&#34;&gt;Configure authentication documentation&lt;/a&gt; for the list of supported providers.&lt;/p&gt;
&lt;p&gt;If you are not interested in setting up an external identity provider, but still want to limit access to your Grafana instance, consider using Grafana&amp;rsquo;s basic authentication.&lt;/p&gt;
&lt;p&gt;Finally, if you want your Grafana instance to be accessible to everyone, you can enable anonymous access to Grafana.
For information, refer to the &lt;a href=&#34;../configure-access/configure-authentication/#anonymous-authentication&#34;&gt;anonymous authentication documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;ways-to-organize-users&#34;&gt;Ways to organize users&lt;/h2&gt;
&lt;p&gt;Organize users in subgroups that are sensible to the organization. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;: Different groups of users or customers should only have access to their intended resources.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Simplicity&lt;/strong&gt;: Reduce the scope of dashboards and resources available.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost attribution&lt;/strong&gt;: Track and bill costs to individual customers, departments, or divisions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Customization&lt;/strong&gt;: Each group of users could have a personalized experience like different dashboards or theme colors.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;users-in-grafana-teams&#34;&gt;Users in Grafana teams&lt;/h3&gt;
&lt;p&gt;You can organize users into &lt;a href=&#34;../../administration/team-management/&#34;&gt;teams&lt;/a&gt; and assign them roles and permissions reflecting the current organization. For example, instead of assigning five users access to the same dashboard, you can create a team of those users and assign dashboard permissions to the team.&lt;/p&gt;
&lt;p&gt;A user can belong to multiple teams and be a member or an administrator for a given team. Team members inherit permissions from the team but cannot edit the team itself. Team administrators can add members to a team and update its settings, such as the team name, team members, roles assigned, and UI preferences.&lt;/p&gt;
&lt;p&gt;Teams are a perfect solution for working with a subset of users. Teams can share resources with other teams.&lt;/p&gt;
&lt;h3 id=&#34;users-in-grafana-organizations&#34;&gt;Users in Grafana organizations&lt;/h3&gt;
&lt;p&gt;&lt;a href=&#34;../../administration/organization-management/&#34;&gt;Grafana organizations&lt;/a&gt; allow complete isolation of resources, such as dashboards and data sources. Users can be members of one or several organizations, and they can only access resources from an organization they belong to.&lt;/p&gt;
&lt;p&gt;Having multiple organizations in a single instance of Grafana lets you manage your users in one place while completely separating resources.&lt;/p&gt;
&lt;p&gt;Organizations provide a higher measure of isolation within Grafana than teams do and can be helpful in certain scenarios. However, because organizations lack the scalability and flexibility of teams and &lt;a href=&#34;../../dashboards/manage-dashboards/#create-a-dashboard-folder&#34;&gt;folders&lt;/a&gt;, we do not recommend using them as the default way to group users and resources.&lt;/p&gt;
&lt;p&gt;Note that Grafana Cloud does not support having more than 1 organizations per instance.&lt;/p&gt;
&lt;h3 id=&#34;choosing-between-teams-and-organizations&#34;&gt;Choosing between teams and organizations&lt;/h3&gt;
&lt;p&gt;&lt;a href=&#34;../../administration/team-management/&#34;&gt;Grafana teams&lt;/a&gt; and Grafana organizations serve similar purposes in the Grafana platform. Both are designed to help group users and manage and control access to resources.&lt;/p&gt;
&lt;p&gt;Teams provide more flexibility, as resources can be accessible by multiple teams, and team creation and management are simple.&lt;/p&gt;
&lt;p&gt;In contrast, organizations provide more isolation than teams, as resources cannot be shared between organizations.
They are more difficult to manage than teams, as you must create and update resources for each organization individually.
Organizations cater to bigger companies or users with intricate access needs, necessitating complete resource segregation.&lt;/p&gt;
&lt;h2 id=&#34;access-to-external-systems&#34;&gt;Access to external systems&lt;/h2&gt;
&lt;p&gt;Consider the need for machine-to-machine &lt;a href=&#34;https://en.wikipedia.org/wiki/Machine_to_machine&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;M2M&lt;/a&gt; communications. If a system needs to interact with Grafana, ensure it has proper access.&lt;/p&gt;
&lt;p&gt;Consider the following scenarios:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Schedule reports&lt;/strong&gt;: Generate reports periodically from Grafana through the reporting API and have them delivered to different communications channels like email, instant messaging, or keep them in a shared storage.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Define alerts&lt;/strong&gt;: Define alert rules to be triggered when a specific condition is met. Route alert notifications to different teams according to your organization&amp;rsquo;s needs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Provisioning file&lt;/strong&gt;: Provisioning files can be used to automate the creation of dashboards, data sources, and other resources.&lt;/p&gt;
&lt;p&gt;These are just a few examples of how Grafana can be used in M2M scenarios. The platform is highly flexible and can be used in various M2M applications, making it a powerful tool for organizations seeking insights into their systems and devices.&lt;/p&gt;
&lt;h3 id=&#34;service-accounts&#34;&gt;Service accounts&lt;/h3&gt;
&lt;p&gt;You can use a service account to run automated workloads in Grafana, such as dashboard provisioning, configuration, or report generation. Create service accounts and service accounts tokens to authenticate applications, such as Terraform, with the Grafana API.&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;Service accounts will eventually replace 
    &lt;a href=&#34;/docs/grafana/v12.4/administration/service-accounts/migrate-api-keys/&#34;&gt;API keys&lt;/a&gt; as the primary way to authenticate applications that interact with Grafana.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;A common use case for creating a service account is to perform operations on automated or triggered tasks. You can use service accounts to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Schedule reports for specific dashboards to be delivered on a daily/weekly/monthly basis&lt;/li&gt;
&lt;li&gt;Define alerts in your system to be used in Grafana&lt;/li&gt;
&lt;li&gt;Set up an external SAML authentication provider&lt;/li&gt;
&lt;li&gt;Interact with Grafana without signing in as a user&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In &lt;a href=&#34;../../introduction/grafana-enterprise/&#34;&gt;Grafana Enterprise&lt;/a&gt;, you can also use service accounts in combination with &lt;a href=&#34;../../administration/roles-and-permissions/access-control/&#34;&gt;role-based access control&lt;/a&gt; to grant very specific permissions to applications that interact with 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;Service accounts can only act in the organization they are created for. We recommend creating service accounts in each organization if you have the same task needed for multiple organizations.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;The following video shows how to migrate from API keys to service accounts.





  
  
  


&lt;div&gt;
  &lt;iframe src=&#34;https://player.vimeo.com/video/742056367?transparent=0&#34; title=&#34;vimeo video&#34; webkitallowfullscreen=&#34;&#34; mozallowfullscreen=&#34;&#34; allowfullscreen=&#34;&#34;&gt;&lt;/iframe&gt;
  &lt;div &gt;
    
  &lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h4 id=&#34;service-account-tokens&#34;&gt;Service account tokens&lt;/h4&gt;
&lt;p&gt;To authenticate with Grafana&amp;rsquo;s HTTP API, a randomly generated string known as a service account token can be used as an alternative to a password.&lt;/p&gt;
&lt;p&gt;When a service account is created, it can be linked to multiple access tokens. These service access tokens can be utilized in the same manner as API keys, providing a means to programmatically access Grafana HTTP API.&lt;/p&gt;
&lt;p&gt;You can create multiple tokens for the same service account. You might want to do this if:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Multiple applications use the same permissions, but you want to audit or manage their actions separately.&lt;/li&gt;
&lt;li&gt;You need to rotate or replace a compromised token.&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;In Grafana&amp;rsquo;s audit logs it will still show up as the same service account.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Service account access tokens inherit permissions from the service account.&lt;/p&gt;
&lt;h2 id=&#34;how-to-work-with-roles&#34;&gt;How to work with roles?&lt;/h2&gt;
&lt;p&gt;Grafana roles control the access of users and service accounts to specific resources and determine their authorized actions.&lt;/p&gt;
&lt;p&gt;You can assign roles through the user interface or APIs, establish them through Terraform, or synchronize them automatically via an external IAM provider.&lt;/p&gt;
&lt;h3 id=&#34;what-are-roles&#34;&gt;What are roles?&lt;/h3&gt;
&lt;p&gt;Within an organization, Grafana has established three primary &lt;a href=&#34;../../administration/roles-and-permissions/#organization-roles&#34;&gt;organization roles&lt;/a&gt; - organization administrator, editor, and viewer - which dictate the user&amp;rsquo;s level of access and permissions, including the ability to edit data sources or create teams. Grafana also has an empty role that you can start with and to which you can gradually add custom permissions.
To be a member of any organization, every user must be assigned a role.&lt;/p&gt;
&lt;p&gt;In addition, Grafana provides a server administrator role that grants access to and enables interaction with resources that affect the entire instance, including organizations, users, and server-wide settings.
This particular role can only be accessed by users of self-hosted Grafana instances. It is a significant role intended for the administrators of the Grafana instance.&lt;/p&gt;
&lt;h3 id=&#34;what-are-permissions&#34;&gt;What are permissions?&lt;/h3&gt;
&lt;p&gt;Each role consists of a set of &lt;a href=&#34;../../administration/roles-and-permissions/#dashboard-permissions&#34;&gt;permissions&lt;/a&gt; that determine the tasks a user can perform in the system.
For example, the &lt;strong&gt;Admin&lt;/strong&gt; role includes permissions that let an administrator create and delete users.&lt;/p&gt;
&lt;p&gt;Grafana allows for precise permission settings on both dashboards and folders, giving you the ability to control which users and teams can view, edit, and administer them.
For example, you might want a certain viewer to be able to edit a dashboard. While that user can see all dashboards, you can grant them access to update only one of them.&lt;/p&gt;
&lt;p&gt;In &lt;a href=&#34;../../introduction/grafana-enterprise/&#34;&gt;Grafana Enterprise&lt;/a&gt;, you can also grant granular permissions for data sources to control who can query and edit them.&lt;/p&gt;
&lt;p&gt;Dashboard, folder, and data source permissions can be set through the UI or APIs or provisioned through Terraform.&lt;/p&gt;
&lt;h3 id=&#34;role-based-access-control&#34;&gt;Role-based access control&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 &lt;a href=&#34;../../introduction/grafana-enterprise/&#34;&gt;Grafana Enterprise&lt;/a&gt; and &lt;a href=&#34;/docs/grafana-cloud/&#34;&gt;Grafana Cloud&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;If you think that the basic organization and server administrator roles are too limiting, it might be beneficial to employ &lt;a href=&#34;../../administration/roles-and-permissions/access-control/&#34;&gt;role-based access control (RBAC)&lt;/a&gt;.
RBAC is a flexible approach to managing user access to Grafana resources, including users, data sources, and reports. It enables easy granting, changing, and revoking of read and write access for users.&lt;/p&gt;
&lt;p&gt;RBAC comes with pre-defined roles, such as data source writer, which allows updating, reading, or querying all data sources.
You can assign these roles to users, teams, and service accounts.&lt;/p&gt;
&lt;p&gt;In addition, RBAC empowers you to generate personalized roles and modify permissions authorized by the standard Grafana roles.&lt;/p&gt;
&lt;h2 id=&#34;user-synchronization-between-grafana-and-identity-providers&#34;&gt;User synchronization between Grafana and identity providers&lt;/h2&gt;
&lt;p&gt;When connecting Grafana to an identity provider, it&amp;rsquo;s important to think beyond just the initial authentication setup. You should also think about the maintenance of user bases and roles. Using Grafana&amp;rsquo;s team and role synchronization features ensures that updates you make to a user in your identity provider will be reflected in their role assignment and team memberships in Grafana.&lt;/p&gt;
&lt;h3 id=&#34;team-sync&#34;&gt;Team sync&lt;/h3&gt;
&lt;p&gt;Team sync is a feature that allows you to synchronize teams or groups from your authentication provider with teams in Grafana. This means that users of specific teams or groups in LDAP, OAuth, or SAML will be automatically added or removed as members of corresponding teams in Grafana. Whenever a user logs in, Grafana will check for any changes in the teams or groups of the authentication provider and update the user&amp;rsquo;s teams in Grafana accordingly. This makes it easy to manage user permissions across multiple systems.&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;Available in &lt;a href=&#34;../../introduction/grafana-enterprise/&#34;&gt;Grafana Enterprise&lt;/a&gt; and to customers on select Grafana Cloud plans. For pricing information, visit &lt;a href=&#34;/pricing/&#34;&gt;pricing&lt;/a&gt; or contact our sales team.&lt;/p&gt;&lt;/blockquote&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;Team synchronization occurs only when a user logs in. However, if you are using LDAP, it is possible to enable active background synchronization. This allows for the continuous synchronization of teams.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;role-sync&#34;&gt;Role Sync&lt;/h3&gt;
&lt;p&gt;Grafana can synchronize basic roles from your authentication provider by mapping attributes from the identity provider to the user role in Grafana. This means that users with specific attributes, like role, team, or group membership in LDAP, OAuth, or SAML, can be automatically assigned the corresponding role in Grafana. Whenever a user logs in, Grafana checks for any changes in the user information retrieved from the authentication provider and updates the user&amp;rsquo;s role in Grafana accordingly.&lt;/p&gt;
&lt;h3 id=&#34;organization-sync&#34;&gt;Organization sync&lt;/h3&gt;
&lt;p&gt;Organization sync is the process of binding all the users from an organization in Grafana. This delegates the role of managing users to the identity provider. This way, there&amp;rsquo;s no need to manage user access from Grafana because the identity provider will be queried whenever a new user tries to log in.&lt;/p&gt;
&lt;p&gt;With organization sync, you can assign users from identity provider groups to corresponding Grafana organizations. This functionality is similar to role sync but with the added benefit of specifying the organization that a user belongs to for a particular identity provider group. Please note that this feature is only available for self-hosted Grafana instances, as Cloud Grafana instances have a single organization limit.&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 following applies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Organization sync is currently only supported for SAML and LDAP.&lt;/li&gt;
&lt;li&gt;You can only map basic roles with Organization sync.&lt;/li&gt;
&lt;li&gt;You don&amp;rsquo;t need to invite users through Grafana when syncing with Organization sync.&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;&lt;/div&gt;

]]></content><description>&lt;h1 id="plan-your-iam-integration-strategy">Plan your IAM integration strategy&lt;/h1>
&lt;p>This section describes the decisions you should make when using an Identity and Access Management (IAM) provider to manage access to Grafana. IAM ensures that users have secure access to sensitive data and &lt;a href="../../administration/data-source-management/">other resources&lt;/a>, simplifying user management and authentication.&lt;/p></description></item><item><title>Set up Grafana monitoring</title><link>https://grafana.com/docs/grafana/v12.4/setup-grafana/set-up-grafana-monitoring/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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;h4 id=&#34;native-histogram-format&#34;&gt;Native histogram format&lt;/h4&gt;
&lt;p&gt;Grafana exposes HTTP request metrics using native histograms for a more accurate representation of metric distributions. By default, both native histograms and classic histogram buckets are exposed for compatibility.&lt;/p&gt;
&lt;p&gt;To reduce metric cardinality, you can disable classic histogram buckets and expose only native histograms by setting the following option in your configuration file:&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]
# Enable classic HTTP histogram buckets alongside native histograms
# Set to false to only expose native histogram format (reduces cardinality)
classic_http_histogram_enabled = false&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&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, click &lt;strong&gt;Connections&lt;/strong&gt; in the left-side menu.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Under your connections, 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;Under the name of your data source, click &lt;strong&gt;Dashboards&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On the Dashboards tab, click &lt;strong&gt;Import&lt;/strong&gt; in the &lt;em&gt;Grafana metrics&lt;/em&gt; row to import 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/key-concepts/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/v12.4/setup-grafana/set-up-for-high-availability/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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;architecture&#34;&gt;Architecture&lt;/h2&gt;
&lt;p&gt;Your Grafana high availability environment will consist of two or more Grafana servers (cluster nodes) served by a load balancing reverse proxy. The cluster uses an active-active architecture with the load balancer allocating traffic between nodes and re-allocating traffic to surviving nodes should there be failures. You need to configure your load balancer with a listener that responds to a shared cluster hostname. The shared name is the hostname your users use to access Grafana.&lt;/p&gt;
&lt;p&gt;For ease of use, we recommend you configure your load balancer to provide SSL termination. The shared Grafana database tracks session information, so your load balancer won&amp;rsquo;t need to provide session affinity services. See your load balancer&amp;rsquo;s documentation for details on its configuration and operations.&lt;/p&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;grafana-enterprise-only-license-your-grafana-servers&#34;&gt;Grafana Enterprise only: License your Grafana servers&lt;/h2&gt;
&lt;p&gt;If you&amp;rsquo;re using Grafana Enterprise:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Get a license token in the name of your cluster&amp;rsquo;s shared hostname.&lt;/li&gt;
&lt;li&gt;Edit the 
    &lt;a href=&#34;/docs/grafana/v12.4/setup-grafana/configure-grafana/#root_url&#34;&gt;&lt;code&gt;root_url&lt;/code&gt;&lt;/a&gt; setting in each node&amp;rsquo;s &lt;code&gt;grafana.ini&lt;/code&gt; configuration file to reflect the cluster&amp;rsquo;s shared hostname.&lt;/li&gt;
&lt;li&gt;Install the license key as normal. For more information on installing your license key, refer to 
    &lt;a href=&#34;/docs/grafana/v12.4/administration/enterprise-licensing/#step-2-add-your-license-to-a-grafana-instance&#34;&gt;Add your license to a Grafana instance&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;alerting-high-availability&#34;&gt;Alerting high availability&lt;/h2&gt;
&lt;p&gt;Grafana Alerting provides a high availability mode. 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 further information and 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/v12.4/setup-grafana/set-up-https/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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 440 /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;Optional. From Grafana v11.2, edit the &lt;code&gt;cert_pass&lt;/code&gt; configuration option with the decryption password if you are using encrypted certificates.&lt;/p&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/v12.4/setup-grafana/image-rendering/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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;The &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Image Renderer service&lt;/a&gt; enables you to render Grafana panels and dashboards as PNGs, PDFs, or CSV files.&lt;/p&gt;
&lt;p&gt;You can export visualizations to share with stakeholders or configure automatic exports for alert notifications.&lt;/p&gt;
&lt;p&gt;Image rendering works with Grafana OSS, Grafana Enterprise, and Grafana Cloud.
Some features are exclusive to Grafana Enterprise and Grafana Cloud.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-caution&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Caution&lt;/p&gt;&lt;p&gt;We historically provided this functionality as a Grafana plugin.
This plugin is deprecated and no longer receives updates.
Similarly, we only support the latest version of the service.&lt;/p&gt;&lt;/blockquote&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;At any given time, we commit to supporting &lt;em&gt;all&lt;/em&gt; stable currently supported versions of Grafana.
If you find a bug, consider reporting it on our &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer/issues&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;issue tracker&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;p&gt;Before you install the image renderer, ensure you have the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A running Grafana instance&lt;/li&gt;
&lt;li&gt;Docker installed, or the ability to run binaries on Linux or Windows&lt;/li&gt;
&lt;li&gt;At least 16 GiB of memory and 4 CPU cores available for the renderer service&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;installation&#34;&gt;Installation&lt;/h2&gt;
&lt;p&gt;To install the service, we recommend using Docker or other containerization software.
This isn&amp;rsquo;t strictly required, so you can adapt to your specific environment as needed.&lt;/p&gt;
&lt;p&gt;We &lt;a href=&#34;https://hub.docker.com/r/grafana/grafana-image-renderer&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;ship images&lt;/a&gt; for &lt;code&gt;linux/amd64&lt;/code&gt; and &lt;code&gt;linux/arm64&lt;/code&gt;.
Windows and macOS can run these images with Docker Desktop.
Additionally, we ship binaries for Windows and Linux on our &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer/releases&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;GitHub Releases page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To run the service, use a server with significant memory and CPU resources available.
Some rendering tasks require several gigabytes of memory and many cores in a spiky pattern.
We recommend you allocate at least 16 GiB of memory and at least 4 CPU cores.
You may need to adapt this to your specific use case if your load is significant.&lt;/p&gt;
&lt;h3 id=&#34;install-with-docker&#34;&gt;Install with Docker&lt;/h3&gt;
&lt;p&gt;While we ship a &lt;code&gt;latest&lt;/code&gt; tag, prefer pinning a specific version in production environments.
We commit to keeping the &lt;code&gt;latest&lt;/code&gt; tag the latest stable release.&lt;/p&gt;
&lt;p&gt;The following example creates a Docker network and starts both the renderer and Grafana services.
This configuration demonstrates what environment variables to set, but it doesn&amp;rsquo;t use a production-ready Grafana instance:&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;shell&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-shell&#34;&gt;docker network create grafana
docker run --network grafana --name renderer --rm --detach grafana/grafana-image-renderer:latest
docker run --network grafana --name grafana --rm --detach -p 3000:3000 --env GF_RENDERING_SERVER_URL=http://renderer:8081/render --env GF_RENDERING_CALLBACK_URL=http://grafana:3000/ grafana/grafana-enterprise:latest&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Alternatively, if you prefer &lt;code&gt;docker compose&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;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;services:
  renderer:
    image: grafana/grafana-image-renderer:latest

  grafana:
    image: grafana/grafana-enterprise:latest
    ports:
      - &amp;#34;3000:3000&amp;#34;
    environment:
      GF_RENDERING_SERVER_URL: http://renderer:8081/render
      GF_RENDERING_CALLBACK_URL: http://grafana:3000/&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If you&amp;rsquo;re running with memory limits, set the &lt;code&gt;GOMEMLIMIT&lt;/code&gt; environment variable to a lower value than the limit, such as &lt;code&gt;1GiB&lt;/code&gt;.
Don&amp;rsquo;t set &lt;code&gt;GOMEMLIMIT&lt;/code&gt; to match the container&amp;rsquo;s limit because Chromium needs free memory on top.
We recommend 1 GiB of &lt;code&gt;GOMEMLIMIT&lt;/code&gt; per 8 GiB of container memory limit.&lt;/p&gt;
&lt;p&gt;If you don&amp;rsquo;t use memory limits, the previous configuration can still be useful, especially if you run the service alongside other services on the same host.&lt;/p&gt;
&lt;h3 id=&#34;install-with-binaries&#34;&gt;Install with binaries&lt;/h3&gt;
&lt;p&gt;Binaries are released for Linux and Windows, for &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; architectures.
macOS isn&amp;rsquo;t supported at this time.
If you&amp;rsquo;re using macOS, prefer Docker Desktop.&lt;/p&gt;
&lt;p&gt;The binaries don&amp;rsquo;t ship with a browser.
You must install your own Chromium-based browser and configure it to be used.
Examples include &lt;a href=&#34;https://www.google.com/chrome/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Google Chrome&lt;/a&gt; and &lt;a href=&#34;https://www.microsoft.com/en-us/edge&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Microsoft Edge&lt;/a&gt;.
Configure the path to this browser binary with &lt;code&gt;--browser.path&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The binaries are hosted on &lt;a href=&#34;https://github.com/grafana/grafana-image-renderer/releases&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;GitHub Releases&lt;/a&gt;.
Download the appropriate binary for your platform and run it from the terminal.
For example, run &lt;code&gt;./grafana-image-renderer server&lt;/code&gt;.
See &lt;code&gt;--help&lt;/code&gt; for more information.&lt;/p&gt;
&lt;h3 id=&#34;grafana-configuration&#34;&gt;Grafana configuration&lt;/h3&gt;
&lt;p&gt;Grafana includes options to specify where to find the renderer service and which authentication token to use in communication.&lt;/p&gt;
&lt;p&gt;To configure these, use the following options in the &lt;code&gt;.ini&lt;/code&gt; configuration file for Grafana:&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;[rendering]
; The URL is an HTTP(S) URL to the service, and its rendering endpoint.
; By default, the path is `/render`. This can be changed with nginx or similar reverse proxies.
server_url = http://renderer:8081/render

; The token is any _one_ token configured in the renderer service.
; If you configured multiple tokens in the service, choose one for Grafana.
; By default, a single token is configured, with the value of `-`.
renderer_token = -&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;For Docker or similar setups that use environment variables, use the following options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;GF_RENDERING_SERVER_URL&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;GF_RENDERING_RENDERER_TOKEN&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;You can configure the service in the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;CLI flags&lt;/strong&gt;: Run with &lt;code&gt;--help&lt;/code&gt; to see available flag names.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Environment variables&lt;/strong&gt;: Run with &lt;code&gt;--help&lt;/code&gt; to see names and current values.
Most, but not all, variables map 1:1 to the CLI flag names.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Configuration file&lt;/strong&gt;: Create a JSON or YAML configuration file in the service&amp;rsquo;s working directory.
Name the file &lt;code&gt;config.json&lt;/code&gt;, &lt;code&gt;config.yaml&lt;/code&gt;, or &lt;code&gt;config.yml&lt;/code&gt;.
Dot-separated keys are nested keys.
For example, &lt;code&gt;a.b&lt;/code&gt; becomes &lt;code&gt;{&amp;quot;a&amp;quot;: {&amp;quot;b&amp;quot;: &amp;quot;VALUE&amp;quot;}}&lt;/code&gt; in the file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can use &lt;code&gt;--help&lt;/code&gt; to see all configuration options.
For example, if you&amp;rsquo;re using 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;shell&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-shell&#34;&gt;docker run --rm grafana/grafana-image-renderer:latest server --help&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3 id=&#34;security&#34;&gt;Security&lt;/h3&gt;
&lt;p&gt;The service requires a secret token to be present in all render requests.
Set this token using &lt;code&gt;--server.auth-token&lt;/code&gt; (&lt;code&gt;AUTH_TOKEN&lt;/code&gt;).
You can specify multiple tokens and have a unique key per Grafana instance.
By default, the token used is &lt;code&gt;-&lt;/code&gt;.
In Grafana, set this to match one of the tokens with the &lt;code&gt;[rendering] renderer_token&lt;/code&gt; (&lt;code&gt;GF_RENDERING_RENDERER_TOKEN&lt;/code&gt;) configuration setting.&lt;/p&gt;
&lt;h2 id=&#34;monitor-the-image-renderer&#34;&gt;Monitor the image renderer&lt;/h2&gt;
&lt;p&gt;You can monitor the service using Prometheus or &lt;a href=&#34;/oss/mimir&#34;&gt;Grafana Mimir&lt;/a&gt; for metrics and any OpenTelemetry-compatible tracing backend for traces, such as &lt;a href=&#34;/oss/tempo&#34;&gt;Grafana Tempo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Metrics are exposed on the &lt;code&gt;/metrics&lt;/code&gt; endpoint.
Traces are sent as configured in the configuration options.
See &lt;code&gt;--help&lt;/code&gt; for trace configuration options.&lt;/p&gt;
&lt;p&gt;For a pre-built monitoring dashboard, refer to this &lt;a href=&#34;/grafana/dashboards/12203-grafana-image-renderer/&#34;&gt;example dashboard&lt;/a&gt;.&lt;/p&gt;
]]></content><description>&lt;h1 id="set-up-image-rendering">Set up image rendering&lt;/h1>
&lt;p>The &lt;a href="https://github.com/grafana/grafana-image-renderer" target="_blank" rel="noopener noreferrer">Grafana Image Renderer service&lt;/a> enables you to render Grafana panels and dashboards as PNGs, PDFs, or CSV files.&lt;/p>
&lt;p>You can export visualizations to share with stakeholders or configure automatic exports for alert notifications.&lt;/p></description></item><item><title>Set up Grafana Live</title><link>https://grafana.com/docs/grafana/v12.4/setup-grafana/set-up-grafana-live/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/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 you can use to 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 connections, based on a Pub/Sub model. The Grafana frontend subscribes on each channel to receive data that has been published in that channel. All subscriptions on a page are 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 InfluxDB line protocol format from Telegraf. These metrics are transformed into Grafana data frames and published to channels.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; When streaming data from Telegraf, ensure that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The data format is set to &lt;code&gt;influx&lt;/code&gt; in your Telegraf configuration&lt;/li&gt;
&lt;li&gt;Timestamps are in nanoseconds (Unix epoch time)&lt;/li&gt;
&lt;/ul&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;Data sent over Live channels supports multiple formats depending on the endpoint:&lt;/p&gt;
&lt;h4 id=&#34;websocket-channels&#34;&gt;WebSocket channels&lt;/h4&gt;
&lt;p&gt;Data transmitted through WebSocket channels for real-time streaming to frontend clients must be &lt;strong&gt;JSON-encoded&lt;/strong&gt;. This applies to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dashboard change notifications&lt;/li&gt;
&lt;li&gt;Data source plugin streaming (&lt;code&gt;ds&lt;/code&gt; scope channels)&lt;/li&gt;
&lt;li&gt;Custom application channels&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&#34;http-push-api&#34;&gt;HTTP Push API&lt;/h4&gt;
&lt;p&gt;The &lt;code&gt;/api/live/push/:streamId&lt;/code&gt; endpoint accepts metrics data in &lt;strong&gt;InfluxDB line protocol format&lt;/strong&gt;. This is particularly useful for streaming metrics from tools like Telegraf.&lt;/p&gt;
&lt;p&gt;The line protocol format follows this structure:&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;&amp;lt;measurement&amp;gt;[,&amp;lt;tag_key&amp;gt;=&amp;lt;tag_value&amp;gt;[,&amp;lt;tag_key&amp;gt;=&amp;lt;tag_value&amp;gt;]] &amp;lt;field_key&amp;gt;=&amp;lt;field_value&amp;gt;[,&amp;lt;field_key&amp;gt;=&amp;lt;field_value&amp;gt;] [&amp;lt;timestamp&amp;gt;]&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Timestamps must be encoded in &lt;strong&gt;nanoseconds&lt;/strong&gt; (Unix epoch time in nanoseconds).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&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;temperature,location=room1,sensor=A temp_celsius=23.5,humidity=45 1651498849000000000&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In this example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;temperature&lt;/code&gt; is the measurement name&lt;/li&gt;
&lt;li&gt;&lt;code&gt;location=room1&lt;/code&gt; and &lt;code&gt;sensor=A&lt;/code&gt; are tags&lt;/li&gt;
&lt;li&gt;&lt;code&gt;temp_celsius=23.5&lt;/code&gt; and &lt;code&gt;humidity=45&lt;/code&gt; are fields&lt;/li&gt;
&lt;li&gt;&lt;code&gt;1651498849000000000&lt;/code&gt; is the timestamp in nanoseconds&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When data is received via the HTTP Push API, it is automatically transformed into Grafana data frames and published to the appropriate channels for visualization.&lt;/p&gt;
&lt;p&gt;For more information about the InfluxDB line protocol format, refer to the &lt;a href=&#34;https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;InfluxDB line protocol documentation&lt;/a&gt;.&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 has a 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;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;Live currently does not support Redis Sentinel. We recommend using a Redis Cluster for high-availability via a k8s helm chart such as the Bitnami Redis chart which has values to provision a Redis Cluster. Grafana Live can then be pointed to the &lt;code&gt;redis-headless&lt;/code&gt; service.&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: redis-headless.grafana.svc.cluster.local:6379
   ha_engine_password: $__file{/your/redis/password/secret/mount}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&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;The Redis Live HA engine does not currently support TLS.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&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 you can use to 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/v12.4/setup-grafana/configure-docker/</link><pubDate>Fri, 03 Apr 2026 19:43:06 +0000</pubDate><guid>https://grafana.com/docs/grafana/v12.4/setup-grafana/configure-docker/</guid><content><![CDATA[

&lt;div class=&#34;admonition admonition-caution&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Caution&lt;/p&gt;&lt;p&gt;Starting with Grafana release &lt;code&gt;12.4.0&lt;/code&gt;, the &lt;code&gt;grafana/grafana-oss&lt;/code&gt; Docker Hub repository will no longer be updated.
Instead, we encourage you to use the &lt;code&gt;grafana/grafana&lt;/code&gt; Docker Hub repository. These two repositories have the same Grafana OSS docker images.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&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&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&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:&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;&lt;code&gt;grafana/grafana&lt;/code&gt; 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;p&gt;For recent releases of Grafana, there are also &lt;code&gt;minor&lt;/code&gt; version tags in the &lt;code&gt;grafana/grafana&lt;/code&gt; and &lt;code&gt;grafana/grafana-enterprise&lt;/code&gt; docker repositories. For example, if you want to always have the latest &lt;code&gt;12.1&lt;/code&gt; version, you can use &lt;code&gt;grafana/grafana-enterprise:12.1&lt;/code&gt; or &lt;code&gt;grafana/grafana-enterprise:12.1-ubuntu&lt;/code&gt;.&lt;/p&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:main&lt;/code&gt; and &lt;code&gt;grafana/grafana:main-ubuntu&lt;/code&gt;, are updated. Additionally, two new tags are created: &lt;code&gt;grafana/grafana-dev:&amp;lt;version&amp;gt;&lt;/code&gt; and &lt;code&gt;grafana/grafana-dev:&amp;lt;version&amp;gt;-ubuntu&lt;/code&gt;, where &lt;code&gt;version&lt;/code&gt; is a prerelease version of Grafana. For example, if &lt;code&gt;1234&lt;/code&gt; is the GitHub Run ID of the build, &lt;code&gt;12.2.0-1234&lt;/code&gt;. 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-dev/tags&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;grafana/grafana-dev&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To ensure stability and consistency, we strongly recommend using the &lt;code&gt;grafana/grafana-dev:&amp;lt;version&amp;gt;&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/tags/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;grafana/grafana&lt;/code&gt;&lt;/a&gt; and &lt;a href=&#34;https://hub.docker.com/r/grafana/grafana-dev/tags/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;&lt;code&gt;grafana/grafana-dev&lt;/code&gt;&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_PLUGINS_PREINSTALL&lt;/code&gt; environment variable: &lt;code&gt;GF_PLUGINS_PREINSTALL=&amp;lt;plugin ID&amp;gt;@[&amp;lt;plugin version&amp;gt;]@&amp;lt;url to plugin zip&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_PLUGINS_PREINSTALL&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_PLUGINS_PREINSTALL=custom-plugin@@http://plugin-domain.com/my-custom-plugin.zip,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;div class="admonition admonition-caution">&lt;blockquote>&lt;p class="title text-uppercase">Caution&lt;/p>&lt;p>Starting with Grafana release &lt;code>12.4.0&lt;/code>, the &lt;code>grafana/grafana-oss&lt;/code> Docker Hub repository will no longer be updated.
Instead, we encourage you to use the &lt;code>grafana/grafana&lt;/code> Docker Hub repository. These two repositories have the same Grafana OSS docker images.&lt;/p></description></item></channel></rss>