How to Monitor Nginx with Prometheus and Grafana? (Step-by-Step - Install - Monitor - Fluentd)

  Рет қаралды 36,210

Anton Putra

Anton Putra

Күн бұрын

Пікірлер: 82
@AntonPutra
@AntonPutra Жыл бұрын
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@AntonPutra
@AntonPutra 2 жыл бұрын
❤Part 2 - How to Build Custom Prometheus Exporter? - kzbin.info/www/bejne/aai3Ya2JqLaVa5o I misspoke; this particular nginx prometheus exporter must be installed on the same VM compared to the kafka exporter, where you can specify multiple brokers.
@bharatchopra7212
@bharatchopra7212 2 жыл бұрын
Another great video. Thanks Anton
@AntonPutra
@AntonPutra 2 жыл бұрын
My pleasure!
@adibgasah3557
@adibgasah3557 3 ай бұрын
Thanks. Your posts videos are very useful when trying other monitoring tools and approaches!
2 ай бұрын
Today is my first day at close-to-devops job and this video is helpfull.
@pjj7466
@pjj7466 11 ай бұрын
Excellent tutorial and I have implemented as it is and worked like charm. Keep going bro.
@AntonPutra
@AntonPutra 11 ай бұрын
❤️
@entretenimento_constante
@entretenimento_constante 2 жыл бұрын
It's a very good video, very clean and organized.
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks Ferdinando!
@chasim1982
@chasim1982 2 жыл бұрын
Thanks Great Video as always, lot of learning
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks Muhammad!
@TheArpitkoberoi
@TheArpitkoberoi Жыл бұрын
fluentd is resource hungry. The CPU usage slowly kept rising over 8-9 hours and suddenly spiked the memory from 1G to 8G crashing the nginx server itself causing downtime in production. This happened when the nginx server was handling just 5-6RPS.
@AntonPutra
@AntonPutra Жыл бұрын
Agree, try lua plugin - github.com/knyar/nginx-lua-prometheus
@TheArpitkoberoi
@TheArpitkoberoi Жыл бұрын
Let me check it out, thanks
@alexr6631
@alexr6631 2 жыл бұрын
Thanks. Your posts videos are very useful when trying other monitoring tools and approaches!
@AntonPutra
@AntonPutra 2 жыл бұрын
Glad it was helpful!
@nforlife
@nforlife Жыл бұрын
Great video @anton Can you make a video on how to set up this solution on EKS?
@AntonPutra
@AntonPutra Жыл бұрын
Is there anything specific? Cause I have bunch of them on my channel if you search for Prometheus or Eks
@nforlife
@nforlife Жыл бұрын
I just figured out you have almost everything. Do you have a human brain or a chip 🤔 I was also wondering if you offer training in python programming for DevOps engineers
@mechrono9555
@mechrono9555 2 жыл бұрын
using docker-compose would have been a massive time and complexity saver in this project.
@AntonPutra
@AntonPutra 2 жыл бұрын
sure, i have an example in the following video - github.com/antonputra/tutorials/blob/main/lessons/141/docker-compose.yaml
@samtx
@samtx Жыл бұрын
​@@AntonPutrahow to run docker compose on two nodes
@AntonPutra
@AntonPutra Жыл бұрын
@@samtx you can use minikube and spin up multiple nodes
@samtx
@samtx Жыл бұрын
@@AntonPutra thx I was asking if docker swarm is need if to run dockercompose on multiple servers for hardware issues
@AntonPutra
@AntonPutra Жыл бұрын
​@@samtx You could use Docker Swarm, but it has been outdated for a while. If you need container orchestration (running containers on multiple servers), consider using k8s (Kubernetes).
@congdatt
@congdatt 9 ай бұрын
Keep it up bro !!!
@AntonPutra
@AntonPutra 9 ай бұрын
Thanks! Will do
@rohithmn3378
@rohithmn3378 Жыл бұрын
Hi @Anton Putra, Could you please make a similar video on k8s cluster to monitor Nginx with Prometheus and Grafana using fluentd.! It would be of great help.
@spuddyminer8347
@spuddyminer8347 2 ай бұрын
do you have any videos with explainer on why you use a different user for each process?
@cbabbx
@cbabbx 2 ай бұрын
In general you want to use a different user for each process for security reasons.
@spuddyminer8347
@spuddyminer8347 2 ай бұрын
assuming that it's because the program won't have permissions to make changes to my files that have permissions set so that other users can't open them...but they can still read my files. I guess there's probably some nuance here I'm missing that makes it worth it.
@nailsv5924
@nailsv5924 Жыл бұрын
Thank a lot, for this guide!
@AntonPutra
@AntonPutra Жыл бұрын
my pleasure!
@fazlurrahmatullah3017
@fazlurrahmatullah3017 8 ай бұрын
Hello, can u give a dashboard example for "latency traffic" like in this video?? *Sorry for my bad english
@AntonPutra
@AntonPutra 8 ай бұрын
sure, here is source - github.com/antonputra/tutorials/tree/main/lessons/140/dashboards just import it
@nahuszna
@nahuszna Жыл бұрын
I find it hard to understand your pwd as it's not shown in the terminal :( Otherwise awesome material thanks Anton!
@AntonPutra
@AntonPutra Жыл бұрын
Thanks for the feedback, I'll include them in the readme starting next video.
@antgod76
@antgod76 2 жыл бұрын
Hi. Can you explain how can we setup the terraform locally without the AWS please? Thak you.
@AntonPutra
@AntonPutra 2 жыл бұрын
You can use "docker-compose up" instead. Terraform is to create AWS VPC and EKS,
@SanjeevKumar-nq8td
@SanjeevKumar-nq8td 2 жыл бұрын
Which capability Fluntbit does not have? Can you bit more clear on it please. Fluentbit which run as daemon set, hence should be able to read parse the log stream of Nginx?
@AntonPutra
@AntonPutra 2 жыл бұрын
I know, I just couldn't find the 3rd party plugin that i can use to parse logs and expose them as prometheus metrics. If you know one, please let me know.
@MeroCasulli
@MeroCasulli Жыл бұрын
Amazing video, thank you! I have the following error while importing the 2nd group of panels: "Failed to upgrade legacy queries Datasource r_9gjRp4z was not found" how can i fix it? thanks
@AntonPutra
@AntonPutra Жыл бұрын
yes, can you try to update data source under settings (variables)
@samuelude6858
@samuelude6858 11 ай бұрын
​@@AntonPutra​What exactly to update, seems it's the same issue with mine.
@andriimulyk575
@andriimulyk575 2 жыл бұрын
Great video, can you make a video how to do something similar with nginx-ingress in K8s? I think it will be very useful
@AntonPutra
@AntonPutra 2 жыл бұрын
Well, i have bunch of videos to monit nginx ingress including this one - kzbin.info/www/bejne/jJupd619e96Jors
@dAvid3_f
@dAvid3_f Жыл бұрын
Very nice tutorial, thanks 👍 Side note: I'm just wondering why you don't use Ansible or any other CM (config management) tool to install and configure all the dependencies ?!?
@AntonPutra
@AntonPutra Жыл бұрын
Thanks, I do, maybe for other videos - github.com/antonputra/tutorials/tree/main/lessons/151/ansible
@samuelude6858
@samuelude6858 11 ай бұрын
@Anton Putra Nice video content. Followed through but noticed at the end that the imported fluentd dashboard failed with the error `Templating Failed to upgrade legacy queries` and was not able to display anything. Any idea what could be the problem as other dashboard i imported via ID worked fine or is there a way to convert from JSON to ID?
@AntonPutra
@AntonPutra 11 ай бұрын
try to update datasource or just create a new dashboard and import quiries
@samuelude6858
@samuelude6858 11 ай бұрын
@@AntonPutra thanks got it fixed already🙏
@pateldivya6422
@pateldivya6422 9 ай бұрын
@@samuelude6858 Heyy! can you please say how you solve this? i got same error
@eugenechernyshenko4933
@eugenechernyshenko4933 2 жыл бұрын
Возможна высокая кардинальность метрик по path
@AntonPutra
@AntonPutra 2 жыл бұрын
Soglasen, but it's a good starting point
@yashwantpatil9230
@yashwantpatil9230 6 ай бұрын
Thanks Anton
@AntonPutra
@AntonPutra 6 ай бұрын
welcome!
@fazlurrahmatullah3017
@fazlurrahmatullah3017 Жыл бұрын
how to install set-alert? is the method the same as the Prometheus set-alert in general?
@AntonPutra
@AntonPutra Жыл бұрын
do you mean alertmanager? yes it's a binary, you can use systemd to manage it as well
@fazlurrahmatullah3017
@fazlurrahmatullah3017 Жыл бұрын
@@AntonPutra yes, that's what i mean thanks you
@AntonPutra
@AntonPutra Жыл бұрын
@@fazlurrahmatullah3017 you can scroll down antonputra.com/monitoring/install-prometheus-and-grafana-on-ubuntu/
@gabrielarispe7703
@gabrielarispe7703 Жыл бұрын
hi your dashboard no this in the github repository
@AntonPutra
@AntonPutra Жыл бұрын
perhaps forgot to commit, but it's simple enough to recreate
@AdharshSreedharan
@AdharshSreedharan Жыл бұрын
Great video thanks a lot
@AntonPutra
@AntonPutra Жыл бұрын
Thanks!
@VRT-y3f
@VRT-y3f 2 жыл бұрын
Здравствуй, а как настроить для всего nginx-са , а не только для твоего тестового flask приложения?
@AntonPutra
@AntonPutra 2 жыл бұрын
Well, it's not only for the flask. You can use the path as a variable to switch between different upstream servers.
@VRT-y3f
@VRT-y3f 2 жыл бұрын
@@AntonPutra , а какую именно переменную ты имеешь в виду? value в json-е на гитхабе со значением /api/devices? Помоги пожалуйста, уже долго пытаюсь настроить мониторинг 4xx и 5xx ответов nginx-а в grafana, но пока без успешно.
@eugenegranovsky9439
@eugenegranovsky9439 Жыл бұрын
and what about monitoring nginx unit with prometheus and grafana?
@AntonPutra
@AntonPutra Жыл бұрын
Unit? I haven't used NGINX Unit directly, mostly ingress.
@vtvvnha2230
@vtvvnha2230 2 жыл бұрын
awesome
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@domingosdias5988
@domingosdias5988 10 ай бұрын
Great!!!
@ziaurrehman4738
@ziaurrehman4738 2 жыл бұрын
So fast as usual, hard to follow
@andrewm4894
@andrewm4894 2 жыл бұрын
I kinda like the speed, gets straight to it
@andrewm4894
@andrewm4894 2 жыл бұрын
Maybe try playback speed of 0.75 I tried it and seems like could help if you find it too fast
@AntonPutra
@AntonPutra 2 жыл бұрын
You can follow the blogpost - antonputra.com/monitoring/monitor-nginx-with-prometheus/#intro
@mikoo1991
@mikoo1991 2 ай бұрын
Templating Failed to upgrade legacy queries this is what i get in grafana. 2024 october. maybe ur version of grafana is younger than mine
How Prometheus Monitoring works | Prometheus Architecture explained
21:31
TechWorld with Nana
Рет қаралды 1 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
VM vs Kubernetes: Performance 🚀
6:07
Anton Putra
Рет қаралды 7 М.
I Monitored My Network with Grafana (2024)
22:01
Antonio Persiano
Рет қаралды 11 М.
Nginx vs Caddy Performance
15:27
Anton Putra
Рет қаралды 33 М.
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 509 М.
Kubernetes Monitoring Made Easy with Prometheus | KodeKloud
1:08:55
Best of CES 2025
14:50
The Verge
Рет қаралды 240 М.
Nginx vs Traefik Performance (Reverse Proxy)
13:18
Anton Putra
Рет қаралды 30 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.