<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Configure Grafana Agent Flow on Grafana Labs</title><link>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/</link><description>Recent content in Configure Grafana Agent Flow on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/agent/v0.43/flow/tasks/configure/index.xml" rel="self" type="application/rss+xml"/><item><title>Configure Grafana Agent Flow on Kubernetes</title><link>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-kubernetes/</link><pubDate>Wed, 11 Sep 2024 17:43:35 +0000</pubDate><guid>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-kubernetes/</guid><content><![CDATA[&lt;h1 id=&#34;configure-grafana-agent-flow-on-kubernetes&#34;&gt;Configure Grafana Agent Flow on Kubernetes&lt;/h1&gt;
&lt;p&gt;This page describes how to apply a new configuration to Grafana Agent Flow
when running on Kubernetes with the Helm chart. It assumes that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You have &lt;a href=&#34;../../../get-started/install/kubernetes/&#34;&gt;installed Grafana Agent Flow on Kubernetes using the Helm chart&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;You already have a new Grafana Agent Flow configuration that you
want to apply to your Helm chart installation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If instead you&amp;rsquo;re looking for help in configuring Grafana Agent Flow to perform a specific task,
consult the following guides instead:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../collect-prometheus-metrics/&#34;&gt;Collect and forward Prometheus metrics&lt;/a&gt;,&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../collect-opentelemetry-data/&#34;&gt;Collect OpenTelemetry data&lt;/a&gt;,&lt;/li&gt;
&lt;li&gt;or the &lt;a href=&#34;../&#34;&gt;tasks section&lt;/a&gt; for all the remaining configuration guides.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;configure-the-helm-chart&#34;&gt;Configure the Helm chart&lt;/h2&gt;
&lt;p&gt;To modify Grafana Agent Flow&amp;rsquo;s Helm chart configuration, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a local &lt;code&gt;values.yaml&lt;/code&gt; file with a new Helm chart configuration.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You can use your own copy of the values file or download a copy of the
default &lt;a href=&#34;https://raw.githubusercontent.com/grafana/agent/main/operations/helm/charts/grafana-agent/values.yaml&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;values.yaml&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make changes to your &lt;code&gt;values.yaml&lt;/code&gt; to customize settings for the
Helm chart.&lt;/p&gt;
&lt;p&gt;Refer to the inline documentation in the default &lt;a href=&#34;https://raw.githubusercontent.com/grafana/agent/main/operations/helm/charts/grafana-agent/values.yaml&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;values.yaml&lt;/a&gt; for more
information about each option.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command in a terminal to upgrade your Grafana Agent Flow installation:&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 upgrade --namespace &amp;lt;NAMESPACE&amp;gt; &amp;lt;RELEASE_NAME&amp;gt; grafana/grafana-agent -f &amp;lt;VALUES_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;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The namespace you used for your Grafana Agent Flow installation.&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 you used for your Grafana Agent Flow installation.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;VALUES_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The path to your copy of &lt;code&gt;values.yaml&lt;/code&gt; to use.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;kustomize-considerations&#34;&gt;Kustomize considerations&lt;/h3&gt;
&lt;p&gt;If you are using &lt;a href=&#34;https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Kustomize&lt;/a&gt; to inflate and install the &lt;a href=&#34;https://github.com/grafana/agent/tree/main/operations/helm/charts/grafana-agent&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Helm chart&lt;/a&gt;, be careful
when using a &lt;code&gt;configMapGenerator&lt;/code&gt; to generate the ConfigMap containing the
configuration. By default, the generator appends a hash to the name and patches
the resource mentioning it, triggering a rolling update.&lt;/p&gt;
&lt;p&gt;This behavior is undesirable for Grafana Agent Flow because the
startup time can be significant, for example, when your deployment has a large
metrics Write-Ahead Log. You can use the &lt;a href=&#34;https://github.com/grafana/agent/tree/main/operations/helm/charts/grafana-agent&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Helm chart&lt;/a&gt; sidecar container to
watch the ConfigMap and trigger a dynamic reload.&lt;/p&gt;
&lt;p&gt;The following is an example snippet of a &lt;code&gt;kustomization&lt;/code&gt; that disables this behavior:&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;configMapGenerator:
  - name: grafana-agent
    files:
      - config.river
    options:
      disableNameSuffixHash: true&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&#34;configure-the-hahahugoshortcode2691s10hbhb&#34;&gt;Configure the Grafana Agent Flow&lt;/h2&gt;
