<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Install Grafana Alloy on Grafana Labs</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/</link><description>Recent content in Install Grafana Alloy on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/alloy/v1.15/set-up/install/index.xml" rel="self" type="application/rss+xml"/><item><title>Install Grafana Alloy on Linux</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/linux/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/linux/</guid><content><![CDATA[&lt;h1 id=&#34;install-grafana-alloy-on-linux&#34;&gt;Install Grafana Alloy on Linux&lt;/h1&gt;

&lt;Box backgroundColor=&#34;primary&#34; borderColor=&#34;strong&#34; borderStyle=&#34;solid&#34; padding=&#34;2&#34;&gt;
  &lt;Grid columns=&#34;2&#34; gap=&#34;2&#34;&gt;
    &lt;div&gt;
      &lt;h4&gt;Start your learning experience with Grafana Learning Paths&lt;/h4&gt;
      &lt;p&gt;Grafana Learning Paths provide a clear, structured path that leads you from beginner concepts to advanced use cases. Learn about this Grafana feature on &lt;a href=&#34;/docs/learning-journeys/linux-server-integration/&#34;&gt;Monitor a Linux server in Grafana Cloud&lt;/a&gt;.&lt;/p&gt;
      &lt;div&gt;
        &lt;a class=&#34;btn btn--primary arrow&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34; href=&#34;https://grafana.com/docs/learning-journeys/linux-server-integration/&#34;&gt;Start learning&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;img src=&#34;/media/docs/learning-journey/map.svg&#34; width=&#34;228&#34; height=&#34;182&#34; alt=&#34;Start your learning experience with Grafana Learning Paths&#34;&gt;
    &lt;/div&gt;
  &lt;/Grid&gt;
&lt;/Box&gt;

&lt;p&gt;You can install Alloy as a systemd service on Linux.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;p&gt;Some Debian-based cloud Virtual Machines don&amp;rsquo;t have GPG installed by default.
To install GPG in your Linux Virtual Machine, run the following command in a terminal window.&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;sudo apt install gpg&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;install&#34;&gt;Install&lt;/h2&gt;
&lt;p&gt;To install Alloy on Linux, run the following commands in a terminal window.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Import the GPG key and add the Grafana package repository.&lt;/p&gt;



  

  

  






  

  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;debian-ubuntu&amp;#34;,&amp;#34;rhel-fedora&amp;#34;,&amp;#34;suse-opensuse&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;debian-ubuntu&#39; }&#34; @click=&#34;$store.code.language = &#39;debian-ubuntu&#39;&#34;&gt;
              &lt;span&gt;Debian-Ubuntu&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;rhel-fedora&#39; }&#34; @click=&#34;$store.code.language = &#39;rhel-fedora&#39;&#34;&gt;
              &lt;span&gt;RHEL-Fedora&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;suse-opensuse&#39; }&#34; @click=&#34;$store.code.language = &#39;suse-opensuse&#39;&#34;&gt;
              &lt;span&gt;SUSE-openSUSE&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;Debian-Ubuntu&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-debian-ubuntu&#34;&gt;sudo mkdir -p /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/grafana.asc https://apt.grafana.com/gpg-full.key
sudo chmod 644 /etc/apt/keyrings/grafana.asc
echo &amp;#34;deb [signed-by=/etc/apt/keyrings/grafana.asc] https://apt.grafana.com stable main&amp;#34; | sudo tee /etc/apt/sources.list.d/grafana.list&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;RHEL-Fedora&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-rhel-fedora&#34;&gt;wget -q -O gpg.key https://rpm.grafana.com/gpg.key
sudo rpm --import gpg.key
echo -e &amp;#39;[grafana]\nname=grafana\nbaseurl=https://rpm.grafana.com\nrepo_gpgcheck=1\nenabled=1\ngpgcheck=1\ngpgkey=https://rpm.grafana.com/gpg.key\nsslverify=1\nsslcacert=/etc/pki/tls/certs/ca-bundle.crt&amp;#39; | sudo tee /etc/yum.repos.d/grafana.repo&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;SUSE-openSUSE&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-suse-opensuse&#34;&gt;wget -q -O gpg.key https://rpm.grafana.com/gpg.key
sudo rpm --import gpg.key
sudo zypper addrepo https://rpm.grafana.com grafana&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update the repositories.&lt;/p&gt;



  

  

  






  

  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;debian-ubuntu&amp;#34;,&amp;#34;rhel-fedora&amp;#34;,&amp;#34;suse-opensuse&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;debian-ubuntu&#39; }&#34; @click=&#34;$store.code.language = &#39;debian-ubuntu&#39;&#34;&gt;
              &lt;span&gt;Debian-Ubuntu&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;rhel-fedora&#39; }&#34; @click=&#34;$store.code.language = &#39;rhel-fedora&#39;&#34;&gt;
              &lt;span&gt;RHEL-Fedora&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;suse-opensuse&#39; }&#34; @click=&#34;$store.code.language = &#39;suse-opensuse&#39;&#34;&gt;
              &lt;span&gt;SUSE-openSUSE&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;Debian-Ubuntu&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-debian-ubuntu&#34;&gt;sudo apt-get update&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;RHEL-Fedora&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-rhel-fedora&#34;&gt;yum update&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;SUSE-openSUSE&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-suse-opensuse&#34;&gt;sudo zypper update&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Alloy.&lt;/p&gt;



  

  

  






  

  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;debian-ubuntu&amp;#34;,&amp;#34;rhel-fedora&amp;#34;,&amp;#34;suse-opensuse&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;debian-ubuntu&#39; }&#34; @click=&#34;$store.code.language = &#39;debian-ubuntu&#39;&#34;&gt;
              &lt;span&gt;Debian-Ubuntu&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;rhel-fedora&#39; }&#34; @click=&#34;$store.code.language = &#39;rhel-fedora&#39;&#34;&gt;
              &lt;span&gt;RHEL-Fedora&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;suse-opensuse&#39; }&#34; @click=&#34;$store.code.language = &#39;suse-opensuse&#39;&#34;&gt;
              &lt;span&gt;SUSE-openSUSE&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;Debian-Ubuntu&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-debian-ubuntu&#34;&gt;sudo apt-get install alloy&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;RHEL-Fedora&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-rhel-fedora&#34;&gt;sudo dnf install alloy&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;SUSE-openSUSE&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-suse-opensuse&#34;&gt;sudo zypper -r grafana install alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;uninstall&#34;&gt;Uninstall&lt;/h2&gt;
&lt;p&gt;To uninstall Alloy on Linux, run the following commands in a terminal window.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Stop the systemd service for Alloy.&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;All-distros&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-all-distros&#34;&gt;sudo systemctl stop alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Uninstall Alloy.&lt;/p&gt;



  

  

  






  

  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;debian-ubuntu&amp;#34;,&amp;#34;rhel-fedora&amp;#34;,&amp;#34;suse-opensuse&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;debian-ubuntu&#39; }&#34; @click=&#34;$store.code.language = &#39;debian-ubuntu&#39;&#34;&gt;
              &lt;span&gt;Debian-Ubuntu&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;rhel-fedora&#39; }&#34; @click=&#34;$store.code.language = &#39;rhel-fedora&#39;&#34;&gt;
              &lt;span&gt;RHEL-Fedora&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;suse-opensuse&#39; }&#34; @click=&#34;$store.code.language = &#39;suse-opensuse&#39;&#34;&gt;
              &lt;span&gt;SUSE-openSUSE&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;Debian-Ubuntu&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-debian-ubuntu&#34;&gt;sudo apt-get remove alloy&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;RHEL-Fedora&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-rhel-fedora&#34;&gt;sudo dnf remove alloy&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;SUSE-openSUSE&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-suse-opensuse&#34;&gt;sudo zypper remove alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Optional: Remove the Grafana repository.&lt;/p&gt;



  

  

  






  

  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;debian-ubuntu&amp;#34;,&amp;#34;rhel-fedora&amp;#34;,&amp;#34;suse-opensuse&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;debian-ubuntu&#39; }&#34; @click=&#34;$store.code.language = &#39;debian-ubuntu&#39;&#34;&gt;
              &lt;span&gt;Debian-Ubuntu&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;rhel-fedora&#39; }&#34; @click=&#34;$store.code.language = &#39;rhel-fedora&#39;&#34;&gt;
              &lt;span&gt;RHEL-Fedora&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;suse-opensuse&#39; }&#34; @click=&#34;$store.code.language = &#39;suse-opensuse&#39;&#34;&gt;
              &lt;span&gt;SUSE-openSUSE&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;Debian-Ubuntu&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-debian-ubuntu&#34;&gt;sudo rm -i /etc/apt/sources.list.d/grafana.list&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;RHEL-Fedora&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-rhel-fedora&#34;&gt;sudo rm -i /etc/yum.repos.d/grafana.repo&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;SUSE-openSUSE&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-suse-opensuse&#34;&gt;sudo zypper removerepo grafana&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../run/linux/&#34;&gt;Run Alloy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/linux/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-grafana-alloy-on-linux">Install Grafana Alloy on Linux&lt;/h1>
