<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Query with data sources on Grafana Labs</title><link>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/</link><description>Recent content in Query with data sources on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/learning-hub/intro-to-cp-olly/03-data-sources/index.xml" rel="self" type="application/rss+xml"/><item><title>How data source queries work</title><link>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/21-how-data-source-queries-work/</link><pubDate>Fri, 02 Oct 2026 08:47:49 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/21-how-data-source-queries-work/</guid><content><![CDATA[&lt;h1 id=&#34;how-data-source-queries-work&#34;&gt;How data source queries work&lt;/h1&gt;

&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;cp-olly-direct-query-light.svg&#34; title=&#34;Data source architecture: Grafana queries cloud provider APIs in real-time&#34;&gt;
    &lt;img
      
      
      class=&#34;d-inline-block&#34;
      src=&#34;cp-olly-direct-query-light.svg&#34;
      
      alt=&#34;Data source architecture: Grafana queries cloud provider APIs in real-time&#34; width=&#34;900&#34; height=&#34;340&#34;/&gt;
    &lt;div class=&#34;learning-hub-image__zoom&#34;&gt;
      &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
        &lt;path d=&#34;M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
        &lt;path d=&#34;M10 7V13M7 10H13&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;/&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/a&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;Three of these data sources ship with Grafana; Google Cloud Logging is installed from the plugin catalog. They&amp;rsquo;re not part of the Cloud Provider Observability product. This section covers them because they&amp;rsquo;re another way to see your cloud data in Grafana.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;the-query-flow&#34;&gt;The query flow&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Configure cloud provider credentials in Grafana.&lt;/li&gt;
&lt;li&gt;Your data stays in CloudWatch, Azure Monitor, or Cloud Monitoring.&lt;/li&gt;
&lt;li&gt;Grafana queries the cloud API when a panel loads or an alert rule evaluates, unless query caching is enabled.&lt;/li&gt;
&lt;li&gt;Nothing is copied or stored again.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;when-to-choose-this-approach&#34;&gt;When to choose this approach&lt;/h2&gt;
&lt;p&gt;A data source fits when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You want to avoid Grafana Cloud ingestion and storage cost&lt;/li&gt;
&lt;li&gt;You&amp;rsquo;re comfortable with each cloud&amp;rsquo;s query editor (visual builders and, for GCP, PromQL are available)&lt;/li&gt;
&lt;li&gt;You want to keep setup simple&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want prebuilt dashboards and alerts for all three providers, or one query language across clouds, store the data with Cloud Provider Observability as described in &lt;a href=&#34;/docs/learning-hub/intro-to-cp-olly/00-intro/02-two-approaches/&#34;&gt;Two options&lt;/a&gt;. Storing the data means dashboards and alerts query Grafana Cloud instead of the provider API; scrape jobs still call the provider API on a schedule.&lt;/p&gt;
]]></content><description>&lt;h1 id="how-data-source-queries-work">How data source queries work&lt;/h1>
&lt;div class="learning-hub-image">
&lt;a href="cp-olly-direct-query-light.svg" title="Data source architecture: Grafana queries cloud provider APIs in real-time">
&lt;img
class="d-inline-block"
src="cp-olly-direct-query-light.svg"
alt="Data source architecture: Grafana queries cloud provider APIs in real-time" width="900" height="340"/>
&lt;div class="learning-hub-image__zoom">
&lt;svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
&lt;path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
&lt;path d="M10 7V13M7 10H13" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
&lt;/svg>
&lt;/div>
&lt;/a>
&lt;/div>
&lt;div class="admonition admonition-note">&lt;blockquote>&lt;p class="title text-uppercase">Note&lt;/p></description></item><item><title>AWS CloudWatch data source</title><link>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/22-aws-cloudwatch-data-source/</link><pubDate>Fri, 02 Oct 2026 08:47:49 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/22-aws-cloudwatch-data-source/</guid><content><![CDATA[&lt;h1 id=&#34;aws-cloudwatch-data-source&#34;&gt;AWS CloudWatch data source&lt;/h1&gt;

&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;cp-olly-aws-cloudwatch-ds-light.svg&#34; title=&#34;AWS CloudWatch data source: Query CloudWatch metrics and logs directly from Grafana&#34;&gt;
    &lt;img
      
      
      class=&#34;d-inline-block&#34;
      src=&#34;cp-olly-aws-cloudwatch-ds-light.svg&#34;
      
      alt=&#34;AWS CloudWatch data source: Query CloudWatch metrics and logs directly from Grafana&#34; width=&#34;800&#34; height=&#34;280&#34;/&gt;
    &lt;div class=&#34;learning-hub-image__zoom&#34;&gt;
      &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
        &lt;path d=&#34;M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
        &lt;path d=&#34;M10 7V13M7 10H13&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;/&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;Provide IAM credentials: access keys, an assumed role, or, in Grafana Cloud, &lt;strong&gt;Grafana Assume Role&lt;/strong&gt;, which uses an IAM role that trusts Grafana&amp;rsquo;s AWS account. Once connected, you can query both metrics and logs. Build a dashboard that shows EC2 CPU, Lambda invocations, and RDS connections together, all pulling live from CloudWatch. Cross-account observability uses CloudWatch&amp;rsquo;s monitoring-account feature; alternatively, configure one data source per account.&lt;/p&gt;
&lt;h2 id=&#34;what-you-get&#34;&gt;What you get&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Metrics and logs in one source&lt;/li&gt;
&lt;li&gt;Cross-account and cross-region&lt;/li&gt;
&lt;li&gt;Metric math and statistics&lt;/li&gt;
&lt;li&gt;Template variables&lt;/li&gt;
&lt;li&gt;Logs Insights queries&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;considerations&#34;&gt;Considerations&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;CloudWatch API costs per query&lt;/li&gt;
&lt;li&gt;CloudWatch query language&lt;/li&gt;
&lt;li&gt;API latency affects dashboards&lt;/li&gt;
&lt;li&gt;Rate limits with many panels&lt;/li&gt;
&lt;li&gt;Alert evaluation calls the API. A query that times out returns an error&lt;/li&gt;
&lt;li&gt;Private resources are reached from Grafana Cloud with Private data source connect&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;documentation&#34;&gt;Documentation&lt;/h2&gt;
&lt;p&gt;View the &lt;a href=&#34;/docs/grafana-cloud/connect-externally-hosted/data-sources/aws-cloudwatch/&#34;&gt;CloudWatch data source&lt;/a&gt; documentation.&lt;/p&gt;
]]></content><description>&lt;h1 id="aws-cloudwatch-data-source">AWS CloudWatch data source&lt;/h1>
&lt;div class="learning-hub-image">
&lt;a href="cp-olly-aws-cloudwatch-ds-light.svg" title="AWS CloudWatch data source: Query CloudWatch metrics and logs directly from Grafana">
&lt;img
class="d-inline-block"
src="cp-olly-aws-cloudwatch-ds-light.svg"
alt="AWS CloudWatch data source: Query CloudWatch metrics and logs directly from Grafana" width="800" height="280"/>
&lt;div class="learning-hub-image__zoom">
&lt;svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
&lt;path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
&lt;path d="M10 7V13M7 10H13" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
&lt;/svg>
&lt;/div>
&lt;/a>
&lt;/div>
&lt;p>Provide IAM credentials: access keys, an assumed role, or, in Grafana Cloud, &lt;strong>Grafana Assume Role&lt;/strong>, which uses an IAM role that trusts Grafana&amp;rsquo;s AWS account. Once connected, you can query both metrics and logs. Build a dashboard that shows EC2 CPU, Lambda invocations, and RDS connections together, all pulling live from CloudWatch. Cross-account observability uses CloudWatch&amp;rsquo;s monitoring-account feature; alternatively, configure one data source per account.&lt;/p></description></item><item><title>Azure Monitor data source</title><link>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/23-azure-monitor-data-source/</link><pubDate>Fri, 02 Oct 2026 08:47:49 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/23-azure-monitor-data-source/</guid><content><![CDATA[&lt;h1 id=&#34;azure-monitor-data-source&#34;&gt;Azure Monitor data source&lt;/h1&gt;

&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;cp-olly-azure-monitor-ds-light.svg&#34; title=&#34;Azure Monitor data source: Query metrics, Log Analytics, and App Insights from Grafana&#34;&gt;
    &lt;img
      
      
      class=&#34;d-inline-block&#34;
      src=&#34;cp-olly-azure-monitor-ds-light.svg&#34;
      
      alt=&#34;Azure Monitor data source: Query metrics, Log Analytics, and App Insights from Grafana&#34; width=&#34;800&#34; height=&#34;280&#34;/&gt;
    &lt;div class=&#34;learning-hub-image__zoom&#34;&gt;
      &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
        &lt;path d=&#34;M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
        &lt;path d=&#34;M10 7V13M7 10H13&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;/&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;One plugin gives you Azure metrics, Log Analytics workspaces, Application Insights, and Azure Resource Graph. In Grafana Cloud, authenticate with a Microsoft Entra ID app registration (a service principal). Managed identity and workload identity are only for Grafana you host in Azure. Logs use KQL (Kusto Query Language); a logs query builder is also available. Multi-subscription support lets you build dashboards that span your Azure estate.&lt;/p&gt;
&lt;h2 id=&#34;what-you-get&#34;&gt;What you get&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Metrics and Log Analytics in one plugin&lt;/li&gt;
&lt;li&gt;Application Insights integration&lt;/li&gt;
&lt;li&gt;Resource graph for discovery&lt;/li&gt;
&lt;li&gt;Multi-subscription support&lt;/li&gt;
&lt;li&gt;Template variables&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;considerations&#34;&gt;Considerations&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;KQL, or the logs query builder, for log queries&lt;/li&gt;
&lt;li&gt;Azure API latency&lt;/li&gt;
&lt;li&gt;Alert evaluation calls the API&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;documentation&#34;&gt;Documentation&lt;/h2&gt;
&lt;p&gt;View the &lt;a href=&#34;/docs/grafana/latest/datasources/azure-monitor/&#34;&gt;Azure Monitor data source&lt;/a&gt; documentation.&lt;/p&gt;
]]></content><description>&lt;h1 id="azure-monitor-data-source">Azure Monitor data source&lt;/h1>
&lt;div class="learning-hub-image">
&lt;a href="cp-olly-azure-monitor-ds-light.svg" title="Azure Monitor data source: Query metrics, Log Analytics, and App Insights from Grafana">
&lt;img
class="d-inline-block"
src="cp-olly-azure-monitor-ds-light.svg"
alt="Azure Monitor data source: Query metrics, Log Analytics, and App Insights from Grafana" width="800" height="280"/>
&lt;div class="learning-hub-image__zoom">
&lt;svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
&lt;path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
&lt;path d="M10 7V13M7 10H13" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
&lt;/svg>
&lt;/div>
&lt;/a>
&lt;/div>
&lt;p>One plugin gives you Azure metrics, Log Analytics workspaces, Application Insights, and Azure Resource Graph. In Grafana Cloud, authenticate with a Microsoft Entra ID app registration (a service principal). Managed identity and workload identity are only for Grafana you host in Azure. Logs use KQL (Kusto Query Language); a logs query builder is also available. Multi-subscription support lets you build dashboards that span your Azure estate.&lt;/p></description></item><item><title>GCP Cloud Monitoring data source</title><link>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/24-gcp-cloud-monitoring-data-source/</link><pubDate>Fri, 02 Oct 2026 08:47:49 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/24-gcp-cloud-monitoring-data-source/</guid><content><![CDATA[&lt;h1 id=&#34;gcp-cloud-monitoring-data-source&#34;&gt;GCP Cloud Monitoring data source&lt;/h1&gt;

&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;cp-olly-gcp-monitoring-ds-light.svg&#34; title=&#34;GCP Cloud Monitoring data source: Query GCP metrics directly from Grafana&#34;&gt;
    &lt;img
      
      
      class=&#34;d-inline-block&#34;
      src=&#34;cp-olly-gcp-monitoring-ds-light.svg&#34;
      
      alt=&#34;GCP Cloud Monitoring data source: Query GCP metrics directly from Grafana&#34; width=&#34;800&#34; height=&#34;280&#34;/&gt;
    &lt;div class=&#34;learning-hub-image__zoom&#34;&gt;
      &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
        &lt;path d=&#34;M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
        &lt;path d=&#34;M10 7V13M7 10H13&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;/&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;Authenticate with a service account JSON key, the VM&amp;rsquo;s service account when Grafana runs on Compute Engine, or (Grafana Cloud only) Workload Identity Federation with your OIDC provider. The plugin supports PromQL, Monitoring Query Language (MQL), and a visual query builder. For multi-project setups, grant your service account permissions across the projects and query them all from one Grafana instance.&lt;/p&gt;
&lt;h2 id=&#34;what-you-get&#34;&gt;What you get&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;All GCP service metrics&lt;/li&gt;
&lt;li&gt;PromQL, MQL, and visual builder query modes&lt;/li&gt;
&lt;li&gt;Alignment and aggregation&lt;/li&gt;
&lt;li&gt;Template variables&lt;/li&gt;
&lt;li&gt;Label filtering&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;considerations&#34;&gt;Considerations&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;API latency&lt;/li&gt;
&lt;li&gt;Per-project authentication, typically&lt;/li&gt;
&lt;li&gt;Alert evaluation calls the API&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;documentation&#34;&gt;Documentation&lt;/h2&gt;
&lt;p&gt;View the &lt;a href=&#34;/docs/grafana/latest/datasources/google-cloud-monitoring/&#34;&gt;Cloud Monitoring data source&lt;/a&gt; documentation.&lt;/p&gt;
]]></content><description>&lt;h1 id="gcp-cloud-monitoring-data-source">GCP Cloud Monitoring data source&lt;/h1>
&lt;div class="learning-hub-image">
&lt;a href="cp-olly-gcp-monitoring-ds-light.svg" title="GCP Cloud Monitoring data source: Query GCP metrics directly from Grafana">
&lt;img
class="d-inline-block"
src="cp-olly-gcp-monitoring-ds-light.svg"
alt="GCP Cloud Monitoring data source: Query GCP metrics directly from Grafana" width="800" height="280"/>
&lt;div class="learning-hub-image__zoom">
&lt;svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
&lt;path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
&lt;path d="M10 7V13M7 10H13" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
&lt;/svg>
&lt;/div>
&lt;/a>
&lt;/div>
&lt;p>Authenticate with a service account JSON key, the VM&amp;rsquo;s service account when Grafana runs on Compute Engine, or (Grafana Cloud only) Workload Identity Federation with your OIDC provider. The plugin supports PromQL, Monitoring Query Language (MQL), and a visual query builder. For multi-project setups, grant your service account permissions across the projects and query them all from one Grafana instance.&lt;/p></description></item><item><title>GCP Cloud Logging data source</title><link>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/25-gcp-cloud-logging-data-source/</link><pubDate>Fri, 02 Oct 2026 08:47:49 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/25-gcp-cloud-logging-data-source/</guid><content><![CDATA[&lt;h1 id=&#34;gcp-cloud-logging-data-source&#34;&gt;GCP Cloud Logging data source&lt;/h1&gt;

&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;cp-olly-gcp-logging-ds-light.svg&#34; title=&#34;GCP Cloud Logging data source: Query GCP logs directly from Grafana&#34;&gt;
    &lt;img
      
      
      class=&#34;d-inline-block&#34;
      src=&#34;cp-olly-gcp-logging-ds-light.svg&#34;
      
      alt=&#34;GCP Cloud Logging data source: Query GCP logs directly from Grafana&#34; width=&#34;800&#34; height=&#34;280&#34;/&gt;
    &lt;div class=&#34;learning-hub-image__zoom&#34;&gt;
      &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
        &lt;path d=&#34;M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
        &lt;path d=&#34;M10 7V13M7 10H13&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;/&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;Authenticate with a service account JSON key, the VM&amp;rsquo;s service account when Grafana runs on Compute Engine, or (Grafana Cloud only) Workload Identity Federation with your OIDC provider. You write queries in Cloud Logging&amp;rsquo;s query language. GCP uses two separate data sources. Configure Cloud Monitoring for metrics and Cloud Logging for logs. The same service account can serve both if you grant it the Monitoring Viewer, Logs Viewer, and Logs View Accessor roles and enable the Cloud Resource Manager API.&lt;/p&gt;
&lt;h2 id=&#34;what-you-get&#34;&gt;What you get&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;GCP service logs&lt;/li&gt;
&lt;li&gt;Filter by project and bucket&lt;/li&gt;
&lt;li&gt;Template variables&lt;/li&gt;
&lt;li&gt;Logs-to-traces&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;considerations&#34;&gt;Considerations&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Cloud Logging query syntax&lt;/li&gt;
&lt;li&gt;API latency&lt;/li&gt;
&lt;li&gt;Separate from metrics data source&lt;/li&gt;
&lt;li&gt;Per-project authentication, typically&lt;/li&gt;
&lt;li&gt;No alerting on this data source; use log-based metrics with the Cloud Monitoring data source&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;documentation&#34;&gt;Documentation&lt;/h2&gt;
&lt;p&gt;View the &lt;a href=&#34;/grafana/plugins/googlecloud-logging-datasource/&#34;&gt;Cloud Logging data source&lt;/a&gt; documentation.&lt;/p&gt;
]]></content><description>&lt;h1 id="gcp-cloud-logging-data-source">GCP Cloud Logging data source&lt;/h1>
&lt;div class="learning-hub-image">
&lt;a href="cp-olly-gcp-logging-ds-light.svg" title="GCP Cloud Logging data source: Query GCP logs directly from Grafana">
&lt;img
class="d-inline-block"
src="cp-olly-gcp-logging-ds-light.svg"
alt="GCP Cloud Logging data source: Query GCP logs directly from Grafana" width="800" height="280"/>
&lt;div class="learning-hub-image__zoom">
&lt;svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
&lt;path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
&lt;path d="M10 7V13M7 10H13" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
&lt;/svg>
&lt;/div>
&lt;/a>
&lt;/div>
&lt;p>Authenticate with a service account JSON key, the VM&amp;rsquo;s service account when Grafana runs on Compute Engine, or (Grafana Cloud only) Workload Identity Federation with your OIDC provider. You write queries in Cloud Logging&amp;rsquo;s query language. GCP uses two separate data sources. Configure Cloud Monitoring for metrics and Cloud Logging for logs. The same service account can serve both if you grant it the Monitoring Viewer, Logs Viewer, and Logs View Accessor roles and enable the Cloud Resource Manager API.&lt;/p></description></item><item><title>Data source resources</title><link>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/26-data-source-resources/</link><pubDate>Fri, 02 Oct 2026 08:47:49 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-cp-olly/03-data-sources/26-data-source-resources/</guid><content><![CDATA[&lt;h1 id=&#34;resources&#34;&gt;Resources&lt;/h1&gt;
&lt;p&gt;These docs cover setup and query syntax for each data source in this section.&lt;/p&gt;
&lt;h2 id=&#34;documentation&#34;&gt;Documentation&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana/latest/datasources/&#34;&gt;Grafana data sources&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana/latest/datasources/aws-cloudwatch/&#34;&gt;AWS CloudWatch data source&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana/latest/datasources/azure-monitor/&#34;&gt;Azure Monitor data source&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana/latest/datasources/google-cloud-monitoring/&#34;&gt;GCP Cloud Monitoring data source&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/grafana/plugins/googlecloud-logging-datasource/&#34;&gt;GCP Cloud Logging data source&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;community&#34;&gt;Community&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://community.grafana.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Community Forums&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://slack.grafana.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Slack&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="resources">Resources&lt;/h1>
&lt;p>These docs cover setup and query syntax for each data source in this section.&lt;/p>
&lt;h2 id="documentation">Documentation&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="/docs/grafana/latest/datasources/">Grafana data sources&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana/latest/datasources/aws-cloudwatch/">AWS CloudWatch data source&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana/latest/datasources/azure-monitor/">Azure Monitor data source&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana/latest/datasources/google-cloud-monitoring/">GCP Cloud Monitoring data source&lt;/a>&lt;/li>
&lt;li>&lt;a href="/grafana/plugins/googlecloud-logging-datasource/">GCP Cloud Logging data source&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="community">Community&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://community.grafana.com/" target="_blank" rel="noopener noreferrer">Grafana Community Forums&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://slack.grafana.com/" target="_blank" rel="noopener noreferrer">Grafana Slack&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>