&lt;p&gt;This section describes how to modify the Grafana Agent Flow configuration, which is stored in a ConfigMap in the Kubernetes cluster.
There are two methods to perform this task.&lt;/p&gt;
&lt;h3 id=&#34;method-1-modify-the-configuration-in-the-valuesyaml-file&#34;&gt;Method 1: Modify the configuration in the values.yaml file&lt;/h3&gt;
&lt;p&gt;Use this method if you prefer to embed your Grafana Agent Flow configuration in the Helm chart&amp;rsquo;s &lt;code&gt;values.yaml&lt;/code&gt; file.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Modify the configuration file contents directly in the &lt;code&gt;values.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;agent:
  mode: &amp;#34;flow&amp;#34;
  configMap:
    content: |-
      // Write your Agent config here:
      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;li&gt;
&lt;p&gt;Run the following command in a terminal to upgrade your Grafana Agent Flow installation:&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 upgrade --namespace &amp;lt;NAMESPACE&amp;gt; &amp;lt;RELEASE_NAME&amp;gt; grafana/grafana-agent -f &amp;lt;VALUES_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;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The namespace you used for your Grafana Agent Flow installation.&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 you used for your Grafana Agent Flow installation.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;VALUES_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The path to your copy of &lt;code&gt;values.yaml&lt;/code&gt; to use.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;method-2-create-a-separate-configmap-from-a-file&#34;&gt;Method 2: Create a separate ConfigMap from a file&lt;/h3&gt;
&lt;p&gt;Use this method if you prefer to write your Grafana Agent Flow configuration in a separate file.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Write your configuration to a file, for example, &lt;code&gt;config.river&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;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;// Write your Agent config here:
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;li&gt;
&lt;p&gt;Create a ConfigMap called &lt;code&gt;agent-config&lt;/code&gt; from the above 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;kubectl create configmap --namespace &amp;lt;NAMESPACE&amp;gt; agent-config &amp;#34;--from-file=config.river=./config.river&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;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The namespace you used for your Grafana Agent Flow installation.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Modify Helm Chart&amp;rsquo;s configuration in your &lt;code&gt;values.yaml&lt;/code&gt; to use the existing ConfigMap:&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;agent:
  mode: &amp;#34;flow&amp;#34;
  configMap:
    create: false
    name: agent-config
    key: config.river&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command in a terminal to upgrade your Grafana Agent Flow installation:&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 upgrade --namespace &amp;lt;NAMESPACE&amp;gt; &amp;lt;RELEASE_NAME&amp;gt; grafana/grafana-agent -f &amp;lt;VALUES_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;NAMESPACE&amp;gt;&lt;/code&gt;&lt;/em&gt;: The namespace you used for your Grafana Agent Flow installation.&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 you used for your Grafana Agent Flow installation.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;code&gt;&amp;lt;VALUES_PATH&amp;gt;&lt;/code&gt;&lt;/em&gt;: The path to your copy of &lt;code&gt;values.yaml&lt;/code&gt; to use.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="configure-grafana-agent-flow-on-kubernetes">Configure Grafana Agent Flow on Kubernetes&lt;/h1>
