{"id":216,"date":"2016-03-14T20:27:37","date_gmt":"2016-03-15T00:57:37","guid":{"rendered":"http:\/\/blog.thescorpius.com\/?p=216"},"modified":"2016-03-23T17:01:31","modified_gmt":"2016-03-23T21:31:31","slug":"dd-wrt-network-statistics-graphics-using-grafana-and-influxdb","status":"publish","type":"post","link":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/","title":{"rendered":"DD-WRT Network Stats Graphics using Grafana and InfluxDB"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-270\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg?resize=648%2C320\" alt=\"Dashboard\" width=\"648\" height=\"320\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg?w=870&amp;ssl=1 870w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg?resize=300%2C148&amp;ssl=1 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>Do you have a DD-WRT enabled router and want network statistics graphics for all the devices at your home or office? It&#8217;s pretty easy with <a href=\"https:\/\/influxdata.com\/\">InfluxDB<\/a> and <a href=\"http:\/\/grafana.org\">Grafana<\/a>!<\/p>\n<p><!--more--><\/p>\n<h2>Installing InfluxDB<\/h2>\n<p>InfluxDB is a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Time_series_database\">time series database<\/a>. This means\u00a0it is specialized in\u00a0collecting, storing and querying\u00a0sequences of measurements over a time interval. It is great doing this job, and since it&#8217;s exactly the job that we need, we&#8217;re going to use it.<\/p>\n<p>As always the steps on this article are for Debian-based Linux distributions. Just issue these commands:<\/p>\n<pre class=\"lang:terminal decode:true\">naikel@htpc ~ $ wget https:\/\/s3.amazonaws.com\/influxdb\/influxdb_0.10.1-1_amd64.deb\r\nnaikel@htpc\u00a0~ $ sudo dpkg -i influxdb_0.10.1-1_amd64.deb\r\nnaikel@htpc ~ $ sudo \/etc\/init.d\/influxdb start\r\nStarting the process influxdb [ OK ]\r\ninfluxdb process was started [ OK ]<\/pre>\n<p>If you prefer to add a PPA to your repository list, follow <a href=\"https:\/\/docs.influxdata.com\/influxdb\/v0.9\/introduction\/installation\/#ubuntu-debian\">these instructions instead<\/a>.<\/p>\n<p>If everything went fine then we can login through the console like this:<\/p>\n<pre class=\"lang:terminal decode:true \">naikel@htpc ~ $ influx\r\nVisit https:\/\/enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.\r\nConnected to http:\/\/localhost:8086 version 0.10.1\r\nInfluxDB shell 0.10.1\r\n&gt;<\/pre>\n<p>Or we could log in through the GUI at http:\/\/localhost:8083<\/p>\n<h2>Configuring InfluxDB<\/h2>\n<p>We need to configure the database for our network traffic data. Let&#8217;s just create a new database called\u00a0<em>traffic.\u00a0<\/em>You can do it through the console or through the Web GUI:<\/p>\n<pre class=\"lang:terminal decode:true \">naikel@htpc ~ $ influx\r\nVisit https:\/\/enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.\r\nConnected to http:\/\/localhost:8086 version 0.10.1\r\nInfluxDB shell 0.10.1\r\n&gt; create database traffic<\/pre>\n<h2>Collecting Data<\/h2>\n<p>Now we need to populate the database with time based data.<\/p>\n<p>First we need to create a script that will run in the DD-WRT enabled router that will let us gather statistics from every device in the same LAN the router is. The idea is that per every device\u00a0in your LAN\u00a0the script will create two\u00a0entries in a new chain in the enabled router&#8217;s iptables, one for incoming packets, and another one for outgoing packets, both with target RETURN, so it returns to the original chain. Then in the FORWARD\u00a0chain we are\u00a0going to send to the RRDIPT chain every single packet there, the RRDIPT chain will count the packet, and then will return to the FORWARD\u00a0chain.<\/p>\n<p>The FORWARD\u00a0chain will have an entry like this:<\/p>\n<pre class=\"lang:terminal decode:true \">root@DD-WRT:\/jffs\/bin# iptables -L FORWARD -n\r\nChain FORWARD (policy ACCEPT)\r\ntarget     prot opt source               destination               \r\nRRDIPT     0    --  0.0.0.0\/0            0.0.0.0\/0<\/pre>\n<p>And the RRDIPT chain will have an entry per every device like this:<\/p>\n<pre class=\"lang:terminal decode:true\">root@DD-WRT:\/jffs\/bin# iptables -L RRDIPT -n\r\nChain RRDIPT (1 references)\r\ntarget     prot opt source               destination         \r\nRETURN     0    --  192.168.100.107      0.0.0.0\/0           \r\nRETURN     0    --  0.0.0.0\/0            192.168.100.107<\/pre>\n<p>You can find\u00a0my complete script <a href=\"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/trafficmon.txt\">here<\/a>. By the way this was not my idea. This is all based in a script called <a href=\"https:\/\/wiki.openwrt.org\/doc\/howto\/wrtbwmon\">wrtbwmon.<\/a><\/p>\n<p>This script has to run every minute in\u00a0the\u00a0router&#8217;s cron\u00a0to gather statistics and every hour or so to detect new devices in your LAN. Also remember to change the DBURL environment variable with the URL of your InfluxDB database in your LAN.<\/p>\n<p>To do this you have a couple of choices depending on if you can enable <a href=\"https:\/\/www.dd-wrt.com\/wiki\/index.php\/Journalling_Flash_File_System\">JFFS<\/a>\u00a0or not in your router.<\/p>\n<h4>JFFS Capable Router<\/h4>\n<p>If your router has enough memory then you can enable JFFS. Follow the<a href=\"https:\/\/www.dd-wrt.com\/wiki\/index.php\/Journalling_Flash_File_System#Directions_for_.28normal.29_users:_using_Web-GUI_Interface\"> instruction on how to enable JFFS in your DD-WRT enabled router<\/a>\u00a0first and copy the <a href=\"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/trafficmon.txt\">script<\/a>\u00a0in \/jffs\/bin and name it trafficmon (no extension). Remember to give the script execution permissions (chmod +x trafficmon).<\/p>\n<p>Now you have to enable cron in the\u00a0<em>Administration<\/em> tab of your\u00a0router and\u00a0paste\u00a0the following lines in the\u00a0<em>Additional Cron Jobs\u00a0<\/em>field:<\/p>\n<pre class=\"lang:terminal decode:true \">* * * * * root \/jffs\/bin\/trafficmon update\r\n0 * * * * root \/jffs\/bin\/trafficmon setup<\/pre>\n<p>If you want to be more elegant, create instead a startup script in\u00a0\/jffs\/etc\/config to include the cron lines you need every time you restart your router:<\/p>\n<pre class=\"lang:terminal decode:true\">root@DD-WRT:\/jffs\/etc\/config# cat trafficmon.startup \r\n#!\/bin\/sh\r\necho '* * * * * root \/jffs\/bin\/trafficmon update' &gt;\/tmp\/trafficmon\r\necho '0 * * * * root \/jffs\/bin\/trafficmon setup' &gt;&gt;\/tmp\/trafficmon\r\nmv \/tmp\/trafficmon \/tmp\/cron.d\/trafficmon\r\n\/jffs\/bin\/trafficmon setup<\/pre>\n<p>Don&#8217; t forget\u00a0to give execution permission to the startup script (chmod +x trafficmon.startup).<\/p>\n<h4>No JFFS Available<\/h4>\n<p>If your router has no enough memory and you don&#8217;t have or\u00a0can&#8217;t create a JFFS partition, then\u00a0you need a web server in your LAN to host the <a href=\"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/trafficmon.txt\">script<\/a>. Enable cron in the\u00a0<em>Administration<\/em> tab of your\u00a0router and\u00a0paste\u00a0the following lines in the\u00a0<em>Additional Cron Jobs\u00a0<\/em>field. Remember to edit them to point to your web server since in the following example we&#8217;re assuming the script is hosted at http:\/\/192.168.100.100\/trafficmon<\/p>\n<pre class=\"lang:terminal decode:true\">* * * * * root if [ -f \/tmp\/root\/trafficmon ]; then ( \/tmp\/root\/trafficmon\u00a0update ); else ( \/usr\/bin\/wget -q http:\/\/192.168.100.100\/trafficmon\u00a0-O \/tmp\/root\/trafficmon &amp;&amp; chmod +x \/tmp\/root\/trafficmon &amp;&amp; \/tmp\/root\/trafficmon setup ); fi\r\n0 * * * * root \/tmp\/root\/trafficmon setup<\/pre>\n<h2>Checking Work So Far<\/h2>\n<p>If you have left your router doing its job for more than a minute then you should already have data in your InfluxDB. You can query\u00a0the data using the InfluxDB&#8217;s Web Interface at port 8083 in your server (remember to<span style=\"text-decoration: underline;\"> choose the database first<\/span> before querying the data):<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/InfluxDB.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-246\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/InfluxDB.png?resize=648%2C462\" alt=\"InfluxDB\" width=\"648\" height=\"462\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/InfluxDB.png?w=781&amp;ssl=1 781w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/InfluxDB.png?resize=300%2C214&amp;ssl=1 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>Everything looks\u00a0great! Now we just need to create graphs for this data.<\/p>\n<h2>Installing Grafana<\/h2>\n<p>Grafana is the software that generates graphics for several time series databases, including of course InfluxDB. Just issue the following commands to install it:<\/p>\n<pre class=\"lang:terminal decode:true\">naikel@htpc ~ $ curl -O https:\/\/grafanarel.s3.amazonaws.com\/builds\/grafana_latest_amd64.deb\r\nnaikel@htpc ~ $ sudo dpkg -i grafana_latest_amd64.deb\r\nnaikel@htpc ~ $ sudo service grafana-server start\r\n * Starting Grafana Server                                                                         [ OK ] \r\nnaikel@htpc ~ $<\/pre>\n<p>If everything went well you can login\u00a0at http:\/\/localhost:3000. The default login and password are\u00a0<strong>admin<\/strong>.<\/p>\n<h4>Configure the Data Source<\/h4>\n<p>Let&#8217;s configure our InfluxDB as a data source in Grafana. Go to <em>Data Sources<\/em>\u00a0and click on\u00a0<em>New.\u00a0<\/em>Fill the form with a name for your InfluxDB database (I used &#8220;InfluxDB&#8221;) and select\u00a0<em>InfluxDB<\/em> as <i>Type.\u00a0<\/i>If Grafana and InfluxDB are running in the same server, the URL should be http:\/\/localhost:8086. We named our InfluxDB database &#8220;traffic&#8221; and just type\u00a0anything in the user and password fields. Those are not used but if\u00a0they are empty\u00a0Grafana won&#8217;t let you go on.<\/p>\n<p>It should look like this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana4.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-266\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana4.jpg?resize=533%2C671\" alt=\"Grafana4\" width=\"533\" height=\"671\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana4.jpg?w=533&amp;ssl=1 533w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana4.jpg?resize=238%2C300&amp;ssl=1 238w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<p>Click on\u00a0<em>Add\u00a0<\/em>and we are ready to create some graphs.<\/p>\n<h4>Create Some Graphs<\/h4>\n<p>Create a new Dashboard clicking on\u00a0<em>Home<\/em> and then\u00a0<em>New<\/em> and then add a new\u00a0graph clicking in the green icon at your left (that&#8217;s the menu of the row) and then on\u00a0<em>Add Panel\u00a0<\/em>and then\u00a0<em>Graph<\/em>.<\/p>\n<p>Select InfluxDB as your query type and then add two queries (one for the\u00a0downstream and another one for the upstream of the host you want to create the graph for).<\/p>\n<p>Now define the queries like this in the <em>Metrics<\/em> tab:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-257\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana.jpg?resize=648%2C539\" alt=\"Grafana\" width=\"648\" height=\"539\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana.jpg?w=711&amp;ssl=1 711w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana.jpg?resize=300%2C249&amp;ssl=1 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>As you can see\u00a0since we are collecting data every <span style=\"text-decoration: underline;\">minute<\/span> but we want to show bytes per\u00a0<span style=\"text-decoration: underline;\">second<\/span>, we have to divide the average (the <em>mean<\/em>) by 60.<\/p>\n<p>You can define some nifty legends and stuff in the\u00a0<em>Axis &amp; Grid<\/em> tab:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana2.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-258\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana2.jpg?resize=648%2C446\" alt=\"Grafana2\" width=\"648\" height=\"446\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana2.jpg?w=713&amp;ssl=1 713w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana2.jpg?resize=300%2C207&amp;ssl=1 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>And the graph should look like this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana3.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-259\" src=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana3.jpg?resize=648%2C268\" alt=\"Grafana3\" width=\"648\" height=\"268\" srcset=\"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana3.jpg?w=740&amp;ssl=1 740w, https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Grafana3.jpg?resize=300%2C124&amp;ssl=1 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>Do this for every device in your home or office and that&#8217;s it! If you want a graph with all the traffic select the MAC address 00:00:00:00:00:00.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you have a DD-WRT enabled router and want network statistics graphics for all the devices at your home or office? It&#8217;s pretty easy with InfluxDB and Grafana!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19],"tags":[23,22],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-dd-wrt","tag-grafana","tag-influxdb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DD-WRT Network Stats Graphics using Grafana and InfluxDB - Scorpius<\/title>\n<meta name=\"description\" content=\"Do you have a DD-WRT enabled router and want network statistics graphics for all the devices in your LAN? It&#039;s pretty easy with\u00a0InfluxDB\u00a0and\u00a0Grafana!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DD-WRT Network Stats Graphics using Grafana and InfluxDB - Scorpius\" \/>\n<meta property=\"og:description\" content=\"Do you have a DD-WRT enabled router and want network statistics graphics for all the devices in your LAN? It&#039;s pretty easy with\u00a0InfluxDB\u00a0and\u00a0Grafana!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/\" \/>\n<meta property=\"og:site_name\" content=\"Scorpius\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-15T00:57:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-23T21:31:31+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg\" \/>\n<meta name=\"author\" content=\"TheScorpius666\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TheScorpius666\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/\"},\"author\":{\"name\":\"TheScorpius666\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/86f96e20f253dad7eb38d3c721a950de\"},\"headline\":\"DD-WRT Network Stats Graphics using Grafana and InfluxDB\",\"datePublished\":\"2016-03-15T00:57:37+00:00\",\"dateModified\":\"2016-03-23T21:31:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/\"},\"wordCount\":981,\"commentCount\":17,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/7b346c3545c12a84ffdf2a30dfc69501\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/Dashboard.jpg\",\"keywords\":[\"Grafana\",\"InfluxDB\"],\"articleSection\":[\"dd-wrt\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/\",\"url\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/\",\"name\":\"DD-WRT Network Stats Graphics using Grafana and InfluxDB - Scorpius\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/Dashboard.jpg\",\"datePublished\":\"2016-03-15T00:57:37+00:00\",\"dateModified\":\"2016-03-23T21:31:31+00:00\",\"description\":\"Do you have a DD-WRT enabled router and want network statistics graphics for all the devices in your LAN? It's pretty easy with\u00a0InfluxDB\u00a0and\u00a0Grafana!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/Dashboard.jpg?fit=870%2C429&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/blog.thescorpius.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/Dashboard.jpg?fit=870%2C429&ssl=1\",\"width\":870,\"height\":429},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/2016\\\/03\\\/14\\\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.thescorpius.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DD-WRT Network Stats Graphics using Grafana and InfluxDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#website\",\"url\":\"https:\\\/\\\/blog.thescorpius.com\\\/\",\"name\":\"Scorpius\",\"description\":\"Random technology bits\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/7b346c3545c12a84ffdf2a30dfc69501\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.thescorpius.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/7b346c3545c12a84ffdf2a30dfc69501\",\"name\":\"Scorpius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\",\"caption\":\"Scorpius\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.thescorpius.com\\\/#\\\/schema\\\/person\\\/86f96e20f253dad7eb38d3c721a950de\",\"name\":\"TheScorpius666\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g\",\"caption\":\"TheScorpius666\"},\"url\":\"https:\\\/\\\/blog.thescorpius.com\\\/index.php\\\/author\\\/thescorpius666\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DD-WRT Network Stats Graphics using Grafana and InfluxDB - Scorpius","description":"Do you have a DD-WRT enabled router and want network statistics graphics for all the devices in your LAN? It's pretty easy with\u00a0InfluxDB\u00a0and\u00a0Grafana!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/","og_locale":"en_US","og_type":"article","og_title":"DD-WRT Network Stats Graphics using Grafana and InfluxDB - Scorpius","og_description":"Do you have a DD-WRT enabled router and want network statistics graphics for all the devices in your LAN? It's pretty easy with\u00a0InfluxDB\u00a0and\u00a0Grafana!","og_url":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/","og_site_name":"Scorpius","article_published_time":"2016-03-15T00:57:37+00:00","article_modified_time":"2016-03-23T21:31:31+00:00","og_image":[{"url":"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg","type":"","width":"","height":""}],"author":"TheScorpius666","twitter_card":"summary_large_image","twitter_misc":{"Written by":"TheScorpius666","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#article","isPartOf":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/"},"author":{"name":"TheScorpius666","@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/86f96e20f253dad7eb38d3c721a950de"},"headline":"DD-WRT Network Stats Graphics using Grafana and InfluxDB","datePublished":"2016-03-15T00:57:37+00:00","dateModified":"2016-03-23T21:31:31+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/"},"wordCount":981,"commentCount":17,"publisher":{"@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/7b346c3545c12a84ffdf2a30dfc69501"},"image":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#primaryimage"},"thumbnailUrl":"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg","keywords":["Grafana","InfluxDB"],"articleSection":["dd-wrt"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/","url":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/","name":"DD-WRT Network Stats Graphics using Grafana and InfluxDB - Scorpius","isPartOf":{"@id":"https:\/\/blog.thescorpius.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#primaryimage"},"image":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#primaryimage"},"thumbnailUrl":"http:\/\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg","datePublished":"2016-03-15T00:57:37+00:00","dateModified":"2016-03-23T21:31:31+00:00","description":"Do you have a DD-WRT enabled router and want network statistics graphics for all the devices in your LAN? It's pretty easy with\u00a0InfluxDB\u00a0and\u00a0Grafana!","breadcrumb":{"@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#primaryimage","url":"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg?fit=870%2C429&ssl=1","contentUrl":"https:\/\/i0.wp.com\/blog.thescorpius.com\/wp-content\/uploads\/2016\/03\/Dashboard.jpg?fit=870%2C429&ssl=1","width":870,"height":429},{"@type":"BreadcrumbList","@id":"https:\/\/blog.thescorpius.com\/index.php\/2016\/03\/14\/dd-wrt-network-statistics-graphics-using-grafana-and-influxdb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.thescorpius.com\/"},{"@type":"ListItem","position":2,"name":"DD-WRT Network Stats Graphics using Grafana and InfluxDB"}]},{"@type":"WebSite","@id":"https:\/\/blog.thescorpius.com\/#website","url":"https:\/\/blog.thescorpius.com\/","name":"Scorpius","description":"Random technology bits","publisher":{"@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/7b346c3545c12a84ffdf2a30dfc69501"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.thescorpius.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/7b346c3545c12a84ffdf2a30dfc69501","name":"Scorpius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g","caption":"Scorpius"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/ef13012e4d941d778c3d150fe29a546747df377f4e03576633b5d49b7456a78e?s=96&d=mm&r=g"}},{"@type":"Person","@id":"https:\/\/blog.thescorpius.com\/#\/schema\/person\/86f96e20f253dad7eb38d3c721a950de","name":"TheScorpius666","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3e54ca7ca513e321c05a53d8ab8e2cfa46535f8b6da290e2c171b6dce40ba007?s=96&d=mm&r=g","caption":"TheScorpius666"},"url":"https:\/\/blog.thescorpius.com\/index.php\/author\/thescorpius666\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6SNpd-3u","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":57,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/posts\/216\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thescorpius.com\/index.php\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}