<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Usage insights on Grafana Labs</title><link>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/</link><description>Recent content in Usage insights on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v8.4/enterprise/usage-insights/index.xml" rel="self" type="application/rss+xml"/><item><title>Dashboard and data source insights</title><link>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/dashboard-datasource-insights/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/dashboard-datasource-insights/</guid><content><![CDATA[&lt;h1 id=&#34;dashboard-and-data-source-insights&#34;&gt;Dashboard and data source insights&lt;/h1&gt;
&lt;p&gt;For every dashboard and data source, you can access usage information.&lt;/p&gt;
&lt;h2 id=&#34;dashboard-insights&#34;&gt;Dashboard insights&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Available in Grafana Enterprise v7.0&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;To see dashboard usage information, go to the top bar and click &lt;strong&gt;Dashboard insights&lt;/strong&gt;.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 400px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/enterprise/dashboard_insights_button.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/enterprise/dashboard_insights_button.png&#34;data-srcset=&#34;/static/img/docs/enterprise/dashboard_insights_button.png?w=320 320w, /static/img/docs/enterprise/dashboard_insights_button.png?w=550 550w, /static/img/docs/enterprise/dashboard_insights_button.png?w=750 750w, /static/img/docs/enterprise/dashboard_insights_button.png?w=900 900w, /static/img/docs/enterprise/dashboard_insights_button.png?w=1040 1040w, /static/img/docs/enterprise/dashboard_insights_button.png?w=1240 1240w, /static/img/docs/enterprise/dashboard_insights_button.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;656&#34;height=&#34;70&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/enterprise/dashboard_insights_button.png&#34;
            alt=&#34;&#34;width=&#34;656&#34;height=&#34;70&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;Dashboard insights show the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Stats:&lt;/strong&gt; The number of daily queries and errors for the past 30 days.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Users &amp;amp; activity:&lt;/strong&gt; The daily view count for the last 30 days; last activities on the dashboard and recent users (with a limit of 20).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 400px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/enterprise/dashboard_insights_stats.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/enterprise/dashboard_insights_stats.png&#34;data-srcset=&#34;/static/img/docs/enterprise/dashboard_insights_stats.png?w=320 320w, /static/img/docs/enterprise/dashboard_insights_stats.png?w=550 550w, /static/img/docs/enterprise/dashboard_insights_stats.png?w=750 750w, /static/img/docs/enterprise/dashboard_insights_stats.png?w=900 900w, /static/img/docs/enterprise/dashboard_insights_stats.png?w=1040 1040w, /static/img/docs/enterprise/dashboard_insights_stats.png?w=1240 1240w, /static/img/docs/enterprise/dashboard_insights_stats.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;959&#34;height=&#34;812&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/enterprise/dashboard_insights_stats.png&#34;
            alt=&#34;&#34;width=&#34;959&#34;height=&#34;812&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 400px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/enterprise/dashboard_insights_users.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/enterprise/dashboard_insights_users.png&#34;data-srcset=&#34;/static/img/docs/enterprise/dashboard_insights_users.png?w=320 320w, /static/img/docs/enterprise/dashboard_insights_users.png?w=550 550w, /static/img/docs/enterprise/dashboard_insights_users.png?w=750 750w, /static/img/docs/enterprise/dashboard_insights_users.png?w=900 900w, /static/img/docs/enterprise/dashboard_insights_users.png?w=1040 1040w, /static/img/docs/enterprise/dashboard_insights_users.png?w=1240 1240w, /static/img/docs/enterprise/dashboard_insights_users.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;959&#34;height=&#34;809&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/enterprise/dashboard_insights_users.png&#34;
            alt=&#34;&#34;width=&#34;959&#34;height=&#34;809&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/p&gt;