&lt;Box backgroundColor="primary" borderColor="strong" borderStyle="solid" padding="2">
&lt;Grid columns="2" gap="2">
&lt;div>
&lt;h4>Start your learning experience with Grafana Learning Paths&lt;/h4>
&lt;p>Grafana Learning Paths provide a clear, structured path that leads you from beginner concepts to advanced use cases. Learn about this Grafana feature on &lt;a href="/docs/learning-journeys/linux-server-integration/">Monitor a Linux server in Grafana Cloud&lt;/a>.&lt;/p></description></item><item><title>Install Grafana Alloy on macOS</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/macos/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/macos/</guid><content><![CDATA[&lt;h1 id=&#34;install-grafana-alloy-on-macos&#34;&gt;Install Grafana Alloy on macOS&lt;/h1&gt;

&lt;Box backgroundColor=&#34;primary&#34; borderColor=&#34;strong&#34; borderStyle=&#34;solid&#34; padding=&#34;2&#34;&gt;
  &lt;Grid columns=&#34;2&#34; gap=&#34;2&#34;&gt;
    &lt;div&gt;
      &lt;h4&gt;Start your learning experience with Grafana Learning Paths&lt;/h4&gt;
      &lt;p&gt;Grafana Learning Paths provide a clear, structured path that leads you from beginner concepts to advanced use cases. Learn about this Grafana feature on &lt;a href=&#34;/docs/learning-journeys/macos-integration/&#34;&gt;Monitor a macOS system in Grafana Cloud&lt;/a&gt;.&lt;/p&gt;
      &lt;div&gt;
        &lt;a class=&#34;btn btn--primary arrow&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34; href=&#34;https://grafana.com/docs/learning-journeys/macos-integration/&#34;&gt;Start learning&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;img src=&#34;/media/docs/learning-journey/map.svg&#34; width=&#34;228&#34; height=&#34;182&#34; alt=&#34;Start your learning experience with Grafana Learning Paths&#34;&gt;
    &lt;/div&gt;
  &lt;/Grid&gt;
&lt;/Box&gt;

&lt;p&gt;You can install Alloy on macOS with Homebrew.&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 default prefix for Homebrew on Intel is &lt;code&gt;/usr/local&lt;/code&gt;.
The default prefix for Homebrew on Apple Silicon is &lt;code&gt;/opt/Homebrew&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To verify the default prefix for Homebrew on your computer, open a terminal window and type &lt;code&gt;brew --prefix&lt;/code&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;ul&gt;
&lt;li&gt;Install &lt;a href=&#34;https://brew.sh&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Homebrew&lt;/a&gt; on your computer.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;install&#34;&gt;Install&lt;/h2&gt;
&lt;p&gt;To install Alloy on macOS, run the following commands in a terminal window.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Add the Grafana Homebrew tap:&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;brew tap grafana/grafana&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Alloy:&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;brew install grafana/grafana/alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;upgrade&#34;&gt;Upgrade&lt;/h2&gt;
&lt;p&gt;To upgrade Alloy on macOS, run the following commands in a terminal window.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Upgrade Alloy:&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;brew upgrade grafana/grafana/alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart Alloy:&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;brew services restart grafana/grafana/alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;uninstall&#34;&gt;Uninstall&lt;/h2&gt;
&lt;p&gt;To uninstall Alloy on macOS, run the following command in a terminal window:&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;brew uninstall grafana/grafana/alloy&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;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../run/macos/&#34;&gt;Run Alloy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/macos/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-grafana-alloy-on-macos">Install Grafana Alloy on macOS&lt;/h1>
&lt;Box backgroundColor="primary" borderColor="strong" borderStyle="solid" padding="2">
&lt;Grid columns="2" gap="2">
&lt;div>
&lt;h4>Start your learning experience with Grafana Learning Paths&lt;/h4>
&lt;p>Grafana Learning Paths provide a clear, structured path that leads you from beginner concepts to advanced use cases. Learn about this Grafana feature on &lt;a href="/docs/learning-journeys/macos-integration/">Monitor a macOS system in Grafana Cloud&lt;/a>.&lt;/p></description></item><item><title>Install Grafana Alloy on Windows</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/windows/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/windows/</guid><content><![CDATA[&lt;h1 id=&#34;install-grafana-alloy-on-windows&#34;&gt;Install Grafana Alloy on Windows&lt;/h1&gt;
&lt;p&gt;You can install Alloy on Windows as a standard graphical install, a WinGet install, or a silent install.&lt;/p&gt;
&lt;h2 id=&#34;standard-graphical-install&#34;&gt;Standard graphical install&lt;/h2&gt;
&lt;p&gt;To do a standard graphical install of Alloy on Windows, perform the following steps.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to the &lt;a href=&#34;https://github.com/grafana/alloy/releases&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;releases page&lt;/a&gt; on GitHub.&lt;/li&gt;
&lt;li&gt;Scroll down to the &lt;strong&gt;Assets&lt;/strong&gt; section.&lt;/li&gt;
&lt;li&gt;Download &lt;code&gt;alloy-installer-windows-amd64.exe&lt;/code&gt; or download and extract &lt;code&gt;alloy-installer-windows-amd64.exe.zip&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Double-click on &lt;code&gt;alloy-installer-windows-amd64.exe&lt;/code&gt; to install Alloy.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The installer places Alloy in the default directory &lt;code&gt;%PROGRAMFILES%\GrafanaLabs\Alloy&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;winget-install&#34;&gt;WinGet install&lt;/h2&gt;
&lt;p&gt;To install Alloy with WinGet, perform the following steps.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Make sure that the &lt;a href=&#34;https://learn.microsoft.com/windows/package-manager/winget/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;WinGet package manager&lt;/a&gt; is installed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command.&lt;/p&gt;



  

  






  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;cmd&amp;#34;,&amp;#34;powershell&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;cmd&#39; }&#34; @click=&#34;$store.code.language = &#39;cmd&#39;&#34;&gt;
              &lt;span&gt;cmd&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;powershell&#39; }&#34; @click=&#34;$store.code.language = &#39;powershell&#39;&#34;&gt;
              &lt;span&gt;powershell&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;cmd&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-cmd&#34;&gt;winget install GrafanaLabs.Alloy&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;powershell&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-powershell&#34;&gt;winget install GrafanaLabs.Alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;silent-install&#34;&gt;Silent install&lt;/h2&gt;
&lt;p&gt;To do a silent install of Alloy on Windows, perform the following steps.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the &lt;a href=&#34;https://github.com/grafana/alloy/releases&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;releases page&lt;/a&gt; on GitHub.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scroll down to the &lt;strong&gt;Assets&lt;/strong&gt; section.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download &lt;code&gt;alloy-installer-windows-amd64.exe&lt;/code&gt; or download and extract &lt;code&gt;alloy-installer-windows-amd64.exe.zip&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command as Administrator.&lt;/p&gt;



  

  






  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;cmd&amp;#34;,&amp;#34;powershell&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;cmd&#39; }&#34; @click=&#34;$store.code.language = &#39;cmd&#39;&#34;&gt;
              &lt;span&gt;cmd&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;powershell&#39; }&#34; @click=&#34;$store.code.language = &#39;powershell&#39;&#34;&gt;
              &lt;span&gt;powershell&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;cmd&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-cmd&#34;&gt;&amp;lt;PATH&amp;gt;\alloy-installer-windows-amd64.exe /S&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;powershell&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-powershell&#34;&gt;&amp;amp; &amp;lt;PATH&amp;gt;\alloy-installer-windows-amd64.exe /S&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;PATH_TO_INSTALLER&amp;gt;&lt;/code&gt;&lt;/em&gt;: The path to the uncompressed installer executable.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;silent-install-options&#34;&gt;Silent install options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/CONFIG=&amp;lt;path&amp;gt;&lt;/code&gt; Path to the configuration file. Default: &lt;code&gt;$INSTDIR\config.alloy&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/DISABLEREPORTING=&amp;lt;yes|no&amp;gt;&lt;/code&gt; Disable &lt;a href=&#34;../../../data-collection/&#34;&gt;data collection&lt;/a&gt;. Default: &lt;code&gt;no&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/DISABLEPROFILING=&amp;lt;yes|no&amp;gt;&lt;/code&gt; Disable profiling endpoint. Default: &lt;code&gt;no&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/ENVIRONMENT=&amp;quot;KEY=VALUE\0KEY2=VALUE2&amp;quot;&lt;/code&gt; Define environment variables for Windows Service. Default: ``&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/FORCEREGISTRY=yes&lt;/code&gt; At the start of installation, delete all Alloy registry keys and then run the rest of the install as normal so that install options such as &lt;code&gt;/STABILITY&lt;/code&gt; and &lt;code&gt;/DISABLEREPORTING&lt;/code&gt; are written fresh.
By default, the installer preserves existing registry values on upgrade; use this flag to reset them and apply the options passed on the command line, and to remove any old or unused registry keys from previous versions.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/RUNTIMEPRIORITY=&amp;quot;normal|below_normal|above_normal|high|idle|realtime&amp;quot;&lt;/code&gt; Set the runtime priority of the Alloy process. Default: &lt;code&gt;normal&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/STABILITY=&amp;quot;generally-available|public-preview|experimental&amp;quot;&lt;/code&gt; Set the stability level of Alloy. Default: &lt;code&gt;generally-available&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/USERNAME=&amp;quot;&amp;lt;username&amp;gt;&amp;quot;&lt;/code&gt; Set the fully qualified user that Windows uses to run the service. Default: &lt;code&gt;NT AUTHORITY\LocalSystem&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/PASSWORD=&amp;quot;&amp;lt;password&amp;gt;&amp;quot;&lt;/code&gt; Set the password of the user that Windows uses to run the service. This isn&amp;rsquo;t required for standard Windows Service Accounts like LocalSystem. Default: ``&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;The &lt;code&gt;--windows.priority&lt;/code&gt; flag is in &lt;a href=&#34;/docs/release-life-cycle/&#34;&gt;public preview&lt;/a&gt; and isn&amp;rsquo;t covered by Grafana Alloy &lt;a href=&#34;../../../introduction/backward-compatibility/&#34;&gt;backward compatibility&lt;/a&gt; guarantees.
The &lt;code&gt;/RUNTIMEPRIORITY&lt;/code&gt; installation option sets this flag, and if Alloy isn&amp;rsquo;t running with an appropriate stability level, it fails to start.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;service-configuration&#34;&gt;Service configuration&lt;/h2&gt;
&lt;p&gt;Alloy uses the Windows registry key &lt;code&gt;HKLM\Software\GrafanaLabs\Alloy&lt;/code&gt; for service configuration.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Arguments&lt;/code&gt;: Type &lt;code&gt;REG_MULTI_SZ&lt;/code&gt;. Each value represents a binary argument for the Alloy binary.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Environment&lt;/code&gt;: Type &lt;code&gt;REG_MULTI_SZ&lt;/code&gt;. Each value represents an environment value &lt;code&gt;KEY=VALUE&lt;/code&gt; for the Alloy binary.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;uninstall&#34;&gt;Uninstall&lt;/h2&gt;
&lt;p&gt;Uninstalling Alloy stops the service and removes it from disk.
This includes any configuration files in the installation directory.&lt;/p&gt;
&lt;h3 id=&#34;standard-graphical-uninstall&#34;&gt;Standard graphical uninstall&lt;/h3&gt;
&lt;p&gt;To uninstall Alloy, use Add or Remove Programs or run the following command as Administrator.&lt;/p&gt;



  

  






  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;cmd&amp;#34;,&amp;#34;powershell&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;cmd&#39; }&#34; @click=&#34;$store.code.language = &#39;cmd&#39;&#34;&gt;
              &lt;span&gt;cmd&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;powershell&#39; }&#34; @click=&#34;$store.code.language = &#39;powershell&#39;&#34;&gt;
              &lt;span&gt;powershell&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;cmd&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-cmd&#34;&gt;%PROGRAMFILES%\GrafanaLabs\Alloy\uninstall.exe&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;powershell&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-powershell&#34;&gt;&amp;amp; ${env:PROGRAMFILES}\GrafanaLabs\Alloy\uninstall.exe&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;h3 id=&#34;uninstall-with-winget&#34;&gt;Uninstall with WinGet&lt;/h3&gt;
&lt;p&gt;To uninstall Alloy with WinGet, run the following command.&lt;/p&gt;



  

  






  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;cmd&amp;#34;,&amp;#34;powershell&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;cmd&#39; }&#34; @click=&#34;$store.code.language = &#39;cmd&#39;&#34;&gt;
              &lt;span&gt;cmd&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;powershell&#39; }&#34; @click=&#34;$store.code.language = &#39;powershell&#39;&#34;&gt;
              &lt;span&gt;powershell&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;cmd&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-cmd&#34;&gt;winget uninstall GrafanaLabs.Alloy&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;powershell&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-powershell&#34;&gt;winget uninstall GrafanaLabs.Alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;h3 id=&#34;silent-uninstall&#34;&gt;Silent uninstall&lt;/h3&gt;
&lt;p&gt;To silently uninstall Alloy, run the following command as Administrator.&lt;/p&gt;



  

  






  

  



  &lt;div class=&#34;code&#34; x-data=&#34;app_code([&amp;#34;cmd&amp;#34;,&amp;#34;powershell&amp;#34;], false)&#34; x-init=&#34;init()&#34; data-codetoggle=&#34;true&#34;&gt;
    &lt;div class=&#34;toggle-toolbar &#34;&gt;
      &lt;div&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;cmd&#39; }&#34; @click=&#34;$store.code.language = &#39;cmd&#39;&#34;&gt;
              &lt;span&gt;cmd&lt;/span&gt;
            &lt;/button&gt;&lt;button class=&#34;toggle-toolbar__item&#34; :class=&#34;{ &#39;toggle-toolbar__item-active&#39;: active === &#39;powershell&#39; }&#34; @click=&#34;$store.code.language = &#39;powershell&#39;&#34;&gt;
              &lt;span&gt;powershell&lt;/span&gt;
            &lt;/button&gt;&lt;/div&gt;
      &lt;div class=&#34;d-flex&#34;&gt;&lt;span class=&#34;code-clipboard&#34; x-ref=&#34;tooltip&#34;&gt;
          &lt;button @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;toggle-toolbar__border&#34;&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class=&#34;code-rendered&#34; &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;cmd&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-cmd&#34;&gt;%PROGRAMFILES%\GrafanaLabs\Alloy\uninstall.exe /S&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;powershell&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-powershell&#34;&gt;&amp;amp; ${env:PROGRAMFILES}\GrafanaLabs\Alloy\uninstall.exe /S&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

    &lt;/div&gt;
  &lt;/div&gt;


&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../run/windows/&#34;&gt;Run Alloy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/windows/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-grafana-alloy-on-windows">Install Grafana Alloy on Windows&lt;/h1>
&lt;p>You can install Alloy on Windows as a standard graphical install, a WinGet install, or a silent install.&lt;/p>
&lt;h2 id="standard-graphical-install">Standard graphical install&lt;/h2>
&lt;p>To do a standard graphical install of Alloy on Windows, perform the following steps.&lt;/p></description></item><item><title>Run Grafana Alloy in a Docker container</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/docker/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/docker/</guid><content><![CDATA[&lt;h1 id=&#34;run-grafana-alloy-in-a-docker-container&#34;&gt;Run Grafana Alloy in a Docker container&lt;/h1&gt;
&lt;p&gt;Alloy is available as a Docker container image on the following platforms:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;#run-a-linux-docker-container&#34;&gt;Linux containers&lt;/a&gt; for AMD64 and ARM64.&lt;/li&gt;
&lt;li&gt;macOS for AMD64 (Intel) and ARM64 (Apple Silicon) using &lt;a href=&#34;https://www.docker.com/products/docker-desktop/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Docker Desktop&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;#run-a-windows-docker-container&#34;&gt;Windows containers&lt;/a&gt; for AMD64.&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;On macOS, Docker Desktop manages a Linux virtual machine transparently, so the Linux container commands work without modification.&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;ul&gt;
&lt;li&gt;
&lt;p&gt;Install &lt;a href=&#34;https://docker.io&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Docker&lt;/a&gt; or &lt;a href=&#34;https://www.docker.com/products/docker-desktop/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Docker Desktop&lt;/a&gt; on your computer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create and save an Alloy configuration file on your computer, 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;Alloy&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-alloy&#34;&gt;logging {
  level  = &amp;#34;info&amp;#34;
  format = &amp;#34;logfmt&amp;#34;
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;run-a-linux-docker-container&#34;&gt;Run a Linux Docker container&lt;/h2&gt;
&lt;p&gt;To run Alloy as a Linux Docker container, run the following command in a terminal window:&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 \
  -v &amp;lt;CONFIG_FILE_PATH&amp;gt;:/etc/alloy/config.alloy \
  -p 12345:12345 \
  grafana/alloy:latest \
    run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data \
    /etc/alloy/config.alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;CONFIG_FILE_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The path of the configuration file on your host system.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can modify the last line to change the arguments passed to the Alloy binary.
Refer to the documentation for &lt;a href=&#34;../../../reference/cli/run/&#34;&gt;run&lt;/a&gt; for more information about the options available to the &lt;code&gt;run&lt;/code&gt; command.&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;Make sure you pass &lt;code&gt;--server.http.listen-addr=0.0.0.0:12345&lt;/code&gt; as an argument as shown in the example.
If you don&amp;rsquo;t pass this argument, the &lt;a href=&#34;../../../troubleshoot/debug/#alloy-ui&#34;&gt;debugging UI&lt;/a&gt; won&amp;rsquo;t be available outside of the Docker container.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;boringcrypto-images&#34;&gt;BoringCrypto images&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;BoringCrypto support is in &lt;em&gt;Public preview&lt;/em&gt; and is only available on AMD64 and ARM64 platforms.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;BoringCrypto images are published with every release starting with version 1.1:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The current BoringCrypto image is published as &lt;code&gt;grafana/alloy:boringcrypto&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A specific version of the BoringCrypto image is published as
&lt;code&gt;grafana/alloy:&amp;lt;VERSION&amp;gt;-boringcrypto&lt;/code&gt;, such as
&lt;code&gt;grafana/alloy:v1.1.0-boringcrypto&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;run-a-windows-docker-container&#34;&gt;Run a Windows Docker container&lt;/h2&gt;
&lt;p&gt;To run Alloy as a Windows Docker container, run the following command in a terminal window:&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 \
  -v &amp;#34;&amp;lt;CONFIG_FILE_PATH&amp;gt;:C:\Program Files\GrafanaLabs\Alloy\config.alloy&amp;#34; \
  -p 12345:12345 \
  grafana/alloy:windowsservercore-ltsc2022 \
    run --server.http.listen-addr=0.0.0.0:12345 &amp;#34;--storage.path=C:\ProgramData\GrafanaLabs\Alloy\data&amp;#34; \
    &amp;#34;C:\Program Files\GrafanaLabs\Alloy\config.alloy&amp;#34;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;CONFIG_FILE_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The path of the configuration file on your host system.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can modify the last line to change the arguments passed to the Alloy binary.
Refer to the documentation for &lt;a href=&#34;../../../reference/cli/run/&#34;&gt;run&lt;/a&gt; for more information about the options available to the &lt;code&gt;run&lt;/code&gt; command.&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;Make sure you pass &lt;code&gt;--server.http.listen-addr=0.0.0.0:12345&lt;/code&gt; as an argument as shown in the example above.
If you don&amp;rsquo;t pass this argument, the &lt;a href=&#34;../../../troubleshoot/debug/#alloy-ui&#34;&gt;debugging UI&lt;/a&gt; won&amp;rsquo;t be available outside of the Docker container.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;verify&#34;&gt;Verify&lt;/h2&gt;
&lt;p&gt;To verify that Alloy is running successfully, navigate to &lt;a href=&#34;http://localhost:12345&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;http://localhost:12345&lt;/a&gt; and make sure the Alloy &lt;a href=&#34;../../../troubleshoot/debug/&#34;&gt;UI&lt;/a&gt; loads without error.&lt;/p&gt;
]]></content><description>&lt;h1 id="run-grafana-alloy-in-a-docker-container">Run Grafana Alloy in a Docker container&lt;/h1>
&lt;p>Alloy is available as a Docker container image on the following platforms:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="#run-a-linux-docker-container">Linux containers&lt;/a> for AMD64 and ARM64.&lt;/li>
&lt;li>macOS for AMD64 (Intel) and ARM64 (Apple Silicon) using &lt;a href="https://www.docker.com/products/docker-desktop/" target="_blank" rel="noopener noreferrer">Docker Desktop&lt;/a>.&lt;/li>
&lt;li>&lt;a href="#run-a-windows-docker-container">Windows containers&lt;/a> for AMD64.&lt;/li>
&lt;/ul>
&lt;div class="admonition admonition-note">&lt;blockquote>&lt;p class="title text-uppercase">Note&lt;/p></description></item><item><title>Deploy Grafana Alloy on Kubernetes</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/kubernetes/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/kubernetes/</guid><content><![CDATA[&lt;h1 id=&#34;deploy-grafana-alloy-on-kubernetes&#34;&gt;Deploy Grafana Alloy on Kubernetes&lt;/h1&gt;

&lt;Box backgroundColor=&#34;primary&#34; borderColor=&#34;strong&#34; borderStyle=&#34;solid&#34; padding=&#34;2&#34;&gt;
  &lt;Grid columns=&#34;2&#34; gap=&#34;2&#34;&gt;
    &lt;div&gt;
      &lt;h4&gt;Start your learning experience with Grafana Learning Paths&lt;/h4&gt;
      &lt;p&gt;Grafana Learning Paths provide a clear, structured path that leads you from beginner concepts to advanced use cases. Learn about this Grafana feature on &lt;a href=&#34;/docs/learning-journeys/kubernetes/&#34;&gt;Monitor Kubernetes cluster infrastructure in Grafana Cloud&lt;/a&gt;.&lt;/p&gt;
      &lt;div&gt;
        &lt;a class=&#34;btn btn--primary arrow&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34; href=&#34;https://grafana.com/docs/learning-journeys/kubernetes/&#34;&gt;Start learning&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;img src=&#34;/media/docs/learning-journey/map.svg&#34; width=&#34;228&#34; height=&#34;182&#34; alt=&#34;Start your learning experience with Grafana Learning Paths&#34;&gt;
    &lt;/div&gt;
  &lt;/Grid&gt;
&lt;/Box&gt;

&lt;p&gt;Alloy can be deployed on Kubernetes by using the Helm chart for Alloy.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Install &lt;a href=&#34;https://helm.sh&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Helm&lt;/a&gt; on your computer.&lt;/li&gt;
&lt;li&gt;Configure a Kubernetes cluster that you can use for Alloy.&lt;/li&gt;
&lt;li&gt;Configure your local Kubernetes context to point at the cluster.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;deploy&#34;&gt;Deploy&lt;/h2&gt;
&lt;p&gt;To deploy Alloy on Kubernetes using Helm, run the following commands in a terminal window:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Add the Grafana Helm chart repository:&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;helm repo add grafana https://grafana.github.io/helm-charts&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update the Grafana Helm chart repository:&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;helm repo update&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a namespace for Alloy:&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;kubectl create namespace &amp;lt;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The namespace to use for your Alloy installation, such as &lt;code&gt;alloy&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Alloy:&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;helm install --namespace &amp;lt;NAMESPACE&amp;gt; &amp;lt;RELEASE_NAME&amp;gt; grafana/alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The namespace created in the previous step.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;RELEASE_NAME&amp;gt;&lt;/code&gt;&lt;/em&gt;: The name to use for your Alloy installation, such as &lt;code&gt;alloy&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Verify that the Alloy pods are running:&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;kubectl get pods --namespace &amp;lt;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The namespace used in the previous step.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You have successfully deployed Alloy on Kubernetes, using default Helm settings.&lt;/p&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/kubernetes/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- Refer to the [Alloy Helm chart documentation on Artifact Hub](https://artifacthub.io/packages/helm/grafana/alloy) for more information about the Helm chart. --&gt;
]]></content><description>&lt;h1 id="deploy-grafana-alloy-on-kubernetes">Deploy Grafana Alloy on Kubernetes&lt;/h1>
&lt;Box backgroundColor="primary" borderColor="strong" borderStyle="solid" padding="2">
&lt;Grid columns="2" gap="2">
&lt;div>
&lt;h4>Start your learning experience with Grafana Learning Paths&lt;/h4>
&lt;p>Grafana Learning Paths provide a clear, structured path that leads you from beginner concepts to advanced use cases. Learn about this Grafana feature on &lt;a href="/docs/learning-journeys/kubernetes/">Monitor Kubernetes cluster infrastructure in Grafana Cloud&lt;/a>.&lt;/p></description></item><item><title>Install Grafana Alloy as a standalone binary</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/binary/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/binary/</guid><content><![CDATA[&lt;h1 id=&#34;install-grafana-alloy-as-a-standalone-binary&#34;&gt;Install Grafana Alloy as a standalone binary&lt;/h1&gt;
&lt;p&gt;Alloy is distributed as a standalone binary for the following operating systems and architectures:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Linux: AMD64, ARM64&lt;/li&gt;
&lt;li&gt;Windows: AMD64&lt;/li&gt;
&lt;li&gt;macOS: AMD64 on Intel, ARM64 on Apple Silicon&lt;/li&gt;
&lt;li&gt;FreeBSD: AMD64&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;download-alloy&#34;&gt;Download Alloy&lt;/h2&gt;
&lt;p&gt;To download Alloy as a standalone binary, perform the following steps.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the current Alloy &lt;a href=&#34;https://github.com/grafana/alloy/releases&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;release&lt;/a&gt; page.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scroll down to the &lt;strong&gt;Assets&lt;/strong&gt; section.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download the &lt;code&gt;alloy&lt;/code&gt; file that matches your operating system and machine&amp;rsquo;s architecture.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Extract the package contents into a directory.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you are installing Alloy on Linux, macOS, or FreeBSD, run the following command in a terminal:&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;chmod &amp;#43;x &amp;lt;BINARY_PATH&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;BINARY_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The path to the extracted binary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;boringcrypto-binaries&#34;&gt;BoringCrypto binaries&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;BoringCrypto support is in &lt;em&gt;Public preview&lt;/em&gt; and is only available for Linux with the AMD64 or ARM64 architecture.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;BoringCrypto binaries are published for Linux on AMD64 and ARM64 platforms.
To retrieve them, follow the steps above but search for the &lt;code&gt;alloy-boringcrypto&lt;/code&gt; file that matches your Linux architecture.&lt;/p&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../run/binary/&#34;&gt;Run Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-grafana-alloy-as-a-standalone-binary">Install Grafana Alloy as a standalone binary&lt;/h1>
&lt;p>Alloy is distributed as a standalone binary for the following operating systems and architectures:&lt;/p>
&lt;ul>
&lt;li>Linux: AMD64, ARM64&lt;/li>
&lt;li>Windows: AMD64&lt;/li>
&lt;li>macOS: AMD64 on Intel, ARM64 on Apple Silicon&lt;/li>
&lt;li>FreeBSD: AMD64&lt;/li>
&lt;/ul>
&lt;h2 id="download-alloy">Download Alloy&lt;/h2>
&lt;p>To download Alloy as a standalone binary, perform the following steps.&lt;/p></description></item><item><title>Install Grafana Alloy with Ansible</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/ansible/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/ansible/</guid><content><![CDATA[&lt;h1 id=&#34;install-or-uninstall-grafana-alloy-using-ansible&#34;&gt;Install or uninstall Grafana Alloy using Ansible&lt;/h1&gt;
&lt;p&gt;You can use the &lt;a href=&#34;https://github.com/grafana/grafana-ansible-collection&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Ansible Collection&lt;/a&gt; to install and manage Alloy on Linux hosts.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;These steps assume you already have a working &lt;a href=&#34;https://www.ansible.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Ansible&lt;/a&gt; setup and an inventory.&lt;/li&gt;
&lt;li&gt;You can add the tasks below to any role.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;steps&#34;&gt;Steps&lt;/h2&gt;
&lt;p&gt;To add Alloy to a host:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a file named &lt;code&gt;alloy.yml&lt;/code&gt; and add the following:&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;- name: Install Alloy
  hosts: all
  become: true

  tasks:
    - name: Install Alloy
      ansible.builtin.include_role:
        name: grafana.grafana.alloy
      vars:
        alloy_config: |
          prometheus.scrape &amp;#34;default&amp;#34; {
            targets = [{&amp;#34;__address__&amp;#34; = &amp;#34;localhost:12345&amp;#34;}]
            forward_to = [prometheus.remote_write.prom.receiver]
          }
          prometheus.remote_write &amp;#34;prom&amp;#34; {
            endpoint {
                url = &amp;#34;&amp;lt;YOUR_PROMETHEUS_PUSH_ENDPOINT&amp;gt;&amp;#34;
            }
          }&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This snippet has a sample configuration to collect and send Alloy metrics to Prometheus&lt;/p&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;YOUR_PROMETHEUS_PUSH_ENDPOINT&amp;gt;&lt;/code&gt;&lt;/em&gt;:  The Remote write endpoint of your Prometheus Instance.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the Ansible playbook. Open a terminal window and run the following command from the Ansible playbook directory.&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;ansible-playbook alloy.yml&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;validate&#34;&gt;Validate&lt;/h2&gt;
&lt;p&gt;To verify that the Alloy service on the target machine is &lt;code&gt;active&lt;/code&gt; and &lt;code&gt;running&lt;/code&gt;, open a terminal window and 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;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;sudo systemctl status alloy.service&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If the service is &lt;code&gt;active&lt;/code&gt; and &lt;code&gt;running&lt;/code&gt;, the output should look similar to this:&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;alloy.service - Grafana Alloy
  Loaded: loaded (/etc/systemd/system/alloy.service; enabled; vendor preset: enabled)
  Active: active (running) since Wed 2022-07-20 09:56:15 UTC; 36s ago
Main PID: 3176 (alloy-linux-amd)
  Tasks: 8 (limit: 515)
  Memory: 92.5M
    CPU: 380ms
  CGroup: /system.slice/alloy.service
    └─3176 /usr/local/bin/alloy-linux-amd64 --config.file=/etc/grafana-cloud/alloy-config.yaml&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;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/linux/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-or-uninstall-grafana-alloy-using-ansible">Install or uninstall Grafana Alloy using Ansible&lt;/h1>
&lt;p>You can use the &lt;a href="https://github.com/grafana/grafana-ansible-collection" target="_blank" rel="noopener noreferrer">Grafana Ansible Collection&lt;/a> to install and manage Alloy on Linux hosts.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>These steps assume you already have a working &lt;a href="https://www.ansible.com/" target="_blank" rel="noopener noreferrer">Ansible&lt;/a> setup and an inventory.&lt;/li>
&lt;li>You can add the tasks below to any role.&lt;/li>
&lt;/ul>
&lt;h2 id="steps">Steps&lt;/h2>
&lt;p>To add Alloy to a host:&lt;/p></description></item><item><title>Install Grafana Alloy with Chef</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/chef/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/chef/</guid><content><![CDATA[&lt;h1 id=&#34;install-grafana-alloy-with-chef&#34;&gt;Install Grafana Alloy with Chef&lt;/h1&gt;
&lt;p&gt;You can use Chef to install and manage Alloy.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;These steps assume you already have a working &lt;a href=&#34;https://www.chef.io/products/chef-infrastructure-management/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Chef&lt;/a&gt; setup.&lt;/li&gt;
&lt;li&gt;You can add the following resources to any recipe.&lt;/li&gt;
&lt;li&gt;These tasks install Alloy from the package repositories.
The tasks target Linux systems from the following families:
&lt;ul&gt;
&lt;li&gt;Debian, including Ubuntu&lt;/li&gt;
&lt;li&gt;RedHat Enterprise Linux, including Fedora&lt;/li&gt;
&lt;li&gt;Amazon Linux&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;steps&#34;&gt;Steps&lt;/h2&gt;
&lt;p&gt;To add Alloy to a host:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Add the following resources to your &lt;a href=&#34;https://www.chef.io/products/chef-infrastructure-management/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Chef&lt;/a&gt; recipe to add the Grafana package repositories to your system:&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;ruby&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-ruby&#34;&gt;if platform_family?(&amp;#39;debian&amp;#39;, &amp;#39;rhel&amp;#39;, &amp;#39;amazon&amp;#39;, &amp;#39;fedora&amp;#39;)
  if platform_family?(&amp;#39;debian&amp;#39;)
    remote_file &amp;#39;/etc/apt/keyrings/grafana.gpg&amp;#39; do
      source &amp;#39;https://apt.grafana.com/gpg.key&amp;#39;
      mode &amp;#39;0644&amp;#39;
      action :create
      end

    file &amp;#39;/etc/apt/sources.list.d/grafana.list&amp;#39; do
      content &amp;#34;deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com/ stable main&amp;#34;
      mode &amp;#39;0644&amp;#39;
      notifies :update, &amp;#39;apt_update[update apt cache]&amp;#39;, :immediately
    end

    apt_update &amp;#39;update apt cache&amp;#39; do
      action :nothing
    end
  elsif platform_family?(&amp;#39;rhel&amp;#39;, &amp;#39;amazon&amp;#39;, &amp;#39;fedora&amp;#39;)
    yum_repository &amp;#39;grafana&amp;#39; do
      description &amp;#39;grafana&amp;#39;
      baseurl &amp;#39;https://rpm.grafana.com&amp;#39;
      gpgcheck true
      gpgkey &amp;#39;https://rpm.grafana.com/gpg.key&amp;#39;
      enabled true
      action :create
      notifies :run, &amp;#39;execute[add-rhel-key]&amp;#39;, :immediately
    end

    execute &amp;#39;add-rhel-key&amp;#39; do
      command &amp;#34;rpm --import https://rpm.grafana.com/gpg.key&amp;#34;
      action :nothing
    end
  end
else
    fail &amp;#34;The #{node[&amp;#39;platform_family&amp;#39;]} platform is not supported.&amp;#34;
end&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the following resources to install and enable the &lt;code&gt;alloy&lt;/code&gt; service:&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;ruby&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-ruby&#34;&gt;package &amp;#39;alloy&amp;#39; do
  action :install
  flush_cache [ :before ] if platform_family?(&amp;#39;amazon&amp;#39;, &amp;#39;rhel&amp;#39;, &amp;#39;fedora&amp;#39;)
  notifies :restart, &amp;#39;service[alloy]&amp;#39;, :delayed
end

service &amp;#39;alloy&amp;#39; do
  service_name &amp;#39;alloy&amp;#39;
  action [:enable, :start]
end&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;alloy&lt;/code&gt; package installs a default configuration file that doesn&amp;rsquo;t send telemetry anywhere.&lt;/p&gt;
&lt;p&gt;The default configuration file location is &lt;code&gt;/etc/alloy/config.alloy&lt;/code&gt;.
You can replace this file with your own configuration or create a configuration file for the service to use.&lt;/p&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/linux/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-grafana-alloy-with-chef">Install Grafana Alloy with Chef&lt;/h1>
&lt;p>You can use Chef to install and manage Alloy.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>These steps assume you already have a working &lt;a href="https://www.chef.io/products/chef-infrastructure-management/" target="_blank" rel="noopener noreferrer">Chef&lt;/a> setup.&lt;/li>
&lt;li>You can add the following resources to any recipe.&lt;/li>
&lt;li>These tasks install Alloy from the package repositories.
The tasks target Linux systems from the following families:
&lt;ul>
&lt;li>Debian, including Ubuntu&lt;/li>
&lt;li>RedHat Enterprise Linux, including Fedora&lt;/li>
&lt;li>Amazon Linux&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h2 id="steps">Steps&lt;/h2>
&lt;p>To add Alloy to a host:&lt;/p></description></item><item><title>Deploy Grafana Alloy on OpenShift</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/openshift/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/openshift/</guid><content><![CDATA[&lt;h1 id=&#34;deploy-grafana-alloy-on-openshift&#34;&gt;Deploy Grafana Alloy on OpenShift&lt;/h1&gt;
&lt;p&gt;You can deploy Alloy on the Red Hat OpenShift Container Platform (OCP).&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;These steps assume you have a working OCP environment.&lt;/li&gt;
&lt;li&gt;You can adapt the suggested policies and configuration to meet your specific needs and security policies.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;configure-rbac&#34;&gt;Configure RBAC&lt;/h2&gt;
&lt;p&gt;You must configure Role-Based Access Control (RBAC) to allow secure access to Kubernetes and OCP resources.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the &lt;a href=&#34;https://github.com/grafana/alloy/blob/main/operations/helm/charts/alloy/templates/rbac.yaml&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;rbac.yaml&lt;/a&gt; configuration file. This configuration file defines the OCP verbs and permissions for Alloy.&lt;/li&gt;
&lt;li&gt;Review the &lt;code&gt;rbac.yaml&lt;/code&gt; file and adapt as needed for your local environment. Refer to &lt;a href=&#34;https://docs.openshift.com/container-platform/latest/authentication/using-rbac.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Managing Role-based Access Control (RBAC)&lt;/a&gt; topic in the OCP documentation for more information about updating and managing your RBAC configurations.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;run-alloy-as-a-non-root-user&#34;&gt;Run Alloy as a non-root user&lt;/h2&gt;
&lt;p&gt;You must configure Alloy to &lt;a href=&#34;../../../configure/nonroot/&#34;&gt;run as a non-root user&lt;/a&gt;.
This ensures that Alloy complies with your OCP security policies.&lt;/p&gt;
&lt;h2 id=&#34;apply-security-context-constraints&#34;&gt;Apply security context constraints&lt;/h2&gt;
&lt;p&gt;OCP uses Security Context Constraints (SCC) to control Pod permissions.
Refer to &lt;a href=&#34;https://docs.openshift.com/container-platform/latest/authentication/managing-security-context-constraints.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Managing security context constraints&lt;/a&gt; for more information about how you can define and enforce these permissions.
This ensures that the pods running Alloy comply with OCP security policies.&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 security context is only configured at the container level, not at the container and deployment level.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;You can apply the following SCCs when you deploy Alloy.&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;Not all of these SCCs are required for each use case.
You can adapt the SCCs to meet your local requirements and needs.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;RunAsUser&lt;/code&gt;: Specifies the user ID under which Alloy runs.
You must configure this constraint to allow a non-root user ID.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;SELinuxContext&lt;/code&gt;: Configures the SELinux context for containers.
If you run Alloy as root, you must configure this constraint to make sure that SELinux policies don&amp;rsquo;t block Alloy.
This SCC is generally not required to deploy Alloy as a non-root user.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;FSGroup&lt;/code&gt;: Specifies the fsGroup IDs for file system access.
You must configure this constraint to give Alloy group access to the files it needs.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Volumes&lt;/code&gt;: Specifies the persistent volumes used for storage.
You must configure this constraint to give Alloy access to the volumes it needs.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;example-daemonset-configuration&#34;&gt;Example DaemonSet configuration&lt;/h2&gt;
&lt;p&gt;The following example shows a DaemonSet configuration that deploys Alloy as a non-root user:&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;apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: alloy-logs
  namespace: monitoring
spec:
  selector:
    matchLabels:
      app: alloy-logs
  template:
    metadata:
      labels:
        app: alloy-logs
    spec:
      securityContext:
        runAsUser: 473
        runAsGroup: 473
        fsGroup: 1000
      containers:
      - name: alloy-logs
        image: grafana/alloy:&amp;lt;ALLOY_VERSION&amp;gt;
        ports:
        - containerPort: 12345
        securityContext:
          readOnlyRootFilesystem: true
          allowPrivilegeEscalation: false
      volumes:
      - name: log-volume
        emptyDir: {}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;ALLOY_VERSION&amp;gt;&lt;/code&gt;&lt;/em&gt;: Set to the specific Alloy version you are deploying. For example, &lt;code&gt;1.5.1&lt;/code&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;This example uses the simplest volume type, &lt;code&gt;emptyDir&lt;/code&gt;. In this example configuration, if your node restarts, your data will be lost. Make sure you set the volume type to a persistent storage location for production environments. Refer to &lt;a href=&#34;https://docs.openshift.com/container-platform/latest/nodes/containers/nodes-containers-volumes.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Using volumes to persist container data&lt;/a&gt; in the OpenShift documentation for more information.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;example-scc-definition&#34;&gt;Example SCC definition&lt;/h2&gt;
&lt;p&gt;The following example shows an SCC definition that deploys Alloy as a non-root user:&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;kind: SecurityContextConstraints
apiVersion: security.openshift.io/v1
metadata:
  name: scc-alloy
runAsUser:
  type: MustRunAs
  uid: 473
fsGroup:
  type: MustRunAs
  uid: 1000
volumes: 
- &amp;#39;*&amp;#39;
users:
- my-admin-user
groups:
- my-admin-group
seLinuxContext:
  type: MustRunAs
  user: &amp;lt;SYSTEM_USER&amp;gt;
  role: &amp;lt;SYSTEM_ROLE&amp;gt;
  type: &amp;lt;CONTAINER_TYPE&amp;gt;
  level: &amp;lt;LEVEL&amp;gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;SYSTEM_USER&amp;gt;&lt;/code&gt;&lt;/em&gt;: The user for your SELinux context.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;SYSTEM_ROLE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The role for your SELinux context.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;CONTAINER_TYPE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The container type for your SELinux context.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;LEVEL&amp;gt;&lt;/code&gt;&lt;/em&gt;: The level  for your SELinux context.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Refer to &lt;a href=&#34;https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/security-enhanced_linux/chap-security-enhanced_linux-selinux_contexts#chap-Security-Enhanced_Linux-SELinux_Contexts&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;SELinux Contexts&lt;/a&gt; in the RedHat documentation for more information on the SELinux context configuration.&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 example sets &lt;code&gt;volumes:&lt;/code&gt; to &lt;code&gt;*&lt;/code&gt;. In a production environment, you should set &lt;code&gt;volumes:&lt;/code&gt; to only the volumes that are necessary for the deployment. 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;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;volumes:
  - configMap
  - downwardAPI
  - emptyDir
  - persistentVolumeClaim
  - secret &lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;Refer to &lt;a href=&#34;../../deploy/&#34;&gt;Deploy Grafana Alloy&lt;/a&gt; for more information about deploying Alloy in your environment.&lt;/p&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/linux/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="deploy-grafana-alloy-on-openshift">Deploy Grafana Alloy on OpenShift&lt;/h1>
&lt;p>You can deploy Alloy on the Red Hat OpenShift Container Platform (OCP).&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>These steps assume you have a working OCP environment.&lt;/li>
&lt;li>You can adapt the suggested policies and configuration to meet your specific needs and security policies.&lt;/li>
&lt;/ul>
&lt;h2 id="configure-rbac">Configure RBAC&lt;/h2>
&lt;p>You must configure Role-Based Access Control (RBAC) to allow secure access to Kubernetes and OCP resources.&lt;/p></description></item><item><title>Run Grafana Alloy in a Podman container</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/podman/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/podman/</guid><content><![CDATA[&lt;h1 id=&#34;run-grafana-alloy-in-a-podman-container&#34;&gt;Run Grafana Alloy in a Podman container&lt;/h1&gt;
&lt;p&gt;Podman is a container engine that runs without a daemon for developing, managing, and running Open Container Initiative (OCI) containers.
You can use Podman as a drop-in replacement for Docker to run Alloy.&lt;/p&gt;
&lt;p&gt;Alloy is available as a Docker container image that you can use with Podman on the following platforms:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Linux for AMD64 and ARM64.&lt;/li&gt;
&lt;li&gt;macOS for AMD64 (Intel) and ARM64 (Apple Silicon).&lt;/li&gt;
&lt;li&gt;Windows for AMD64.&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;On macOS and Windows, Podman runs containers in a Linux virtual machine managed by &lt;code&gt;podman machine&lt;/code&gt;.
The container commands are the same across all platforms once the machine is running.&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;ul&gt;
&lt;li&gt;
&lt;p&gt;Install &lt;a href=&#34;https://podman.io/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Podman&lt;/a&gt; or &lt;a href=&#34;https://podman-desktop.io/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Podman Desktop&lt;/a&gt; on your computer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On macOS or Windows, initialize and start the Podman machine:&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;podman machine init
podman machine start&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create and save an Alloy configuration file on your computer, 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;Alloy&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-alloy&#34;&gt;logging {
  level  = &amp;#34;info&amp;#34;
  format = &amp;#34;logfmt&amp;#34;
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;run-a-rootless-podman-container&#34;&gt;Run a rootless Podman container&lt;/h2&gt;
&lt;p&gt;One of the key features of Podman is the ability to run containers without root privileges.
To run Alloy as a rootless Podman container, run the following command in a terminal window:&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;podman run \
  -v &amp;lt;CONFIG_FILE_PATH&amp;gt;:/etc/alloy/config.alloy:Z \
  -p 12345:12345 \
  docker.io/grafana/alloy:latest \
    run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data \
    /etc/alloy/config.alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;CONFIG_FILE_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The absolute path of the configuration file on your host system.&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;The &lt;code&gt;:Z&lt;/code&gt; suffix on the volume mount is required on Linux systems with Security-Enhanced Linux enabled (such as Fedora, RHEL, and CentOS) to set the correct security context for the mounted file.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re running on macOS, Windows, or a Linux system without Security-Enhanced Linux, you can omit the &lt;code&gt;:Z&lt;/code&gt; suffix.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;You can modify the last line to change the arguments passed to the Alloy binary.
Refer to the documentation for &lt;a href=&#34;../../../reference/cli/run/&#34;&gt;run&lt;/a&gt; for more information about the options available to the &lt;code&gt;run&lt;/code&gt; command.&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;Make sure you pass &lt;code&gt;--server.http.listen-addr=0.0.0.0:12345&lt;/code&gt; as an argument as shown in the example.
If you don&amp;rsquo;t pass this argument, the [debugging UI][UI] won&amp;rsquo;t be available outside of the Podman container.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;run-a-podman-container-with-root-privileges&#34;&gt;Run a Podman container with root privileges&lt;/h2&gt;
&lt;p&gt;If you need to run Alloy with root privileges, for example to access host-level resources, 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;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;sudo podman run \
  -v &amp;lt;CONFIG_FILE_PATH&amp;gt;:/etc/alloy/config.alloy:Z \
  -p 12345:12345 \
  docker.io/grafana/alloy:latest \
    run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data \
    /etc/alloy/config.alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;CONFIG_FILE_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The absolute path of the configuration file on your host system.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;run-with-systemd-integration-on-linux&#34;&gt;Run with systemd integration on Linux&lt;/h2&gt;
&lt;p&gt;On Linux, Podman integrates with systemd to manage containers as services.
To generate a systemd unit file for Alloy:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Run the container with a name:&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;podman run -d --name alloy \
  -v &amp;lt;CONFIG_FILE_PATH&amp;gt;:/etc/alloy/config.alloy:Z \
  -p 12345:12345 \
  docker.io/grafana/alloy:latest \
    run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data \
    /etc/alloy/config.alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;CONFIG_FILE_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The absolute path of the configuration file on your host system.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Generate a systemd unit 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;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;podman generate systemd --name alloy --files --new&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Move the generated file to the systemd directory:&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;mv container-alloy.service ~/.config/systemd/user/&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reload systemd and enable the service:&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;systemctl --user daemon-reload
systemctl --user enable --now container-alloy.service&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;use-podman-compose&#34;&gt;Use Podman Compose&lt;/h2&gt;
&lt;p&gt;If you prefer using Compose files, Podman supports Docker Compose files through &lt;code&gt;podman-compose&lt;/code&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a &lt;code&gt;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;services:
  alloy:
    image: docker.io/grafana/alloy:latest
    ports:
      - &amp;#34;12345:12345&amp;#34;
    volumes:
      - &amp;lt;CONFIG_FILE_PATH&amp;gt;:/etc/alloy/config.alloy:Z
    command:
      - run
      - --server.http.listen-addr=0.0.0.0:12345
      - --storage.path=/var/lib/alloy/data
      - /etc/alloy/config.alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;CONFIG_FILE_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The absolute path of the configuration file on your host system.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the container:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;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;podman-compose up -d&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;boringcrypto-images&#34;&gt;BoringCrypto images&lt;/h2&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;BoringCrypto support is in &lt;em&gt;Public preview&lt;/em&gt; and is only available on AMD64 and ARM64 platforms.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;BoringCrypto images are published with every release starting with version 1.1:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The current BoringCrypto image is published as &lt;code&gt;docker.io/grafana/alloy:boringcrypto&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A specific version of the BoringCrypto image is published as &lt;code&gt;docker.io/grafana/alloy:&amp;lt;VERSION&amp;gt;-boringcrypto&lt;/code&gt;, such as &lt;code&gt;docker.io/grafana/alloy:v1.1.0-boringcrypto&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;verify&#34;&gt;Verify&lt;/h2&gt;
&lt;p&gt;To verify that Alloy is running successfully, navigate to &lt;a href=&#34;http://localhost:12345&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;http://localhost:12345&lt;/a&gt; and make sure the Alloy &lt;a href=&#34;../../../troubleshoot/debug/&#34;&gt;UI&lt;/a&gt; loads without error.&lt;/p&gt;
&lt;p&gt;You can also check the container status:&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;podman ps&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;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/linux/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="run-grafana-alloy-in-a-podman-container">Run Grafana Alloy in a Podman container&lt;/h1>
&lt;p>Podman is a container engine that runs without a daemon for developing, managing, and running Open Container Initiative (OCI) containers.
You can use Podman as a drop-in replacement for Docker to run Alloy.&lt;/p></description></item><item><title>Install Grafana Alloy with Puppet</title><link>https://grafana.com/docs/alloy/v1.15/set-up/install/puppet/</link><pubDate>Mon, 30 Mar 2026 15:47:22 +0000</pubDate><guid>https://grafana.com/docs/alloy/v1.15/set-up/install/puppet/</guid><content><![CDATA[&lt;h1 id=&#34;install-grafana-alloy-with-puppet&#34;&gt;Install Grafana Alloy with Puppet&lt;/h1&gt;
&lt;p&gt;You can use Puppet to install and manage Alloy.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;These steps assume you already have a working &lt;a href=&#34;https://www.puppet.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Puppet&lt;/a&gt; setup.&lt;/li&gt;
&lt;li&gt;You can add the following manifest to any module.&lt;/li&gt;
&lt;li&gt;The manifest installs Alloy from the package repositories. It targets Linux systems from the following families:
&lt;ul&gt;
&lt;li&gt;Debian, including Ubuntu&lt;/li&gt;
&lt;li&gt;RedHat Enterprise Linux, including Fedora&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;steps&#34;&gt;Steps&lt;/h2&gt;
&lt;p&gt;To add Alloy to a host:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Make sure that the following module dependencies are declared and installed:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;JSON&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-json&#34;&gt;{
&amp;#34;name&amp;#34;: &amp;#34;puppetlabs/apt&amp;#34;,
&amp;#34;version_requirement&amp;#34;: &amp;#34;&amp;gt;= 4.1.0 &amp;lt;= 7.0.0&amp;#34;
},
{
&amp;#34;name&amp;#34;: &amp;#34;puppetlabs/yumrepo_core&amp;#34;,
&amp;#34;version_requirement&amp;#34;: &amp;#34;&amp;lt;= 2.0.0&amp;#34;
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a &lt;a href=&#34;https://www.puppet.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Puppet&lt;/a&gt; manifest with the following class to add the Grafana package repositories, install the &lt;code&gt;alloy&lt;/code&gt; package, and run the service:&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;ruby&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-ruby&#34;&gt;class grafana_alloy::grafana_alloy () {
  case $::os[&amp;#39;family&amp;#39;] {
    &amp;#39;debian&amp;#39;: {
      apt::source { &amp;#39;grafana&amp;#39;:
        location =&amp;gt; &amp;#39;https://apt.grafana.com/&amp;#39;,
        release  =&amp;gt; &amp;#39;&amp;#39;,
        repos    =&amp;gt; &amp;#39;stable main&amp;#39;,
        key      =&amp;gt; {
          id     =&amp;gt; &amp;#39;B53AE77BADB630A683046005963FA27710458545&amp;#39;,
          source =&amp;gt; &amp;#39;https://apt.grafana.com/gpg.key&amp;#39;,
        },
      } -&amp;gt; package { &amp;#39;alloy&amp;#39;:
        require =&amp;gt; Exec[&amp;#39;apt_update&amp;#39;],
      } -&amp;gt; service { &amp;#39;alloy&amp;#39;:
        ensure    =&amp;gt; running,
        name      =&amp;gt; &amp;#39;alloy&amp;#39;,
        enable    =&amp;gt; true,
        subscribe =&amp;gt; Package[&amp;#39;alloy&amp;#39;],
      }
    }
    &amp;#39;redhat&amp;#39;: {
      yumrepo { &amp;#39;grafana&amp;#39;:
        ensure   =&amp;gt; &amp;#39;present&amp;#39;,
        name     =&amp;gt; &amp;#39;grafana&amp;#39;,
        descr    =&amp;gt; &amp;#39;grafana&amp;#39;,
        baseurl  =&amp;gt; &amp;#39;https://rpm.grafana.com&amp;#39;,
        gpgkey   =&amp;gt; &amp;#39;https://rpm.grafana.com/gpg.key&amp;#39;,
        enabled  =&amp;gt; &amp;#39;1&amp;#39;,
        gpgcheck =&amp;gt; &amp;#39;1&amp;#39;,
        target   =&amp;gt; &amp;#39;/etc/yum.repos.d/grafana.repo&amp;#39;,
      } -&amp;gt; package { &amp;#39;alloy&amp;#39;:
      } -&amp;gt; service { &amp;#39;alloy&amp;#39;:
        ensure    =&amp;gt; running,
        name      =&amp;gt; &amp;#39;alloy&amp;#39;,
        enable    =&amp;gt; true,
        subscribe =&amp;gt; Package[&amp;#39;alloy&amp;#39;],
      }
    }
    default: {
      fail(&amp;#34;Unsupported OS family: (${$::os[&amp;#39;family&amp;#39;]})&amp;#34;)
    }
  }
}&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To use this class in a module, add the following line to the module&amp;rsquo;s &lt;code&gt;init.pp&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;ruby&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-ruby&#34;&gt;include grafana_alloy::grafana_alloy&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;alloy&lt;/code&gt; package installs a default configuration file that doesn&amp;rsquo;t send telemetry anywhere.&lt;/p&gt;
&lt;p&gt;The default configuration file location is &lt;code&gt;/etc/alloy/config.alloy&lt;/code&gt;.
You can replace this file with your own configuration, or create a configuration file for the service to use.&lt;/p&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../configure/linux/&#34;&gt;Configure Alloy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="install-grafana-alloy-with-puppet">Install Grafana Alloy with Puppet&lt;/h1>
&lt;p>You can use Puppet to install and manage Alloy.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>These steps assume you already have a working &lt;a href="https://www.puppet.com/" target="_blank" rel="noopener noreferrer">Puppet&lt;/a> setup.&lt;/li>
&lt;li>You can add the following manifest to any module.&lt;/li>
&lt;li>The manifest installs Alloy from the package repositories. It targets Linux systems from the following families:
&lt;ul>
&lt;li>Debian, including Ubuntu&lt;/li>
&lt;li>RedHat Enterprise Linux, including Fedora&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h2 id="steps">Steps&lt;/h2>
&lt;p>To add Alloy to a host:&lt;/p></description></item></channel></rss>