&lt;p>This page describes how to apply a new configuration to Grafana Agent Flow
when running on Kubernetes with the Helm chart. It assumes that:&lt;/p></description></item><item><title>Configure Grafana Agent Flow on Linux</title><link>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-linux/</link><pubDate>Wed, 11 Sep 2024 17:43:35 +0000</pubDate><guid>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-linux/</guid><content><![CDATA[&lt;h1 id=&#34;configure-grafana-agent-flow-on-linux&#34;&gt;Configure Grafana Agent Flow on Linux&lt;/h1&gt;
&lt;p&gt;To configure Grafana Agent Flow on Linux, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the default configuration file at &lt;code&gt;/etc/grafana-agent-flow.river&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command in a terminal to reload the configuration file:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;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 reload grafana-agent-flow&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To change the configuration file used by the service, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the environment file for the service:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Debian or Ubuntu: edit &lt;code&gt;/etc/default/grafana-agent-flow&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;RHEL/Fedora or SUSE/openSUSE: edit &lt;code&gt;/etc/sysconfig/grafana-agent-flow&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change the contents of the &lt;code&gt;CONFIG_FILE&lt;/code&gt; environment variable to point to
the new configuration file to use.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the Grafana Agent Flow 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;sudo systemctl restart grafana-agent-flow&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;pass-additional-command-line-flags&#34;&gt;Pass additional command-line flags&lt;/h2&gt;
&lt;p&gt;By default, the Grafana Agent Flow service launches with the 
    &lt;a href=&#34;/docs/agent/v0.43/flow/reference/cli/run/&#34;&gt;run&lt;/a&gt;
command, passing the following flags:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;--storage.path=/var/lib/grafana-agent-flow&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To pass additional command-line flags to the Grafana Agent Flow binary, perform
the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the environment file for the service:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Debian-based systems: edit &lt;code&gt;/etc/default/grafana-agent-flow&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;RedHat or SUSE-based systems: edit &lt;code&gt;/etc/sysconfig/grafana-agent-flow&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change the contents of the &lt;code&gt;CUSTOM_ARGS&lt;/code&gt; environment variable to specify
command-line flags to pass.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the Grafana Agent Flow 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;sudo systemctl restart grafana-agent-flow&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To see the list of valid command-line flags that can be passed to the service,
refer to the documentation for the 
    &lt;a href=&#34;/docs/agent/v0.43/flow/reference/cli/run/&#34;&gt;run&lt;/a&gt; command.&lt;/p&gt;
&lt;h2 id=&#34;expose-the-ui-to-other-machines&#34;&gt;Expose the UI to other machines&lt;/h2&gt;
&lt;p&gt;By default, Grafana Agent Flow listens on the local network for its HTTP
server. This prevents other machines on the network from being able to access
the 
    &lt;a href=&#34;/docs/agent/v0.43/flow/tasks/debug/#grafana-agent-flow-ui&#34;&gt;UI for debugging&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To expose the UI to other machines, complete the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Follow &lt;a href=&#34;#pass-additional-command-line-flags&#34;&gt;Pass additional command-line flags&lt;/a&gt;
to edit command line flags passed to Grafana Agent Flow, including the
following customizations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Add the following command line argument to &lt;code&gt;CUSTOM_ARGS&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;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;--server.http.listen-addr=LISTEN_ADDR:12345&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace &lt;code&gt;LISTEN_ADDR&lt;/code&gt; with an address which other machines on the
network have access to, like the network IP address of the machine
Grafana Agent Flow is running on.&lt;/p&gt;
&lt;p&gt;To listen on all interfaces, replace &lt;code&gt;LISTEN_ADDR&lt;/code&gt; with &lt;code&gt;0.0.0.0&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="configure-grafana-agent-flow-on-linux">Configure Grafana Agent Flow on Linux&lt;/h1>
&lt;p>To configure Grafana Agent Flow on Linux, perform the following steps:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Edit the default configuration file at &lt;code>/etc/grafana-agent-flow.river&lt;/code>.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Run the following command in a terminal to reload the configuration file:&lt;/p></description></item><item><title>Configure Grafana Agent Flow on macOS</title><link>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-macos/</link><pubDate>Wed, 11 Sep 2024 17:43:35 +0000</pubDate><guid>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-macos/</guid><content><![CDATA[&lt;h1 id=&#34;configure-grafana-agent-flow-on-macos&#34;&gt;Configure Grafana Agent Flow on macOS&lt;/h1&gt;
&lt;p&gt;To configure Grafana Agent Flow on macOS, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the default configuration file at &lt;code&gt;$(brew --prefix)/etc/grafana-agent-flow/config.river&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command in a terminal to restart the Grafana Agent Flow 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;brew services restart grafana-agent-flow&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;configure-the-grafana-agent-flow-service&#34;&gt;Configure the Grafana Agent Flow service&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;Due to limitations in Homebrew, customizing the service used by
Grafana Agent Flow on macOS requires changing the Homebrew formula and
reinstalling Grafana Agent Flow.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;To customize the Grafana Agent Flow service on macOS, perform the following
steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;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;brew edit grafana-agent-flow&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This will open the Grafana Agent Flow Homebrew Formula in an editor.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Modify the &lt;code&gt;service&lt;/code&gt; section as desired to change things such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The River configuration file used by Grafana Agent Flow.&lt;/li&gt;
&lt;li&gt;Flags passed to the Grafana Agent Flow binary.&lt;/li&gt;
&lt;li&gt;Location of log files.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When you are done, save the file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reinstall the Grafana Agent Flow Formula by running 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;brew reinstall grafana-agent-flow&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the Grafana Agent Flow service by running the 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;brew services restart grafana-agent-flow&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;expose-the-ui-to-other-machines&#34;&gt;Expose the UI to other machines&lt;/h2&gt;
&lt;p&gt;By default, Grafana Agent Flow listens on the local network for its HTTP
server. This prevents other machines on the network from being able to access
the 
    &lt;a href=&#34;/docs/agent/v0.43/flow/tasks/debug/#grafana-agent-flow-ui&#34;&gt;UI for debugging&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To expose the UI to other machines, complete the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Follow &lt;a href=&#34;#configure-the-grafana-agent-flow-service&#34;&gt;Configure the Grafana Agent Flow service&lt;/a&gt;
to edit command line flags passed to Grafana Agent Flow, including the
following customizations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Modify the line inside the &lt;code&gt;service&lt;/code&gt; block containing
&lt;code&gt;--server.http.listen-addr=127.0.0.1:12345&lt;/code&gt;, replacing &lt;code&gt;127.0.0.1&lt;/code&gt; with
the address which other machines on the network have access to, like the
network IP address of the machine Grafana Agent Flow is running on.&lt;/p&gt;
&lt;p&gt;To listen on all interfaces, replace &lt;code&gt;127.0.0.1&lt;/code&gt; with &lt;code&gt;0.0.0.0&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="configure-grafana-agent-flow-on-macos">Configure Grafana Agent Flow on macOS&lt;/h1>
&lt;p>To configure Grafana Agent Flow on macOS, perform the following steps:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Edit the default configuration file at &lt;code>$(brew --prefix)/etc/grafana-agent-flow/config.river&lt;/code>.&lt;/p></description></item><item><title>Configure Grafana Agent Flow on Windows</title><link>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-windows/</link><pubDate>Wed, 11 Sep 2024 17:43:35 +0000</pubDate><guid>https://grafana.com/docs/agent/v0.43/flow/tasks/configure/configure-windows/</guid><content><![CDATA[&lt;h1 id=&#34;configure-grafana-agent-flow-on-windows&#34;&gt;Configure Grafana Agent Flow on Windows&lt;/h1&gt;
&lt;p&gt;To configure Grafana Agent Flow on Windows, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Edit the default configuration file at &lt;code&gt;C:\Program Files\Grafana Agent Flow\config.river&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the Grafana Agent Flow service:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the Windows Services manager (&lt;code&gt;services.msc&lt;/code&gt;):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Right click on the Start Menu and select &lt;strong&gt;Run&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Type &lt;code&gt;services.msc&lt;/code&gt; and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Right click on the service called &lt;strong&gt;Grafana Agent Flow&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;strong&gt;All Tasks &amp;gt; Restart&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;change-command-line-arguments&#34;&gt;Change command-line arguments&lt;/h2&gt;
&lt;p&gt;By default, the Grafana Agent Flow service will launch and pass the
following arguments to the Grafana Agent Flow binary:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;run&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;C:\Program Files\Grafana Agent Flow\config.river&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--storage.path=C:\ProgramData\Grafana Agent Flow\data&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To change the set of command-line arguments passed to the Grafana Agent
binary, perform the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the Registry Editor:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Right click on the Start Menu and select &lt;strong&gt;Run&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Type &lt;code&gt;regedit&lt;/code&gt; and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the key at the path &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Grafana\Grafana Agent Flow&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Double-click on the value called &lt;strong&gt;Arguments&lt;/strong&gt;*.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the dialog box, enter the new set of arguments to pass to the Grafana Agent binary.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the Grafana Agent Flow service:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the Windows Services manager (&lt;code&gt;services.msc&lt;/code&gt;):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Right click on the Start Menu and select &lt;strong&gt;Run&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Type &lt;code&gt;services.msc&lt;/code&gt; and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Right click on the service called &lt;strong&gt;Grafana Agent Flow&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;strong&gt;All Tasks &amp;gt; Restart&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;expose-the-ui-to-other-machines&#34;&gt;Expose the UI to other machines&lt;/h2&gt;
&lt;p&gt;By default, Grafana Agent Flow listens on the local network for its HTTP
server. This prevents other machines on the network from being able to access
the 
    &lt;a href=&#34;/docs/agent/v0.43/flow/tasks/debug/#grafana-agent-flow-ui&#34;&gt;UI for debugging&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To expose the UI to other machines, complete the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Follow &lt;a href=&#34;#change-command-line-arguments&#34;&gt;Change command-line arguments&lt;/a&gt;
to edit command line flags passed to Grafana Agent Flow, including the
following customizations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Add the following command line argument:&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;--server.http.listen-addr=LISTEN_ADDR:12345&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Replace &lt;code&gt;LISTEN_ADDR&lt;/code&gt; with an address which other machines on the
network have access to, like the network IP address of the machine
Grafana Agent Flow is running on.&lt;/p&gt;
&lt;p&gt;To listen on all interfaces, replace &lt;code&gt;LISTEN_ADDR&lt;/code&gt; with &lt;code&gt;0.0.0.0&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="configure-grafana-agent-flow-on-windows">Configure Grafana Agent Flow on Windows&lt;/h1>
&lt;p>To configure Grafana Agent Flow on Windows, perform the following steps:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Edit the default configuration file at &lt;code>C:\Program Files\Grafana Agent Flow\config.river&lt;/code>.&lt;/p></description></item></channel></rss>