I recently wrote a few
article on installing Grafana and Prometheus.
http://www.whiteboardcoder.com/2021/01/installing-grafana-on-ubuntu-2004.html
[1]
http://www.whiteboardcoder.com/2021/01/installing-prometheus-on-ubuntu-2004.html
[2]
Now that I have it set up and I have prometheus ingesting some data I want to hook it into Promtheus and see some beautiful graphs
Now I want to start getting
some real data into it to have something to graph!
Adding a Data Source
I have Prometheus and
Grafana running on the same box.
Let me ssh into my box and also pull some ports on the way.
> ssh prometheus -L 3000:localhost:3000 -L
9090:localhost:9090 -L 9100:localhost:9100 |
Now check if prometheus and
grafana are running.
> sudo systemctl status grafana-server |
And Prometheus
> sudo systemctl status prometheus |
OK all looks good.
Now let me open up Grafana.
http://localhost:3000/login
Click on Configuration and select Data Sources.
Click Add data sources
Click on Select in the Prometheus
Set URL to http://localhost:9090
All other settings leave as is since I have no SSL or
anything fancy set up in front of prometheus.
Click on Save & Test
Wahoo its working!
Now go back to Data Sources
Now we should see that we have Promtheus as a data source.
Testing data
First let me prove I have some node exporter data in
prometheus.
Head over to http://localhost:9090/graph
Now back to grafana
Click on + and select Dashboard
Click Add New Panel
Enter the query
(100 - 100*(avg by (node)
(irate(node_cpu_seconds_total{mode="idle"}[15m])))) |
Then hit apply
On the right scroll down to Axes and set the Y-Min to 0 and
Y-Max to 100 and click Apply
As you can see nothing much is going on my CPU is not taxed
On my computer let me
run htop to confirm (if you don’t have htop install it with sudo apt-get install
htop
> htop |
Now let’s do something to get our CPU to max out or at least jump up a bit.
Let me install and run stress
> sudo apt-get install stress |
Wow
Run just one cpu
> stress --cpu 1 |
References
[1] Installing Grafana on Ubuntu
20.04
http://www.whiteboardcoder.com/2021/01/installing-grafana-on-ubuntu-2004.html
Accessed 2/2020
[2] Installing Prometheus on
Ubuntu 20.04
http://www.whiteboardcoder.com/2021/01/installing-prometheus-on-ubuntu-2004.html
Accessed 2/2020
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 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
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
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
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 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
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
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
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
Thank a lot. You have done excellent job. I enjoyed your blog . Nice efforts
ReplyDeleteData Science Certification in Hyderabad
Very interesting blog. A lot of the blogs I visit nowadays don't really provide anything that I'm interested in, but I'm definitely interested in this one Turkish e Visa is an electronic visa Turkey that allows entry into Turkey. Once available, eligible foreign will be able to complete the online application process without visiting an embassy or consulate.
ReplyDeleteGreat post happy to see this. I thought this was a pretty interesting read when it comes to this topic Information. Thanks..
ReplyDeleteArtificial Intelligence Course
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
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.
ReplyDeleteDigital Marketing Training in Bangalore
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.
ReplyDeleteArtificial Intelligence Training in Bangalore
Thanks Your post is so cool and this is an extraordinary moving article and If it's not too much trouble share more like that.
ReplyDeleteDigital Marketing Course in Hyderabad
You have done excellent job Thanks a lot and I enjoyed your blog. Great Post.
ReplyDeleteData Science Certification in Hyderabad
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.
ReplyDeleteMachine Learning Course in Bangalore
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 Science Training in Bangalore
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
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
It is a very helpful and very informative blog. I really learned a lot from it thanks for sharing.
ReplyDeleteData Analytics 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
Very good article and liked reading your post, very pleasant to share, I want to tweet this to my followers. Thank you!.
ReplyDeleteDigital Marketing Institute in Hyderabad
I am always searching online for articles that can help me and you made some good points in Features also. Keep working, great job
ReplyDeleteData Science Training
First You got a great blog .I will be interested in more similar topics.I commend you for your excellent report on the knowledge that you have shared in this blog.
ReplyDeletedigital marketing training in hyderabad
free digital marketing course in hyderabad
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
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 the kind of topics you post here and thanks for sharing us a great information that is actually helpful. Good day!
ReplyDeleteAWS Training in Hyderabad
I am hoping the same best effort from you in the future as well and in fact your creative writing skills has inspired me.
ReplyDeleteData Science Course near me
This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
ReplyDeleteBest Digital Marketing Courses in Bangalore
I am impressed by the information that you have on this blog. It shows how well you understand this subject.
ReplyDeleteMlops Course
Wonderful blog post. It's absolute magic on your part! Hope you continue like this!
ReplyDeleteData Analytics Training in Bangalore
This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
ReplyDeleteData Science Course in Bangalore
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
Interesting and attractive information. This blog is really rocking... Yes, the post is very interesting and I enjoy it a lot. What to bring to the airport? You will need your passport, copy of ETV and a valid citizen card when you check-in on your flight to India.
ReplyDeleteVery informative Blog! There is so much information here that can help thank you for sharing.
ReplyDeleteData Analytics Training in Bangalore
I got to this amazing site not long ago. I actually captured with the piece of resources you have got here. Thanks for making such wonderful blog page.
ReplyDeleteData Science Course in Ahmedabad
I read your excellent post. It's a great job. I enjoyed reading your post for the first time. I want to thank you for this publication. Thank you...
ReplyDeleteData Science Course in Patna
This is an excellent article. I like this topic. I have found a lot of interesting things on this site.Thanks for posting this again.
ReplyDeleteBusiness Analytics Course in Jaipur
Very informative Blog! There is so much information here that can help thank you for sharing.
ReplyDeleteData Analytics Course in Bangalore
Nice post, you give readers a lot to think about and I appreciate that kind of writing.
ReplyDeleteData Science Course Fees
I read your excellent blog post. It's a great job. I enjoyed reading your post for the first time, thank you.
ReplyDeleteData Science Institutes in Bangalore
Very nice job... Thanks for sharing this amazing and educative blog post!
ReplyDeleteData Science Course in Chandigarh
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
This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
ReplyDeleteData Scientist Course in Chandigarh
I enjoyed reading your articles. I have bookmarked it and I am looking forward to reading new articles. Thanks for sharing.
ReplyDeleteData Science Course in Ahmedabad
Really impressed! Information shared was very helpful Your website is very valuable. Thanks for sharing.
ReplyDeleteBusiness Analytics Course in Bangalore
Excellently written article and information was helpful. Please keep it up thank for sharing.
ReplyDeleteBusiness Analytics Course in Lucknow
Thanks for your great article which is both informative and innovative: with the latest updates. It was highly invaluable. Travelers can apply Indian tourist visa for US citizens directly for e-visas online. Therefore, the Indian government has developed an easy-to-use online Indian visa application form that makes it easy to apply for a visa.
ReplyDeleteI finally found a great article here. Quality postings are essential to get visitors to visit the website, that's what this website offers.
ReplyDeleteData Science Course in Indore
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
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
Thank you for your message. I've been thinking about writing a very similar article for the last few weeks, I'll probably keep it short and to the point and link to this article instead if that's interesting. Thank you.
ReplyDeleteBusiness Analytics Course in Ernakulam
Thank you for sharing an amazing & wonderful blog. This content is very useful, informative and valuable in order to enhance knowledge. Keep sharing this type of content with us & keep updating us with new blogs. Apart from this, if anyone who wants to join the Data Science Training institute in Delhi, can contact 9311002620 or visit our website-
ReplyDeletehttps://htsindia.com/Courses/python/python-with-data-science-training-course
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!.
ReplyDeleteData Science Training in Amritsar