<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How Alloy works on Grafana Labs</title><link>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/</link><description>Recent content in How Alloy works on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/learning-hub/intro-to-alloy/02-how-alloy-works/index.xml" rel="self" type="application/rss+xml"/><item><title>Alloy in an observability setup</title><link>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/04-collection-layer/</link><pubDate>Fri, 14 Aug 2026 09:40:11 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/04-collection-layer/</guid><content><![CDATA[&lt;h2 id=&#34;alloy-in-an-observability-setup&#34;&gt;Alloy in an observability setup&lt;/h2&gt;
&lt;p&gt;A typical observability setup has three layers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Data sources:&lt;/strong&gt; the applications and infrastructure that generate telemetry&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Collection:&lt;/strong&gt; the tools that gather and process that telemetry&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Storage and visualization:&lt;/strong&gt; the backends that store the data, and the frontends you use to query and explore it&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;alloy-runs-in-the-collection-layer&#34;&gt;Alloy runs in the collection layer&lt;/h2&gt;
&lt;p&gt;Alloy sits in the collection layer, between your data sources and your backends. Data flows from your sources, through Alloy, and on to storage.&lt;/p&gt;

&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;collection-layer.svg&#34; title=&#34;Data sources flow into the collection layer, then into storage and visualization. Alloy runs in the collection layer.&#34;&gt;
    &lt;img
      class=&#34;lazyload d-inline-block&#34;
      data-src=&#34;collection-layer.svg&#34;
      alt=&#34;Data sources flow into the collection layer, then into storage and visualization. Alloy runs in the collection layer.&#34; width=&#34;820&#34; height=&#34;300&#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;This collection layer is where you decide what telemetry to gather, how to clean it up, and where to send it.&lt;/p&gt;
]]></content><description>&lt;h2 id="alloy-in-an-observability-setup">Alloy in an observability setup&lt;/h2>
&lt;p>A typical observability setup has three layers:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Data sources:&lt;/strong> the applications and infrastructure that generate telemetry&lt;/li>
&lt;li>&lt;strong>Collection:&lt;/strong> the tools that gather and process that telemetry&lt;/li>
&lt;li>&lt;strong>Storage and visualization:&lt;/strong> the backends that store the data, and the frontends you use to query and explore it&lt;/li>
&lt;/ul>
&lt;h2 id="alloy-runs-in-the-collection-layer">Alloy runs in the collection layer&lt;/h2>
&lt;p>Alloy sits in the collection layer, between your data sources and your backends. Data flows from your sources, through Alloy, and on to storage.&lt;/p></description></item><item><title>How telemetry enters Alloy</title><link>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/05-how-telemetry-enters/</link><pubDate>Fri, 14 Aug 2026 09:40:11 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/05-how-telemetry-enters/</guid><content><![CDATA[&lt;h2 id=&#34;how-telemetry-enters-alloy&#34;&gt;How telemetry enters Alloy&lt;/h2&gt;
&lt;p&gt;Alloy gathers telemetry data by scraping, receiving pushed data, or tailing a source.&lt;/p&gt;
&lt;h3 id=&#34;scrape&#34;&gt;Scrape&lt;/h3&gt;
&lt;p&gt;Alloy opens a scheduled connection to a target and requests the current data. A common example is scraping Prometheus endpoints to pull metrics.&lt;/p&gt;
&lt;h3 id=&#34;push&#34;&gt;Push&lt;/h3&gt;
&lt;p&gt;Alloy opens a listener and passively waits for the source to send data. A common example is receiving OpenTelemetry Protocol, or OTLP, data that an application pushes to Alloy.&lt;/p&gt;
&lt;h3 id=&#34;tail&#34;&gt;Tail&lt;/h3&gt;
&lt;p&gt;Alloy watches a file on disk for new appended content and reads it incrementally. A common example is reading new lines in a log file as they are written.&lt;/p&gt;
&lt;p&gt;Which of these you use depends on the signal and the source. Alloy can also discover endpoints automatically and integrate with specialized systems.&lt;/p&gt;
]]></content><description>&lt;h2 id="how-telemetry-enters-alloy">How telemetry enters Alloy&lt;/h2>
&lt;p>Alloy gathers telemetry data by scraping, receiving pushed data, or tailing a source.&lt;/p>
&lt;h3 id="scrape">Scrape&lt;/h3>
&lt;p>Alloy opens a scheduled connection to a target and requests the current data. A common example is scraping Prometheus endpoints to pull metrics.&lt;/p></description></item><item><title>What Alloy does</title><link>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/06-what-alloy-does/</link><pubDate>Fri, 14 Aug 2026 09:40:11 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/06-what-alloy-does/</guid><content><![CDATA[&lt;h2 id=&#34;what-alloy-does&#34;&gt;What Alloy does&lt;/h2&gt;
&lt;p&gt;In the collection layer, Alloy performs three main jobs: it collects telemetry, transforms it, and sends it to your backends.&lt;/p&gt;
&lt;h3 id=&#34;collect-telemetry-data&#34;&gt;Collect telemetry data&lt;/h3&gt;
&lt;p&gt;Alloy gathers telemetry from sources in your infrastructure. In addition to scraping, receiving pushed data, or tailing a source, it can also:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Automatically find the endpoints to collect from in Kubernetes or Docker (service discovery)&lt;/li&gt;
&lt;li&gt;Integrate with specialized systems such as databases and message queues&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;transform-and-process-data&#34;&gt;Transform and process data&lt;/h3&gt;
&lt;p&gt;Before data reaches storage, Alloy can reshape it. It can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Filter out unwanted data or redact secrets&lt;/li&gt;
&lt;li&gt;Add identifying fields, often called labels, and other context&lt;/li&gt;
&lt;li&gt;Standardize attribute names across services&lt;/li&gt;
&lt;li&gt;Keep only a subset of high-volume data (sampling)&lt;/li&gt;
&lt;li&gt;Convert between formats&lt;/li&gt;
&lt;li&gt;Route different data types to different destinations&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;send-to-backends&#34;&gt;Send to backends&lt;/h3&gt;
&lt;p&gt;Alloy delivers the processed telemetry to the systems you choose:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Grafana Cloud&lt;/li&gt;
&lt;li&gt;Self-managed Grafana stack components such as Mimir, Loki, Tempo, and Pyroscope&lt;/li&gt;
&lt;li&gt;Prometheus-compatible databases&lt;/li&gt;
&lt;li&gt;OpenTelemetry-compatible backends&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can send to more than one destination from a single configuration.&lt;/p&gt;
]]></content><description>&lt;h2 id="what-alloy-does">What Alloy does&lt;/h2>
&lt;p>In the collection layer, Alloy performs three main jobs: it collects telemetry, transforms it, and sends it to your backends.&lt;/p>
&lt;h3 id="collect-telemetry-data">Collect telemetry data&lt;/h3>
&lt;p>Alloy gathers telemetry from sources in your infrastructure. In addition to scraping, receiving pushed data, or tailing a source, it can also:&lt;/p></description></item><item><title>Resources</title><link>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/07-resources/</link><pubDate>Fri, 14 Aug 2026 09:40:11 -0500</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-alloy/02-how-alloy-works/07-resources/</guid><content><![CDATA[&lt;h2 id=&#34;resources&#34;&gt;Resources&lt;/h2&gt;
&lt;p&gt;Use these resources to learn more about what Alloy is and how it works.&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/alloy/latest/introduction/&#34;&gt;Introduction to Grafana Alloy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/alloy/latest/introduction/why-alloy/&#34;&gt;Why Grafana Alloy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/alloy/latest/introduction/how-alloy-works/&#34;&gt;How Grafana Alloy works&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;video&#34;&gt;Video&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://www.youtube.com/playlist?list=PLDGkOdUX1UjoUmd6Z-lKgGaGzmZvYxRWs&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Alloy for Beginners series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h2 id="resources">Resources&lt;/h2>
&lt;p>Use these resources to learn more about what Alloy is and how it works.&lt;/p>
&lt;h2 id="documentation">Documentation&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="/docs/alloy/latest/introduction/">Introduction to Grafana Alloy&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/alloy/latest/introduction/why-alloy/">Why Grafana Alloy&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/alloy/latest/introduction/how-alloy-works/">How Grafana Alloy works&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="video">Video&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://www.youtube.com/playlist?list=PLDGkOdUX1UjoUmd6Z-lKgGaGzmZvYxRWs" target="_blank" rel="noopener noreferrer">Grafana Alloy for Beginners series&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>