I would like to get some of this data from ntop into my prometheus se
so I can make cool graphs of my data usage in Grafana.
Ntopng installed
If you do not have
ntopng installed you can check out my post on it here http://www.whiteboardcoder.com/2018/12/installing-ntopng-on-pfsense.html [1]
Open up ntopng under the
Diagnostics menu
This will require a login
After you login open up
the /metrics page
In my case its https://192.168.0.1:3000/metrics
You should see lots of
prometheus style data points
Now you can get prometheus to pull data from here using this URL but you would also need to give prometheus the user name and password for your admin. Probably a bad idea.
Instead let’s make a
limited user.
Click on Manage Users
On the far right click
Add a User
Make a new user but make them Non Privilaged.
Now we can use this user
to get the data from.
Update Prometheus scrape settings
My prometheus has its
setting file at sudo vi /prometheus/prometheus.yml see http://www.whiteboardcoder.com/2021/01/installing-prometheus-on-ubuntu-2004.html [2] if you are curious how I set it up.
|
And add the following to
scrape
|
Save the file and
restart prometheus
|
It may be a good idea to confirm that it is not being scraped
Let me log back into my
prometheus server but pull port 9090/3000 to local
|
Open http://localhost:9090/targets
I can see that it is
pulling info.
Now what do with the info in
Grafana?
Let me log into grafana and make a new board
Now for some fun queries to get data out.
Let me run a curl with password on it.
|
OK now grep it
|
Here are some queries I came up with
The total of Bytes sent from interface igb0 (my wan) per hour rate
|
The total of Bytes received from interface igb0 (my wan) per hour rate
|
The total of Bytes sent from interface igb0 (my wan) per hour rate
|
The total of Bytes received from interface igb0 (my wan) per hour rate
|
|
Total in and out over a 28 day period
Who are my offenders on my other networks..
Who
received more than 2GiB/hr rate
|
Who sent more
than 2 GiB /hr rate
|
After a little fiddling
Of course I have had data coming in for a few weeks now so
your mileage may vary until you have more data.
My one gripe so far on this would it would be nice if they
added hostname to the data. I do get the
IP address of offenders but then I have to go look it up.
A word of warning …
Looks like this prometheus export was experimental and has been dropped in ntopng 4.0
https://github.com/ntop/ntopng/issues/3705
References
[1] Installing ntopng on pfsense
http://www.whiteboardcoder.com/2018/12/installing-ntopng-on-pfsense.html
Accessed 02/2021
[2] Installing Prometheus on
Ubuntu 20.04
http://www.whiteboardcoder.com/2021/01/installing-prometheus-on-ubuntu-2004.html
Accessed 02/2021
Excellent Blog! I would like to thank you for the efforts you have made in writing this post. Gained lots of knowledge.
ReplyDeleteData Analytics Course
I bookmarked your website because this site contains valuable information. I am very satisfied with the quality and the presentation of the articles. Thank you so much for saving great things. I am very grateful for this site.
ReplyDeleteData Science Training in Bangalore
I have voiced some of the posts on your website now, and I really like your blogging style. I added it to my list of favorite blogging sites and will be back soon ...
ReplyDeleteDigital Marketing Training in Bangalore
Awesome article. I enjoyed reading your articles. this can be really a good scan for me. wanting forward to reading new articles. maintain the nice work!
ReplyDeleteData Science Courses in Bangalore
I found Habit to be a transparent site, a social hub that is a conglomerate of buyers and sellers willing to offer digital advice online at a decent cost.
ReplyDeleteArtificial Intelligence Training in Bangalore
The Extraordinary blog went amazed by the content that they have developed in a very descriptive manner. This type of content surely ensures the participants explore themselves. Hope you deliver the same near the future as well. Gratitude to the blogger for the efforts.
ReplyDeleteMachine Learning Course in Bangalore
I need to thank you for this very good read and i have bookmarked to check out new things from your post. Thank you very much for sharing such a useful article and will definitely saved and revisit your site.
ReplyDeleteData Science Course
What an incredible message this is. Truly one of the best posts I have ever seen in my life. Wow, keep it up.
ReplyDeleteAI Courses in Bangalore
Wow, happy to see this awesome post. I hope this think help any newbie for their awesome work and by the way thanks for share this awesomeness, i thought this was a pretty interesting read when it comes to this topic. Thank you..
ReplyDeleteArtificial Intelligence Course
I am sure it will help many people. Keep up the good work. It's very compelling and I enjoyed browsing the entire blog.
ReplyDeleteBusiness Analytics Course in Bangalore
Thank a lot. You have done excellent job. I enjoyed your blog . Nice efforts
ReplyDeleteData Science Certification in Hyderabad
Your site is truly cool and this is an extraordinary moving article and If it's not too much trouble share more like that. Thank You..
ReplyDeleteDigital Marketing Course in Hyderabad
Unfortunately the developers have removed the support for Prometheus https://github.com/ntop/ntopng/issues/3705
ReplyDeleteI am glad to discover this page. I have to thank you for the time I spent on this especially great reading !! I really liked each part and also bookmarked you for new information on your site.
ReplyDeleteData Science Course Syllabus
I am really enjoying reading your well written articles. I am looking forward to reading new articles. Keep up the good work.
ReplyDeleteData Science Courses in Bangalore
I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.
ReplyDeleteData Analytics Course
Very good message. I stumbled across your blog and wanted to say that I really enjoyed reading your articles.
ReplyDeleteAI Courses in Bangalore
Informative blog
ReplyDeleteai training in hyderabad
I just got to this amazing site not long ago was actually captured with the piece of resources you have got here and big thumbs up for making such wonderful blog page!
ReplyDeleteData Scientist Course
Excellent post to make this blog more wonderful, attractive and cool stuff you have. Thank You.
ReplyDeleteData Science Course in India with Placements
Informative Post. The information you have posted is very useful and sites you have referred was good. Thanks for sharing.
ReplyDeleteData Science Course with Placement
Very interesting post and this is my first time visit here and found so many interesting stuff in your blog especially its discussion. Thanks for the post!
ReplyDeleteDigital Marketing Training Institute in Hyderabad
You have done excellent job Thanks a lot and I enjoyed your blog. Great Post.
ReplyDeleteEthical Hacking Course in Hyderabad
Do you want to make sure your digital marketing services is on the right track? Digital World Giant is one of the most renowned agencies in New York. They specialize in Web Development, Digital Marketing and SEO services.
ReplyDeleteExtraordinary post I should state and a debt of gratitude is in order for the data. Instruction is unquestionably a clingy subject. Be that as it may, is still among the main subjects within recent memory. I value your post and anticipate more.data science training in lucknow
ReplyDeleteThank you for sharing this wonderful blog, I read that Post and got it fine and informative. Please share more like that...
ReplyDeleteEthical Hacking Institute in Bangalore
Nice Post. Thank you for helping people get the information they need and great stuff as usual. Keep up the great work!!!
ReplyDeleteArtificial Intelligence Courses in Hyderabad
Nice Post thank you very much for sharing such a useful information and will definitely saved and revisit your site and i have bookmarked to check out new things frm your post.
ReplyDeleteData Science Course
A good blog always contains new and exciting information, and reading it I feel like this blog really has all of these qualities that make it a blog.
ReplyDeleteMachine Learning Training in Bangalore
Really, this article is truly one of the best in the article. And this one that I found quite fascinating and should be part of my collection. Very good work!.
ReplyDeleteEthical Hacking Course in Bangalore
Very interesting blog. A lot of the blogs I see these days don't provide anything that interests me, but I'm really interested in this one. I just thought I would post and let you know.
ReplyDeleteData Science Course in Ernakulam
Superb Information, I really appreciated with it, This is fine to read and valuable pro potential, I really bookmark it, pro broaden read. Appreciation pro sharing. I like it. Data Analytics Course in Dehradun
ReplyDeleteI have read your article, it is very informative and useful to me, I admire the valuable information you offer in your articles. Thanks for posting it ...
ReplyDeleteData Science Course in Durgapur
I am excited about this blog. It is an informative subject. It helped me a lot in solving some problems. Your opportunity is so fantastic and the style of work so fast.
ReplyDeleteData Science Training in Ernakulam
Very nice job... Thanks for sharing this amazing and educative blog post!
ReplyDeleteData Science Course in Chandigarh
This is an excellent article. I like this topic. This site has many advantages. I have found a lot of interesting things on this site. It helps me in so many ways. Thanks for posting this again.
ReplyDeleteData Analytics Course in Durgapur
I always search online for articles that can help me. Obviously, there is a lot to know about this. I think you made a few good points about the features as well. Keep up the good work!
ReplyDeleteData Scientist Course in Ernakulam
This blog was really great, never seen a great blog like this before. i think im gonna share this to my friends..
ReplyDeleteData Scientist Training in Bangalore
Very informative Blog! There is so much information here that can help thank you for sharing.
ReplyDeleteData Analytics Training in Bangalore
Thank you for posting this information. I just want to let you know that I just visited your site and find it very interesting and informative. I look forward to reading most of your posts.
ReplyDeleteData Science Course in Patna
Good blog and absolutely exceptional. You can do a lot better, but I still say it's perfect. Keep doing your best.
ReplyDeleteData Analytics Course in Nagpur
It is late to find this act. At least one should be familiar with the fact that such events exist. I agree with your blog and will come back to inspect it further in the future, so keep your performance going.
ReplyDeleteBest Data Analytics Courses in Bangalore
I really appreciate this wonderful message you have given us. I assure you that would be beneficial for most people.
ReplyDeleteData Analytics Course in Nagpur
Really impressed! Everything is a very open and very clear clarification of the issues. It contains true facts. Your website is very valuable. Thanks for sharing.
ReplyDeleteBest Data Analytics Courses in Bangalore
Wonderful blog post. It's absolute magic on your part! I have never seen a more wonderful article than this. You really made my day today with this. Hope you continue like this!
ReplyDeleteData Scientist Course in Patna
I wanted to leave a little comment to support you and wish you the best of luck. We wish you the best of luck in all of your blogging endeavors.
ReplyDeleteData Analytics Course in Patna
Wonderful illustrated information. Thank you. It will certainly be very useful for my future projects. I would love to see more articles on the same topic!
ReplyDeleteData Science Training in Bangalore
Happy to chat on your blog, I feel like I can't wait to read more reliable posts and think we all want to thank many blog posts to share with us.
ReplyDeleteData Science Training Institutes in Bangalore
Thank you very much for this interesting article. In fact, it is exceptional. You are looking for this type of notice later.
ReplyDeleteData Scientist Course in Nagpur
Happy to chat on your blog, I feel like I can't wait to read more reliable posts and think we all want to thank many blog posts to share with us.
ReplyDeleteData Science in Bangalore
Informative blog
ReplyDeletedata analytics course in jamshedpur
This is just the information I find everywhere. Thank you for your blog, I just subscribed to your blog. It's a good blog.
ReplyDeleteBest Data Analytics Courses in Bangalore
I think this is an informative and very useful and knowledgeable blog. therefore, I would like to thank you for your effort.
ReplyDeleteData Science Course in Amritsar
I am overwhelmed by your post with such a beautiful subject. I usually visit their blogs and update myself through the information they contain, but today's blog would be most appreciated. Well done!
ReplyDeleteBusiness Analytics Course in Durgapur
I couldn't leave your website until I told you that I really appreciated the high quality information it presents to your visitors. I will come back frequently to check for new posts.
ReplyDeleteData Scientist Course in Durgapur
Really nice and amazing post. I was looking for this kind of information, Keep posting. Thanks for sharing.
ReplyDeleteData Science Courses in Bangalore
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work Business Analytics Course in Vadodara
ReplyDeleteI have read good things here. Definitely worth to bookmark again. I am amazed at how much effort you put into creating such an informative website.
ReplyDeleteData Science Training in Bangalore
Thanks for sharing this valuable information, we also provide instagram video download and,
ReplyDeletereally appreciate your hard work and good research that help us in for of your good valuable article. Keep updating us with your awesome content.
Very happy to find a good place for many here in the post, the writing is just great, thanks for the post.
ReplyDeleteData Science Course in Ernakulam
Some really good points you wrote here ... Great things ... I think you raised some really interesting points. Keep up the good work.
ReplyDeleteBest Data Analytics Courses in Bangalore
It was a wonderful opportunity to visit this type of site and I am happy to hear about it. Thank you very much for giving us the opportunity to have this opportunity.
ReplyDeleteData Analytics Course in Durgapur
I am delighted to discover this page. I must thank you for the time you devoted to this particularly fantastic reading !! I really liked each part very much and also bookmarked you to see new information on your site.
ReplyDeleteBusiness Analytics Course in Durgapur
Good blog and absolutely exceptional. You can do a lot better, but I still say it's perfect. Keep doing your best.
ReplyDeleteData Science Training in Durgapur
Thanks for sharing this great article we appreciate it, we provide instagram reels download freely and unlimited.
ReplyDeleteI was very happy to find this site. I wanted to thank you for this excellent reading !! I really enjoy every part and have bookmarked you to see the new things you post.
ReplyDeleteData Science Course in Durgapur
Superb Information, I really appreciated with it, This is fine to read and valuable pro potential, I really bookmark it, pro broaden read. Appreciation pro sharing. I like it.Data Analytics Course in Dombivli
ReplyDelete360DigiTMG is the most recommended Data Science course institute in Chennai. Get trained by top professionals from IIT, IIM and, ISB. Enroll now!
ReplyDeleteData Science Course in Jodhpur
Learn the fundamentals of Data Science and master the skills to handle epic amounts of data collected by organizations today. Gain expertise in organizing, analyzing, and transforming data to uncover its hidden power. Drive your career forward with a Data Science course in Bangalore and learn to uncover insights to present critical findings using visualization tools. Not only this, avail the best-in-class content delivered by stellar faculty who use a blended approach of theory as well as practical knowledge to ensure all the concepts are crystal clear.
ReplyDeleteBest Data Science Institute in Bangalore
Register for the Data Science certification in Bangalore and gain recognition and credibility in your organization. Learn the techniques to examine large data sets and discover patterns that are valuable to predict market trends. Learn Data Exploration and Visualizations, Neural Networks and Deep Learning, Model Evaluation and Analysis. This course will ensure that you are challenged to go from a beginner with no Data Science experience to someone who can juggle data with ease.
ReplyDeleteData Science Training and Placement in Bangalore