<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Monitor Grafana Agent Flow on Grafana Labs</title><link>https://grafana.com/docs/agent/v0.44/flow/tasks/monitor/</link><description>Recent content in Monitor Grafana Agent Flow on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/agent/v0.44/flow/tasks/monitor/index.xml" rel="self" type="application/rss+xml"/><item><title>Monitor controller</title><link>https://grafana.com/docs/agent/v0.44/flow/tasks/monitor/controller_metrics/</link><pubDate>Wed, 29 Jan 2025 11:00:55 +0000</pubDate><guid>https://grafana.com/docs/agent/v0.44/flow/tasks/monitor/controller_metrics/</guid><content><![CDATA[&lt;h1 id=&#34;how-to-monitor-controller&#34;&gt;How to monitor controller&lt;/h1&gt;
&lt;p&gt;The Grafana Agent Flow 
    &lt;a href=&#34;/docs/agent/v0.44/flow/concepts/component_controller/&#34;&gt;component controller&lt;/a&gt; exposes Prometheus metrics which you can use to investigate the controller state.&lt;/p&gt;
&lt;p&gt;Metrics for the controller are exposed at the &lt;code&gt;/metrics&lt;/code&gt; HTTP endpoint of the Grafana Agent Flow HTTP server, which defaults to listening on &lt;code&gt;http://localhost:12345&lt;/code&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The documentation for the [&lt;code&gt;grafana-agent run&lt;/code&gt;][grafana-agent run] command describes how to modify the address Grafana Agent Flow listens on for HTTP traffic.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The controller exposes the following metrics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;agent_component_controller_evaluating&lt;/code&gt; (Gauge): Set to &lt;code&gt;1&lt;/code&gt; whenever the  component controller is currently evaluating components.
This value may be misrepresented depending on how fast evaluations complete or how often evaluations occur.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;agent_component_controller_running_components&lt;/code&gt; (Gauge): The current number of running components by health.
The health is represented in the &lt;code&gt;health_type&lt;/code&gt; label.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;agent_component_evaluation_seconds&lt;/code&gt; (Histogram): The time it takes to evaluate components after one of their dependencies is updated.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;agent_component_dependencies_wait_seconds&lt;/code&gt; (Histogram): Time spent by components waiting to be evaluated after one of their dependencies is updated.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;agent_component_evaluation_queue_size&lt;/code&gt; (Gauge): The current number of component evaluations waiting to be performed.&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="how-to-monitor-controller">How to monitor controller&lt;/h1>
&lt;p>The Grafana Agent Flow
&lt;a href="/docs/agent/v0.44/flow/concepts/component_controller/">component controller&lt;/a> exposes Prometheus metrics which you can use to investigate the controller state.&lt;/p>
&lt;p>Metrics for the controller are exposed at the &lt;code>/metrics&lt;/code> HTTP endpoint of the Grafana Agent Flow HTTP server, which defaults to listening on &lt;code>http://localhost:12345&lt;/code>.&lt;/p></description></item><item><title>Monitor components</title><link>https://grafana.com/docs/agent/v0.44/flow/tasks/monitor/component_metrics/</link><pubDate>Wed, 29 Jan 2025 11:00:55 +0000</pubDate><guid>https://grafana.com/docs/agent/v0.44/flow/tasks/monitor/component_metrics/</guid><content><![CDATA[&lt;h1 id=&#34;how-to-monitor-components&#34;&gt;How to monitor components&lt;/h1&gt;
&lt;p&gt;Grafana Agent Flow 
    &lt;a href=&#34;/docs/agent/v0.44/flow/concepts/components/&#34;&gt;components&lt;/a&gt; may optionally expose Prometheus metrics which can be used to investigate the behavior of that component.
These component-specific metrics are only generated when an instance of that component is running.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Component-specific metrics are different than any metrics being processed by the component.
Component-specific metrics are used to expose the state of a component for observability, alerting, and debugging.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Component-specific metrics are exposed at the &lt;code&gt;/metrics&lt;/code&gt; HTTP endpoint of the Grafana Agent Flow HTTP server, which defaults to listening on &lt;code&gt;http://localhost:12345&lt;/code&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The documentation for the [&lt;code&gt;grafana-agent run&lt;/code&gt;][grafana-agent run] command describes how to &amp;gt; modify the address Grafana Agent Flow listens on for HTTP traffic.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Component-specific metrics have a &lt;code&gt;component_id&lt;/code&gt; label matching the component ID generating those metrics.
For example, component-specific metrics for a &lt;code&gt;prometheus.remote_write&lt;/code&gt; component labeled &lt;code&gt;production&lt;/code&gt; will have a &lt;code&gt;component_id&lt;/code&gt; label with the value &lt;code&gt;prometheus.remote_write.production&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The 
    &lt;a href=&#34;/docs/agent/v0.44/flow/reference/components/&#34;&gt;reference documentation&lt;/a&gt; for each component described the list of component-specific metrics that the component exposes.
Not all components expose metrics.&lt;/p&gt;
]]></content><description>&lt;h1 id="how-to-monitor-components">How to monitor components&lt;/h1>
&lt;p>Grafana Agent Flow
&lt;a href="/docs/agent/v0.44/flow/concepts/components/">components&lt;/a> may optionally expose Prometheus metrics which can be used to investigate the behavior of that component.
These component-specific metrics are only generated when an instance of that component is running.&lt;/p></description></item></channel></rss>