<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Netdata v2: disable the netflow and otel plugins to save RAM]]></title>
		<link>https://forum.iredmail.org/topic21226-netdata-v2-disable-the-netflow-and-otel-plugins-to-save-ram.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21226.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Netdata v2: disable the netflow and otel plugins to save RAM.]]></description>
		<lastBuildDate>Tue, 06 Oct 2026 18:05:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Netdata v2: disable the netflow and otel plugins to save RAM]]></title>
			<link>https://forum.iredmail.org/post92265.html#p92265</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.8.8<br />- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer<br />- Linux/BSD distribution name and version: Debian 12 (bookworm)<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL (MariaDB)<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No, open source iRedAdmin<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue. Not an issue report; this is a tip for other users.<br />====</p><br /><p>BACKGROUND<br />----------</p><p>Recent iRedMail releases recommend upgrading Netdata to v2.x. I upgraded<br />from Netdata v1.44.1 to v2.12.0 on a small iRedMail server (2 GB RAM, no<br />SOGo, ClamAV disabled to save memory). After the upgrade, Netdata used a<br />lot more memory: about 380 MB across all of its processes. Its main<br />process alone had used about 116 MB under v1.</p><p>Most of the increase came from two plugins that Netdata v2 starts by<br />default:</p><p>&nbsp; netflow-plugin&nbsp; (about 143 MB)<br />&nbsp; &nbsp; &nbsp; Collects NetFlow / IPFIX / sFlow flow records exported by routers<br />&nbsp; &nbsp; &nbsp; and switches.</p><p>&nbsp; otel-plugin&nbsp; &nbsp; &nbsp;(about 34 MB)<br />&nbsp; &nbsp; &nbsp; Receives OpenTelemetry (OTLP) metrics and logs pushed by other<br />&nbsp; &nbsp; &nbsp; applications.</p><p>A typical iRedMail server neither receives flow exports from network gear<br />nor has applications pushing OpenTelemetry data to Netdata. On a server<br />like that, both plugins sit idle while holding memory.</p><p>With both disabled, Netdata&#039;s total memory use dropped from about 380 MB<br />to about 211 MB. All the normal charts (system, Nginx, MySQL/MariaDB,<br />PHP-FPM, and so on) kept working.</p><p>Your numbers will differ. Check your own server with this command<br />(RSS is in KB):</p><p>&nbsp; &nbsp; ps -eo rss,comm --sort=-rss | grep -E &#039;netflow|otel|netdata|plugin&#039;</p><br /><p>WHO SHOULD NOT DO THIS<br />----------------------</p><p>Leave these plugins enabled if any of the following applies:</p><p>&nbsp; * You point routers, switches or firewalls at this server to export<br />&nbsp; &nbsp; NetFlow / IPFIX / sFlow data and view it in Netdata. That is exactly<br />&nbsp; &nbsp; what netflow-plugin does.</p><p>&nbsp; * You have applications or collectors sending OpenTelemetry (OTLP)<br />&nbsp; &nbsp; metrics or logs to this Netdata agent. That is what otel-plugin does.</p><p>&nbsp; * You are not sure whether anything uses them and have plenty of RAM.<br />&nbsp; &nbsp; In that case the saving may not be worth the risk.</p><p>If you only use Netdata&#039;s built-in dashboard to watch the mail server<br />itself, you most likely use neither.</p><br /><p>HOW TO DISABLE THEM<br />-------------------</p><p>These steps were done on Debian 12 with Netdata installed the way<br />iRedMail installs it: the static build under /opt/netdata. They may<br />help on other distributions, but the location of netdata.conf can<br />differ. With a native distro package, for example, it is usually<br />/etc/netdata/netdata.conf. Adjust paths for your system.</p><p>Step 1. Check that the two plugin switches exist in your version. The<br />&nbsp; &nbsp; &nbsp; &nbsp; running configuration lists every option, with defaults<br />&nbsp; &nbsp; &nbsp; &nbsp; commented out:</p><p>&nbsp; &nbsp; curl -s <a href="http://127.0.0.1:19999/netdata.conf">http://127.0.0.1:19999/netdata.conf</a> | sed -n &#039;/^\[plugins\]/,/^\[/p&#039; | grep -E &#039;netflow|otel&#039;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; You should see &quot;# netflow = yes&quot; and &quot;# otel = yes&quot;. Adjust the<br />&nbsp; &nbsp; &nbsp; &nbsp; port if your Netdata does not listen on 19999.</p><p>Step 2. Back up the config file:</p><p>&nbsp; &nbsp; cp -a /opt/netdata/etc/netdata/netdata.conf /opt/netdata/etc/netdata/netdata.conf.bak</p><p>Step 3. Edit /opt/netdata/etc/netdata/netdata.conf. You can also use<br />&nbsp; &nbsp; &nbsp; &nbsp; Netdata&#039;s helper:</p><p>&nbsp; &nbsp; /opt/netdata/etc/netdata/edit-config netdata.conf</p><p>&nbsp; &nbsp; &nbsp; &nbsp; If the file already has a [plugins] section, add the two lines<br />&nbsp; &nbsp; &nbsp; &nbsp; below to it. Otherwise, add this whole block at the end of the<br />&nbsp; &nbsp; &nbsp; &nbsp; file:</p><p>&nbsp; &nbsp; [plugins]<br />&nbsp; &nbsp; &nbsp; &nbsp; netflow = no<br />&nbsp; &nbsp; &nbsp; &nbsp; otel = no</p><p>Step 4. Restart Netdata:</p><p>&nbsp; &nbsp; systemctl restart netdata</p><p>Step 5. Verify. After about 30 seconds, run:</p><p>&nbsp; &nbsp; systemctl is-active netdata<br />&nbsp; &nbsp; ps -eo rss,comm --sort=-rss | grep -E &#039;netflow|otel&#039;<br />&nbsp; &nbsp; curl -s <a href="http://127.0.0.1:19999/netdata.conf">http://127.0.0.1:19999/netdata.conf</a> | grep -E &#039;^\s*(netflow|otel) =&#039;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; - The first command should print &quot;active&quot;.<br />&nbsp; &nbsp; &nbsp; &nbsp; - The second command should print nothing.<br />&nbsp; &nbsp; &nbsp; &nbsp; - The third command should show &quot;netflow = no&quot; and &quot;otel = no&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; without a leading &quot;#&quot;.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Then open your Netdata dashboard and confirm your usual charts are<br />&nbsp; &nbsp; &nbsp; &nbsp; still there.</p><br /><p>NOTES<br />-----</p><p>&nbsp; * The setting survives Netdata upgrades. Running a newer static<br />&nbsp; &nbsp; installer (netdata-x86_64-vX.Y.Z.gz.run) left my existing<br />&nbsp; &nbsp; netdata.conf untouched.</p><p>&nbsp; * To undo, remove the two lines (or set them to &quot;yes&quot;) and restart<br />&nbsp; &nbsp; Netdata.</p><p>&nbsp; * The same [plugins] section can switch off other plugins you do not<br />&nbsp; &nbsp; need, such as &quot;ebpf&quot; or &quot;network-viewer&quot;. Check what each one does<br />&nbsp; &nbsp; before disabling it.</p><p>&nbsp; * Measure on your own server before and after. The figures above come<br />&nbsp; &nbsp; from one small server and are only an indication.</p>]]></description>
			<author><![CDATA[null@example.com (wayne.workman)]]></author>
			<pubDate>Tue, 06 Oct 2026 18:05:26 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92265.html#p92265</guid>
		</item>
	</channel>
</rss>
