Custom metrics for applications in Prometheus on Kubernetes

  Рет қаралды 19,885

That DevOps Guy

That DevOps Guy

Күн бұрын

Пікірлер: 49
@UltimateKeyboardHero
@UltimateKeyboardHero 2 жыл бұрын
Over the past year or so, this has to be the 3rd time you magically read my mind about what I'm stuck with and released a video about it. Cheers Marcel 🍻
@airrloww
@airrloww 6 ай бұрын
You're my hero Marcel, I started this job three month ago and you're the reason I'm not getting fired. I really appreciate everything you do
@weiyen
@weiyen Жыл бұрын
Thanks, I watched your guide to this in regards to this and I have to say that this and I have to say that it clarified a lot of the mysteries behind prometheus and metrics. This is a very very good video and it was the video I needed to watch to understand how it works
@aceisastud
@aceisastud 2 жыл бұрын
I pass your videos around all the time. Love your attitude and great way you explain the topics. Your videos over the years have helped me countless of times. Thank you!
@dillonhansen71
@dillonhansen71 2 жыл бұрын
This channel is so under appreciated. I hope the KZbin algorithm blesses this channel. This is quality content that can change peoples careers...
@ah47f
@ah47f Жыл бұрын
This tutorial is GOLD! Helped me understand a lot of prometheous mysteries! Thank you
@mtofani91
@mtofani91 7 ай бұрын
You're the best my friend, i was around this scenario last year and i didn't realize how to scrape / autodiscover the svc/pods. Thanks again!
@suhasraj9054
@suhasraj9054 2 жыл бұрын
You and Venkat are best for Kubernetes tutorials !! such a quality content ..Much Thanks for the effort you put in !!
@madrum
@madrum 2 жыл бұрын
Well done! I appreciate all the time you’ve put into this video.
@metaldragon24x7
@metaldragon24x7 Жыл бұрын
Outstanding material ! How have ppl not found this channel yet ?
@georgelza
@georgelza 2 жыл бұрын
@18:20 ... you deploy a 2nd ? Prometheus instance (running the service monitors/prometheus.yaml file) ? did I understand that correct, this separate from the one deployed as part of the kube-prometheus deployment. Some how seems to remember that deployment deployed a instance
@mrcharm767
@mrcharm767 Жыл бұрын
i always loved all ur videos and continuing thanks for such value add
@thanhlocnguyen4910
@thanhlocnguyen4910 2 жыл бұрын
Great video. I wonder is how to show all custom metrics of prometheus intances in grafana ? Thank you...
@NivaldoPaulo
@NivaldoPaulo 8 ай бұрын
GOLD content man, thanks!
@ВадимНич
@ВадимНич 2 жыл бұрын
how I can change /metrics path for each pod to my spring boot path /actuator/prometheus which has basic auth with specific credentionals?
@MarcelDempers
@MarcelDempers 2 жыл бұрын
you can. service monitors allow you to change the paths and supply basic auth credentials too. See the docs github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/basic-auth.md
@ВадимНич
@ВадимНич 2 жыл бұрын
@@MarcelDempers thanks!
@avanthaditya8596
@avanthaditya8596 2 жыл бұрын
We have a legacy app and cannot instrument it with prometheus library. The app writes metrics data to a json file on disk. How can we scrape this data in prometheus?
@miguelconcepxon
@miguelconcepxon 5 ай бұрын
how does garbage collection work in the Prometheus metrics client? mine eventually hits oomkilled
@SPT-bk9qc
@SPT-bk9qc Жыл бұрын
This is very helpful. When I follow the tutorial - I face two issues and would be helpful if you can guide me. First, there are no default dashboards populated on the grafana page, zero dashboards. Second, when I select a particular metric and see the table or graph and execute it, I do not see any values in the dashboard. Can you help me please
@habibverse
@habibverse 2 жыл бұрын
can we have a video about Exporter query MongoDB and Prometheus on Kubernetes
@zuowang5185
@zuowang5185 5 ай бұрын
Do you need a service-monitor to scrape?
@陳子鴻-p4d
@陳子鴻-p4d Жыл бұрын
I have a problem. At 23:31, I typed python_request_operations_total and executed it. However I always got zero value of the counter. Is it correct?
@陳子鴻-p4d
@陳子鴻-p4d Жыл бұрын
@@ad_it I forgot it but I can do custom metrics in my case now. I used the Kubernetes in docker desktop currently and realized that I need to deploy my app on Kubernetes but not in the docker. In my opinion, I may connect to the wrong app(port) and the Prometheus get the zero counter from another app.
@iposipos9342
@iposipos9342 2 жыл бұрын
Your videos have helped me alot and i appreciate it. Thanks:) Will you also make a video on podmonitors?
@chasim1982
@chasim1982 2 жыл бұрын
Great Videos as always, please make video with application slack alerting & application monitoring in grafana as well, thanks
@ReviewSmartTech
@ReviewSmartTech 10 ай бұрын
Awesome knowledge shared
@do3484
@do3484 2 жыл бұрын
how i could save the prometheus data using volumes? I have an EKS cluster
@avneeshagnihotri6664
@avneeshagnihotri6664 Ай бұрын
Please create video for Prometheus adapter configuration for custom metrics for GPU based application scaling and monitoring on grafana with using dcgm- exporter exposes the GPU metrics , i am stuck in configMap.yaml file , i am manually create all setup of k8s cluster. Please help me k get hpa showing /50% , unable to fetch custom metrics api
@JackReacher1
@JackReacher1 2 жыл бұрын
I created my own custom metrics using prom-client in python which is a counter called "request_count" for my flask app. When I tried to scale with hpa using "request_count"; in the prometheus seeing the "request_count_total" I found that only one pod is serving all the requests; instead of all the pods getting created with hpa. Marcel do you know what went wrong?
@AshrafulHuda-n3u
@AshrafulHuda-n3u Жыл бұрын
hi, were you able to find the solution?
@georgelza
@georgelza 2 жыл бұрын
For Kube-prometheus, which Grafana dashboard do you recommend/prefer ?
@yogeshmandge1927
@yogeshmandge1927 8 ай бұрын
How to check metrics details using CLI instead of Web?
@eduardmart1237
@eduardmart1237 2 жыл бұрын
How will it work if you have several instances of your application? Like several pods..
@MarcelDempers
@MarcelDempers 2 жыл бұрын
Service monitors translates to multiple endpoints as IP addresses under Prometheus targets page.
@vinvvinv7460
@vinvvinv7460 2 жыл бұрын
Hi, Can you please make a video & explain how to write an ansible playbook step by step in a very simple way? It's a bit confusing regarding spaces & hyphens. I think it's called indentation. In Terraform as well it's used spaces and curly brackets etc,, I am not from a programming background so face difficulty in understanding variables that are used in both applications. Please, it's a request. & Please do reply. if you can explain I would be really grateful Thanks & regards
@georgelza
@georgelza 2 жыл бұрын
sorry to bug... it seems my prometheus-applications-0 is seeing the serviceminitor (or well i can see it under config, but it's not showing in service-discovery) and also not picking up my target. additionally... I can port forward directly to the pod, but can't get Grafana connecting to prometheus-applications-0, thinking I might need a service defined for the additional prometheus-applications-o instance ? some self diagnosing ... I've did a port forward of my container/app and I can see the metrics at ../metrics so the python and prometheus instrumentation is working, it's the service discovery where I think i broke something. it's not picking up my targets it seem. please assist. This loooooks like the absolute closest I've been to get this now working :) Appreciate this newer video.
@MarcelDempers
@MarcelDempers 2 жыл бұрын
prometheus needs to be correctly configured to select the service monitor and the monitor needs to exist where prometheus is looking as mentioned in the video on service monitors. Same for the service the monitor tries to select, else you will have this issue. For grafana to access prometheus, you need a service and a datasource setup for it
@georgelza
@georgelza 2 жыл бұрын
@@MarcelDempers :) figure that much. but somehow with me moving app from "default" NS to "trustreg" NS I broke it... I got Grafana working. would love / appreciate if you can do example of the app not in default NS, as that will anyhow never be done in prod.
@MarcelDempers
@MarcelDempers 2 жыл бұрын
It works on any namespace, just update the namespace selector. kzbin.info/www/bejne/lX_Xg554ntWYpsk
@thanhlocnguyen4910
@thanhlocnguyen4910 2 жыл бұрын
I have the same problem like you. Can you look a little bit my issue ?
@georgelza
@georgelza 2 жыл бұрын
@@thanhlocnguyen4910 ... me still. haven't been able to get this working. haven't looked at it in a while either.
@unkwnown1947
@unkwnown1947 2 жыл бұрын
Very informative, got a good help in development, Thanks 👍. Can you guide how to expose custom metrics for application written in C language.
@Bandude231
@Bandude231 2 жыл бұрын
Can a service monitor watch two or more services?
@MarcelDempers
@MarcelDempers 2 жыл бұрын
Yes, as long as its selection \ ports match, it sure can 💪🏽
@180doman
@180doman 2 жыл бұрын
Maybe next topic: Network Policies with Calico and kube-iptables-tailer?
@Babbili
@Babbili 2 жыл бұрын
from where you got your k8s T 😆
@BR-lx7py
@BR-lx7py 2 жыл бұрын
Aren't the cool kids using Opentelemetry these days?
Introduction to Service monitors for beginners | Kubernetes monitoring
19:39
Introduction to the Prometheus Operator on Kubernetes
14:55
That DevOps Guy
Рет қаралды 44 М.
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
Install Prometheus & Grafana on Kubernetes (kube-prometheus-stack)
24:24
What are Kubernetes HEALTH probes ?
16:08
That DevOps Guy
Рет қаралды 7 М.
How to Monitor a Kubernetes Cluster in 2022 with Prometheus & Grafana
18:09
Prometheus Custom Metrics
14:02
Pavan Elthepu
Рет қаралды 10 М.
Understanding CPU & Memory with the Kubernetes Vertical Pod Autoscaler
22:12
Monitoring, Logging, And Alerting In Kubernetes
22:07
DevOps Toolkit
Рет қаралды 32 М.
How Prometheus Monitoring works | Prometheus Architecture explained
21:31
TechWorld with Nana
Рет қаралды 1 МЛН
Learn Kubernetes with Google: HPA: Scaling using Custom Metrics
11:02
Google Open Source
Рет қаралды 10 М.
How to learn Kubernetes in 2022
41:57
That DevOps Guy
Рет қаралды 27 М.
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН