<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Raspberry Pi Network Monitor: Free Dashboard for Home Internet Traffic	</title>
	<atom:link href="https://www.technicallywizardry.com/raspberry-pi-network-monitor/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/</link>
	<description>Any sufficiently advanced technology is indistinguishable from magic.</description>
	<lastBuildDate>Mon, 02 Oct 2023 15:42:28 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.1</generator>
	<item>
		<title>
		By: PaulM		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-7243</link>

		<dc:creator><![CDATA[PaulM]]></dc:creator>
		<pubDate>Wed, 09 Aug 2023 21:32:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-7243</guid>

					<description><![CDATA[Brilliant, many thanks for your efforts. Just what I was looking for to keep an eye on the use of the internet by my teenage grand-daughters. Took me a couple of hours to set up the Pi, install the software and get it all working, simply connected to the network behind my ISP router :-)
Just one question, how easy would it be to add a list of named IP addresses and get the (known) names displayed in Grafana in place of the IP addresses ? I&#039;m not a programmer but can usally cobble together enough Python to get a job done, some pointers as to how to achieve this would be extremely helpful.]]></description>
			<content:encoded><![CDATA[<p>Brilliant, many thanks for your efforts. Just what I was looking for to keep an eye on the use of the internet by my teenage grand-daughters. Took me a couple of hours to set up the Pi, install the software and get it all working, simply connected to the network behind my ISP router 🙂<br />
Just one question, how easy would it be to add a list of named IP addresses and get the (known) names displayed in Grafana in place of the IP addresses ? I&#8217;m not a programmer but can usally cobble together enough Python to get a job done, some pointers as to how to achieve this would be extremely helpful.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: PiNetTester		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-3708</link>

		<dc:creator><![CDATA[PiNetTester]]></dc:creator>
		<pubDate>Tue, 09 Aug 2022 23:46:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-3708</guid>

					<description><![CDATA[So I have a cable connection and therefore can&#039;t put the Pi on the WAN side of the main router. I also don&#039;t have a USB Ethernet port so looking to use only the on board Pi port (using a virtual interface/IP) (https://forums.raspberrypi.com/viewtopic.php?p=998957#p998957)

I was looking to set the Pi up on the LAN side of the ISP router. The 192.168.0.x/24 network would only have one ip (.1) on the LAN of the ISP router and one ip (.2) on the WAN side of the Pi. The Pi would then have a second (virtual) interface with 192.168.1.x/24 subnet running the DHCP server. All network devices would be on the 192.168.1.x/24 subnet.

Any reason why this wouldn&#039;t work? I know it would double the bandwidth used on the Pi ethernet connection but it&#039;s 1Gbps so it should have lots of headroom.

I briefly tried it but couldn&#039;t get it to respond to DHCP requests.]]></description>
			<content:encoded><![CDATA[<p>So I have a cable connection and therefore can&#8217;t put the Pi on the WAN side of the main router. I also don&#8217;t have a USB Ethernet port so looking to use only the on board Pi port (using a virtual interface/IP) (<a href="https://forums.raspberrypi.com/viewtopic.php?p=998957#p998957" rel="ugc nofollow external noopener noreferrer" data-wpel-link="external" target="_blank" class="external">[link to forums.raspberrypi.com]</a>)</p>
<p>I was looking to set the Pi up on the LAN side of the ISP router. The 192.168.0.x/24 network would only have one ip (.1) on the LAN of the ISP router and one ip (.2) on the WAN side of the Pi. The Pi would then have a second (virtual) interface with 192.168.1.x/24 subnet running the DHCP server. All network devices would be on the 192.168.1.x/24 subnet.</p>
<p>Any reason why this wouldn&#8217;t work? I know it would double the bandwidth used on the Pi ethernet connection but it&#8217;s 1Gbps so it should have lots of headroom.</p>
<p>I briefly tried it but couldn&#8217;t get it to respond to DHCP requests.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rimno		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-3538</link>

		<dc:creator><![CDATA[rimno]]></dc:creator>
		<pubDate>Thu, 28 Jul 2022 11:39:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-3538</guid>

					<description><![CDATA[Hello, Zane.
Thank you for this tutorial.
I don&#039;t know if you are still checking out this page but I&#039;ve got a question.
I seem to have got the python code and dashboard set up and working, but I&#039;ve got two problems, and I was hoping to get some help.

First, the downloaded bytes seem to be very small. Like I am only getting about tenth or lesser bytes recorded in the dashboard.
My guess would be that when tcpdump outputs multiple lines of same contents very fast, the python code seems to only get the first or the last and discards all the duplicates, which is not ideal as the length (bytes) get decreased significantly.

Second, I seem to not get some of the records from tcpdump to transfer to the dashboard.
eq. While I can find the below record in the raspberry pi (192.168.100.189:8000/metrics), &quot;comcast.net&quot; doesn&#039;t show up in the &quot;bytes transferred (by server)&quot; part of the dashboard.
&quot;ntm_packets_total{dst=&quot;comcast.net&quot;,proto=&quot;udp&quot;,service=&quot;&quot;,src=&quot;192.168.100.191&quot;} 7056.0&quot;
This, I have no idea why it&#039;s happening.

Any ideas or help would be greatly appreciated.
Thank you in advance.]]></description>
			<content:encoded><![CDATA[<p>Hello, Zane.<br />
Thank you for this tutorial.<br />
I don&#8217;t know if you are still checking out this page but I&#8217;ve got a question.<br />
I seem to have got the python code and dashboard set up and working, but I&#8217;ve got two problems, and I was hoping to get some help.</p>
<p>First, the downloaded bytes seem to be very small. Like I am only getting about tenth or lesser bytes recorded in the dashboard.<br />
My guess would be that when tcpdump outputs multiple lines of same contents very fast, the python code seems to only get the first or the last and discards all the duplicates, which is not ideal as the length (bytes) get decreased significantly.</p>
<p>Second, I seem to not get some of the records from tcpdump to transfer to the dashboard.<br />
eq. While I can find the below record in the raspberry pi (192.168.100.189:8000/metrics), &#8220;comcast.net&#8221; doesn&#8217;t show up in the &#8220;bytes transferred (by server)&#8221; part of the dashboard.<br />
&#8220;ntm_packets_total{dst=&#8221;comcast.net&#8221;,proto=&#8221;udp&#8221;,service=&#8221;&#8221;,src=&#8221;192.168.100.191&#8243;} 7056.0&#8243;<br />
This, I have no idea why it&#8217;s happening.</p>
<p>Any ideas or help would be greatly appreciated.<br />
Thank you in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dan		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-3211</link>

		<dc:creator><![CDATA[Dan]]></dc:creator>
		<pubDate>Thu, 07 Jul 2022 03:45:02 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-3211</guid>

					<description><![CDATA[Zane, How can I make this totally passive so I could install this at a customer site and collect usage data.  I just want to be able to collect usage data for a week or two so I know what is actually being consumed average and peak.  It would need to store the data  on the RPI or have an email method to send me the collected resulting data.  That way I don&#039;t have to reconfigure anything at the customer site.  Thx]]></description>
			<content:encoded><![CDATA[<p>Zane, How can I make this totally passive so I could install this at a customer site and collect usage data.  I just want to be able to collect usage data for a week or two so I know what is actually being consumed average and peak.  It would need to store the data  on the RPI or have an email method to send me the collected resulting data.  That way I don&#8217;t have to reconfigure anything at the customer site.  Thx</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-2979</link>

		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Tue, 07 Jun 2022 12:22:10 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-2979</guid>

					<description><![CDATA[Thanks,
followed the above, using rpi 3B+ sat inside my network, with Grafana installed on HomeAssistant(rpi 4)
Url in Grafana is set to the 3B+ port 8000
If I do Save and test on teh data source I get the following error
Error reading Prometheus: bad_response: readObjectStart: expect { or n, but found #, error found in #1 byte of ...&#124;# HELP pyth&#124;..., bigger context ...&#124;# HELP python_gc_objects_collected_total Objects co&#124;...
it looks like grafana is reading everything including the # HELP # TYPE etc.  is there a way to get it to ignore these? so it only reads what it is expecting??
Thanks]]></description>
			<content:encoded><![CDATA[<p>Thanks,<br />
followed the above, using rpi 3B+ sat inside my network, with Grafana installed on HomeAssistant(rpi 4)<br />
Url in Grafana is set to the 3B+ port 8000<br />
If I do Save and test on teh data source I get the following error<br />
Error reading Prometheus: bad_response: readObjectStart: expect { or n, but found #, error found in #1 byte of &#8230;|# HELP pyth|&#8230;, bigger context &#8230;|# HELP python_gc_objects_collected_total Objects co|&#8230;<br />
it looks like grafana is reading everything including the # HELP # TYPE etc.  is there a way to get it to ignore these? so it only reads what it is expecting??<br />
Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bob		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-2965</link>

		<dc:creator><![CDATA[Bob]]></dc:creator>
		<pubDate>Wed, 01 Jun 2022 10:36:36 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-2965</guid>

					<description><![CDATA[Hi there, thanks for the tutorial. I am running into a problem that I cannot connect the prometheus instance to my existing Grafana server. I am running Grafana inside Home Assistant and this is the error I get. 

Error reading Prometheus: Post &quot;http://10.71.71.1:8000/metrics/api/v1/query&quot;: dial tcp 10.71.71.1:8000: connect: no route to host. -10.71.71.0 is my subnet.

I have tried doing port scans on the router and found that both ports 8000 and 9090 aren&#039;t open even though both programs - python and prometheus - are running without any errors.
Thanks in advance.]]></description>
			<content:encoded><![CDATA[<p>Hi there, thanks for the tutorial. I am running into a problem that I cannot connect the prometheus instance to my existing Grafana server. I am running Grafana inside Home Assistant and this is the error I get. </p>
<p>Error reading Prometheus: Post &#8220;http://10.71.71.1:8000/metrics/api/v1/query&#8221;: dial tcp 10.71.71.1:8000: connect: no route to host. -10.71.71.0 is my subnet.</p>
<p>I have tried doing port scans on the router and found that both ports 8000 and 9090 aren&#8217;t open even though both programs &#8211; python and prometheus &#8211; are running without any errors.<br />
Thanks in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Simon		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-2909</link>

		<dc:creator><![CDATA[Simon]]></dc:creator>
		<pubDate>Mon, 23 May 2022 12:22:02 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-2909</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-540&quot;&gt;(zane) / Technically Wizardry&lt;/a&gt;.

Hello, I&#039;m finally about to give this a go!

I&#039;m keeping the router as the DHCP server and will connect the pi to that and have the router set the static address.

Do I then just follow the alternate settings or do I still need to do the bridging eth0 and eth1 step in your original reply. and then install what after that?

Thanks!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-540" data-wpel-link="internal" rel="internal follow noopener" class="internal">(zane) / Technically Wizardry</a>.</p>
<p>Hello, I&#8217;m finally about to give this a go!</p>
<p>I&#8217;m keeping the router as the DHCP server and will connect the pi to that and have the router set the static address.</p>
<p>Do I then just follow the alternate settings or do I still need to do the bridging eth0 and eth1 step in your original reply. and then install what after that?</p>
<p>Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: spydr		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-2865</link>

		<dc:creator><![CDATA[spydr]]></dc:creator>
		<pubDate>Thu, 19 May 2022 22:17:51 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-2865</guid>

					<description><![CDATA[Thanks for the tutorial!  I have an alternate design.  I work from home, and my company provides a hardware firewall, that also acts as the router for my home network.  Everything (work and non-work data) goes through my wireless router, acting as a access point (no DHCP).  I&#039;m trying to determine how much of my monthly data usage is due to my kids gaming, etc.  So the pi is purely for monitoring throughput on the home side.  The problem I&#039;m having is in the Grafana setup, everything is in terms of Mbps in your dashboard.   I&#039;ve fiddled with adding panels, and changing the definition of the existing ones, but I&#039;ve had no luck.  I&#039;m looking for the total data passed for each device.  Any ideas on how I can modify/create a panel to summarize my total usage/time period based on IP address?  Here&#039;s an example of how my ISP shows my total usage: https://imgur.com/a/tO5I3Wu  
Thanks!]]></description>
			<content:encoded><![CDATA[<p>Thanks for the tutorial!  I have an alternate design.  I work from home, and my company provides a hardware firewall, that also acts as the router for my home network.  Everything (work and non-work data) goes through my wireless router, acting as a access point (no DHCP).  I&#8217;m trying to determine how much of my monthly data usage is due to my kids gaming, etc.  So the pi is purely for monitoring throughput on the home side.  The problem I&#8217;m having is in the Grafana setup, everything is in terms of Mbps in your dashboard.   I&#8217;ve fiddled with adding panels, and changing the definition of the existing ones, but I&#8217;ve had no luck.  I&#8217;m looking for the total data passed for each device.  Any ideas on how I can modify/create a panel to summarize my total usage/time period based on IP address?  Here&#8217;s an example of how my ISP shows my total usage: <a href="https://imgur.com/a/tO5I3Wu" rel="ugc follow noopener noreferrer" data-wpel-link="exclude" class="excluded-link">[link to imgur.com]</a><br />
Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Papu Gomez		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-2503</link>

		<dc:creator><![CDATA[Papu Gomez]]></dc:creator>
		<pubDate>Thu, 14 Apr 2022 19:38:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-2503</guid>

					<description><![CDATA[Hi, I really appreciate this project and it can fit in perfectly with the master&#039;s thesis I am doing. I have a small problem when representing the data in Grafana for each device. I am running an access point in bridge mode with the hostapd daemon on a raspberry pi. So when prometheus captures the information it only shows the devices connected by LAN but it doesn&#039;t show Grafana any wireless devices. I would greatly appreciate some clarification on where I can fix this problem.]]></description>
			<content:encoded><![CDATA[<p>Hi, I really appreciate this project and it can fit in perfectly with the master&#8217;s thesis I am doing. I have a small problem when representing the data in Grafana for each device. I am running an access point in bridge mode with the hostapd daemon on a raspberry pi. So when prometheus captures the information it only shows the devices connected by LAN but it doesn&#8217;t show Grafana any wireless devices. I would greatly appreciate some clarification on where I can fix this problem.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Matt		</title>
		<link>https://www.technicallywizardry.com/raspberry-pi-network-monitor/#comment-2169</link>

		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Tue, 01 Feb 2022 02:12:54 +0000</pubDate>
		<guid isPermaLink="false">https://www.technicallywizardry.com/?p=8896#comment-2169</guid>

					<description><![CDATA[Wow, so awesome!  Thanks for sharing!

First: This whole setup works perfectly with Raspberry Pi OS - Bullseye, prometheus 2.33 and Grafana 8.3.4.  

Second: Like others have commented here, it would be nice to have host names in the graphs rather than IP addresses. I&#039;ve got 30 IP devices in the house, it&#039;s hard to keep track.  Here&#039;s how I do it: 
1. Manually maintain a list of IP devices --&#062; hostnames I&#039;ve assigned in /etc/hosts:
   192.168.0.2       -network_accesspoint_basement
   192.168.0.102   -security_WyzeCam_back_yard
   192.168.0.117   -entertainment_Sonos_kitchen
   etc.
2. Notice the dash in front of each device name.  So in the Grafana dashboard I edited the Regex for LocalIPs to be &quot;/^\-&#124;^192.168.0./&quot; 
3. In the first several hours/days using this system, some forgotten devices pop up.  So just edit /etc/hosts, save, then (since I&#039;m using systemd for the tcpdump, etc.) just restart the service to get the new IP--&#062;hostname mapping: 
sudo systemctl stop network-metrics
sudo systemctl start network-metrics

Works pretty well so far!]]></description>
			<content:encoded><![CDATA[<p>Wow, so awesome!  Thanks for sharing!</p>
<p>First: This whole setup works perfectly with Raspberry Pi OS &#8211; Bullseye, prometheus 2.33 and Grafana 8.3.4.  </p>
<p>Second: Like others have commented here, it would be nice to have host names in the graphs rather than IP addresses. I&#8217;ve got 30 IP devices in the house, it&#8217;s hard to keep track.  Here&#8217;s how I do it:<br />
1. Manually maintain a list of IP devices &#8211;&gt; hostnames I&#8217;ve assigned in /etc/hosts:<br />
   192.168.0.2       -network_accesspoint_basement<br />
   192.168.0.102   -security_WyzeCam_back_yard<br />
   192.168.0.117   -entertainment_Sonos_kitchen<br />
   etc.<br />
2. Notice the dash in front of each device name.  So in the Grafana dashboard I edited the Regex for LocalIPs to be &#8220;/^\-|^192.168.0./&#8221;<br />
3. In the first several hours/days using this system, some forgotten devices pop up.  So just edit /etc/hosts, save, then (since I&#8217;m using systemd for the tcpdump, etc.) just restart the service to get the new IP&#8211;&gt;hostname mapping:<br />
sudo systemctl stop network-metrics<br />
sudo systemctl start network-metrics</p>
<p>Works pretty well so far!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 3/103 objects using disk
Page Caching using disk: enhanced 
Minified using disk
Database Caching using disk

Served from: technicallywizardry.com @ 2023-10-04 00:21:12 by W3 Total Cache
-->