&lt;h2 id=&#34;data-source-insights&#34;&gt;Data source insights&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Available in Grafana Enterprise v7.3&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Data source insights give you information about how a data source has been used in the past 30 days, such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Queries per day&lt;/li&gt;
&lt;li&gt;Errors per day&lt;/li&gt;
&lt;li&gt;Query load time per day (averaged in ms)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To find data source insights:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to the Data source list view.&lt;/li&gt;
&lt;li&gt;Click on a data source.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;Insights&lt;/strong&gt; tab.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 650px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/enterprise/datasource_insights.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/enterprise/datasource_insights.png&#34;data-srcset=&#34;/static/img/docs/enterprise/datasource_insights.png?w=320 320w, /static/img/docs/enterprise/datasource_insights.png?w=550 550w, /static/img/docs/enterprise/datasource_insights.png?w=750 750w, /static/img/docs/enterprise/datasource_insights.png?w=900 900w, /static/img/docs/enterprise/datasource_insights.png?w=1040 1040w, /static/img/docs/enterprise/datasource_insights.png?w=1240 1240w, /static/img/docs/enterprise/datasource_insights.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;950&#34;height=&#34;828&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/enterprise/datasource_insights.png&#34;
            alt=&#34;&#34;width=&#34;950&#34;height=&#34;828&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;
]]></content><description>&lt;h1 id="dashboard-and-data-source-insights">Dashboard and data source insights&lt;/h1>
&lt;p>For every dashboard and data source, you can access usage information.&lt;/p>
&lt;h2 id="dashboard-insights">Dashboard insights&lt;/h2>
&lt;blockquote>
&lt;p>&lt;strong>Note:&lt;/strong> Available in Grafana Enterprise v7.0+.&lt;/p>&lt;/blockquote>
&lt;p>To see dashboard usage information, go to the top bar and click &lt;strong>Dashboard insights&lt;/strong>.&lt;/p></description></item><item><title>Presence indicator</title><link>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/presence-indicator/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/presence-indicator/</guid><content><![CDATA[&lt;h1 id=&#34;presence-indicator&#34;&gt;Presence indicator&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Available in Grafana Enterprise v7.0&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When you are signed in and looking at any given dashboard, you can know who is looking at the same dashboard as you are via a presence indicator, which displays avatars of users who have interacted with the dashboard recently. The default time frame is within the past 10 minutes. To see the user&amp;rsquo;s name, hover over the user&amp;rsquo;s avatar. The avatars come from &lt;a href=&#34;https://gravatar.com&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Gravatar&lt;/a&gt; based on the user&amp;rsquo;s email.&lt;/p&gt;
&lt;p&gt;When there are more active users on a dashboard than can fit within the presence indicator, click the &lt;strong&gt;&#43;X&lt;/strong&gt; icon. Doing so opens &lt;a href=&#34;../dashboard-datasource-insights/&#34;&gt;dashboard insights&lt;/a&gt;, which contains more details about recent user activity.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 400px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/enterprise/presence_indicators.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/enterprise/presence_indicators.png&#34;data-srcset=&#34;/static/img/docs/enterprise/presence_indicators.png?w=320 320w, /static/img/docs/enterprise/presence_indicators.png?w=550 550w, /static/img/docs/enterprise/presence_indicators.png?w=750 750w, /static/img/docs/enterprise/presence_indicators.png?w=900 900w, /static/img/docs/enterprise/presence_indicators.png?w=1040 1040w, /static/img/docs/enterprise/presence_indicators.png?w=1240 1240w, /static/img/docs/enterprise/presence_indicators.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;554&#34;height=&#34;69&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/enterprise/presence_indicators.png&#34;
            alt=&#34;&#34;width=&#34;554&#34;height=&#34;69&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;To change &lt;em&gt;recent&lt;/em&gt; to something other than the past 10 minutes, edit the &lt;a href=&#34;../../../administration/configuration/&#34;&gt;configuration&lt;/a&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;[analytics.views]
# Set age for recent active users
recent_users_age = 10m&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
]]></content><description>&lt;h1 id="presence-indicator">Presence indicator&lt;/h1>
&lt;blockquote>
&lt;p>&lt;strong>Note:&lt;/strong> Available in Grafana Enterprise v7.0+.&lt;/p>&lt;/blockquote>
&lt;p>When you are signed in and looking at any given dashboard, you can know who is looking at the same dashboard as you are via a presence indicator, which displays avatars of users who have interacted with the dashboard recently. The default time frame is within the past 10 minutes. To see the user&amp;rsquo;s name, hover over the user&amp;rsquo;s avatar. The avatars come from &lt;a href="https://gravatar.com" target="_blank" rel="noopener noreferrer">Gravatar&lt;/a> based on the user&amp;rsquo;s email.&lt;/p></description></item><item><title>Sort dashboards by using insights data</title><link>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/improved-search/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/improved-search/</guid><content><![CDATA[&lt;h1 id=&#34;sort-dashboards-by-using-insights-data&#34;&gt;Sort dashboards by using insights data&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Available in Grafana Enterprise v7.0&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;In the search view, you can sort dashboards by using insights data. Doing so helps you find unused or broken dashboards or discover those that are most viewed.&lt;/p&gt;
&lt;p&gt;There are several sort options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Errors total&lt;/li&gt;
&lt;li&gt;Errors 30 days&lt;/li&gt;
&lt;li&gt;Views total&lt;/li&gt;
&lt;li&gt;Views 30 days&lt;/li&gt;
&lt;/ul&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 650px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link&#34;
        href=&#34;/static/img/docs/enterprise/improved-search-7-5.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload &#34;
          data-src=&#34;/static/img/docs/enterprise/improved-search-7-5.png&#34;data-srcset=&#34;/static/img/docs/enterprise/improved-search-7-5.png?w=320 320w, /static/img/docs/enterprise/improved-search-7-5.png?w=550 550w, /static/img/docs/enterprise/improved-search-7-5.png?w=750 750w, /static/img/docs/enterprise/improved-search-7-5.png?w=900 900w, /static/img/docs/enterprise/improved-search-7-5.png?w=1040 1040w, /static/img/docs/enterprise/improved-search-7-5.png?w=1240 1240w, /static/img/docs/enterprise/improved-search-7-5.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;&#34;width=&#34;971&#34;height=&#34;835&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/enterprise/improved-search-7-5.png&#34;
            alt=&#34;&#34;width=&#34;971&#34;height=&#34;835&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;/a&gt;&lt;/figure&gt;
]]></content><description>&lt;h1 id="sort-dashboards-by-using-insights-data">Sort dashboards by using insights data&lt;/h1>
&lt;blockquote>
&lt;p>&lt;strong>Note:&lt;/strong> Available in Grafana Enterprise v7.0+.&lt;/p>&lt;/blockquote>
&lt;p>In the search view, you can sort dashboards by using insights data. Doing so helps you find unused or broken dashboards or discover those that are most viewed.&lt;/p></description></item><item><title>Export logs of usage insights</title><link>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/export-logs/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/enterprise/usage-insights/export-logs/</guid><content><![CDATA[&lt;h1 id=&#34;export-logs-of-usage-insights&#34;&gt;Export logs of usage insights&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Available in Grafana Enterprise v7.4&#43;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;By exporting usage logs to Loki, you can directly query them and create dashboards of the information that matters to you most, such as dashboard errors, most active organizations, or your top-10 most-used queries.&lt;/p&gt;
&lt;h2 id=&#34;usage-insights-logs&#34;&gt;Usage insights logs&lt;/h2&gt;
&lt;p&gt;Usage insights logs are JSON objects that represent certain user activities, such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A user opens a dashboard.&lt;/li&gt;
&lt;li&gt;A query is sent to a data source.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;scope&#34;&gt;Scope&lt;/h3&gt;
&lt;p&gt;A log is created every time a user opens a dashboard or when a query is sent to a data source in the dashboard view. A query that is performed via Explore does not generate a log.&lt;/p&gt;
&lt;h3 id=&#34;format&#34;&gt;Format&lt;/h3&gt;
&lt;p&gt;Logs of usage insights contain the following fields, where the fields followed by * are always available, and the others depend on the logged event:&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;Field name&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;eventName&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Type of the event, which can be either &lt;code&gt;data-request&lt;/code&gt; or &lt;code&gt;dashboard-view&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;folderName&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Name of the dashboard folder.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;dashboardName&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Name of the dashboard where the event happened.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;dashboardId&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;ID of the dashboard where the event happened.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;datasourceName&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Name of the data source that was queried.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;datasourceType&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Type of the data source that was queried. For example, &lt;code&gt;prometheus&lt;/code&gt;, &lt;code&gt;elasticsearch&lt;/code&gt;, or &lt;code&gt;loki&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;datasourceId&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;ID of the data source that was queried.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;panelId&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;ID of the panel of the query.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;panelName&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Name of the panel of the query.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;error&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Error returned by the query.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;duration&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;Duration of the query.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;orgId&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;ID of the user’s organization.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;orgName&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Name of the user’s organization.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;timestamp&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;The date and time that the request was made, in Coordinated Universal Time (UTC) in &lt;a href=&#34;https://tools.ietf.org/html/rfc3339#section-5.6&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;RFC3339&lt;/a&gt; format.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;tokenId&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;ID of the user’s authentication token.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;username&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Name of the Grafana user that made the request.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;userId&lt;/code&gt;*&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;ID of the Grafana user that made the request.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;To export your logs, enable the usage insights feature and &lt;a href=&#34;../../../administration/configuration/&#34;&gt;configure&lt;/a&gt; an export location in the configuration 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;[usage_insights.export]
# Enable the usage insights export feature
enabled = true
# Storage type
storage = loki&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The options for storage type are &lt;code&gt;loki&lt;/code&gt; and &lt;code&gt;logger&lt;/code&gt; (added in Grafana Enterprise 8.2).&lt;/p&gt;
&lt;p&gt;If the storage type is set to &lt;code&gt;loki&lt;/code&gt; you&amp;rsquo;ll need to also configure Grafana
to export to a Loki ingestion server. To do this, you&amp;rsquo;ll need Loki installed.
Refer to &lt;a href=&#34;/docs/loki/latest/installation/&#34;&gt;Install Loki&lt;/a&gt; for instructions
on how to install Loki.&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;[usage_insights.export.storage.loki]
# Set the communication protocol to use with Loki (can be grpc or http)
type = grpc
# Set the address for writing logs to Loki (format must be host:port)
url = localhost:9095
# Defaults to true. If true, it establishes a secure connection to Loki
tls = true&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Using &lt;code&gt;logger&lt;/code&gt; will print usage insights to your &lt;a href=&#34;../../../administration/configuration/#log&#34;&gt;Grafana server log&lt;/a&gt;.
There is no option for configuring the &lt;code&gt;logger&lt;/code&gt; storage type.&lt;/p&gt;
&lt;h2 id=&#34;visualize-loki-usage-insights-in-grafana&#34;&gt;Visualize Loki usage insights in Grafana&lt;/h2&gt;
&lt;p&gt;If you export logs into Loki, you can build Grafana dashboards to understand your Grafana instance usage.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add Loki as a data source. Refer to &lt;a href=&#34;/tutorials/grafana-fundamentals/#6&#34;&gt;Grafana fundamentals tutorial&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Import one of the following dashboards:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;/grafana/dashboards/13785&#34;&gt;Usage insights&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/grafana/dashboards/13786&#34;&gt;Usage insights datasource details&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Play with usage insights to understand them:
&lt;ul&gt;
&lt;li&gt;In Explore, you can use the query &lt;code&gt;{datasource=&amp;quot;gdev-loki&amp;quot;,kind=&amp;quot;usage_insights&amp;quot;}&lt;/code&gt; to retrieve all logs related to your &lt;code&gt;gdev-loki&lt;/code&gt; data source.&lt;/li&gt;
&lt;li&gt;In a dashboard, you can build a table panel with the query &lt;code&gt;topk(10, sum by (error) (count_over_time({kind=&amp;quot;usage_insights&amp;quot;, datasource=&amp;quot;gdev-prometheus&amp;quot;} | json | error != &amp;quot;&amp;quot; [$__interval])))&lt;/code&gt; to display the 10 most common errors your users see using the &lt;code&gt;gdev-prometheus&lt;/code&gt; data source.&lt;/li&gt;
&lt;li&gt;In a dashboard, you can build a graph panel with the queries &lt;code&gt;sum by(host) (count_over_time({kind=&amp;quot;usage_insights&amp;quot;} | json | eventName=&amp;quot;data-request&amp;quot; | error != &amp;quot;&amp;quot; [$__interval]))&lt;/code&gt; and &lt;code&gt;sum by(host) (count_over_time({kind=&amp;quot;usage_insights&amp;quot;} | json | eventName=&amp;quot;data-request&amp;quot; | error = &amp;quot;&amp;quot; [$__interval]))&lt;/code&gt; to show the evolution of the data request count over time. Using &lt;code&gt;by (host)&lt;/code&gt; allows you to have more information for each Grafana server you have if you have set up Grafana for &lt;a href=&#34;../../../administration/set-up-for-high-availability/&#34;&gt;high availability&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="export-logs-of-usage-insights">Export logs of usage insights&lt;/h1>
&lt;blockquote>
&lt;p>&lt;strong>Note:&lt;/strong> Available in Grafana Enterprise v7.4+.&lt;/p>&lt;/blockquote>
&lt;p>By exporting usage logs to Loki, you can directly query them and create dashboards of the information that matters to you most, such as dashboard errors, most active organizations, or your top-10 most-used queries.&lt;/p></description></item></channel></rss>