Prometheus Operator Kubernetes Tutorial: ServiceMonitor - PodMonitor - Step-by-Step

Поділитися
Вставка
  • Опубліковано 6 вер 2024

КОМЕНТАРІ • 78

  • @AntonPutra
    @AntonPutra  11 місяців тому +4

    🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

    • @Fidellio369
      @Fidellio369 23 дні тому +1

      Hello Anton. I loved the video and I sent you an email.

    • @AntonPutra
      @AntonPutra  23 дні тому

      @@Fidellio369 Thank you! I think I just replied to your email.

  • @AshishRaniwala
    @AshishRaniwala Рік тому +5

    Extremely well done video and repo. You saved the day!

  • @chasim1982
    @chasim1982 Рік тому +4

    Great teaching ability, thanks a lot for all amazing & high quality content, please make videos regarding eks & gke logging solutions with grafana loki or with elasticsearch, thanks

  • @will_bush
    @will_bush Місяць тому +1

    This is gold

  • @piyushdarji7926
    @piyushdarji7926 Рік тому +2

    Anton will become big youtuber one day definitely✌🤟

    • @AntonPutra
      @AntonPutra  Рік тому +1

      Thanks for the support Piyush!

  • @renanangelodossantos4726
    @renanangelodossantos4726 9 місяців тому +1

    FINALLY got it working. Thanks!

  • @YordisPrieto
    @YordisPrieto Рік тому +1

    Would be nice to provision the target and some dashboard using the helm release if possible

  • @clementbenedetti724
    @clementbenedetti724 Рік тому +1

    Very nice video, any tuto of multiple clusters to monitor with prometheus agent and a global cluster with prometheus operator using remote write?

    • @AntonPutra
      @AntonPutra  Рік тому

      Thanks, I'll create one soon for thanos

  • @ahmedelshafaie
    @ahmedelshafaie Рік тому +1

    Awesome, Thank you Anton

  • @MrBharathkumarraju
    @MrBharathkumarraju Рік тому +1

    Extremely useful sir!!!

    • @AntonPutra
      @AntonPutra  Рік тому +1

      Thank you!

    • @MrBharathkumarraju
      @MrBharathkumarraju Рік тому

      Next time integrate with thanos with compactor and s3 backend

    • @AntonPutra
      @AntonPutra  Рік тому +1

      @@MrBharathkumarraju Thanos (Multi Cluster Prometheus) Tutorial: Global View - Long Term Storage - Kubernetes - ua-cam.com/video/feHSU0BMcco/v-deo.html

    • @MrBharathkumarraju
      @MrBharathkumarraju Рік тому

      @@AntonPutra woww you are real k8s monitoring guru!!! and you made them available for free...hatsoff to you!!!

    • @MrBharathkumarraju
      @MrBharathkumarraju Рік тому

      @@AntonPutra any videos on loki-promtail and tempo for tracing?

  • @givemoresibanda9739
    @givemoresibanda9739 Рік тому +1

    Thanks for the videos
    Can you do persistent storage for Prometheus using helm am struggling with it

    • @AntonPutra
      @AntonPutra  Рік тому

      Sure, just set this block - github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L670-L678

  • @anastrak
    @anastrak Рік тому +1

    Thanks for this precious content , very well explained .

  • @RafaelDurelli
    @RafaelDurelli Рік тому +1

    Best videos as always.

  • @suncru
    @suncru Рік тому +1

    Thank you, Anton
    That really helped a lot

  • @ziaurrehman4738
    @ziaurrehman4738 Рік тому +1

    Thanks, that's what I needed yesterday

    • @AntonPutra
      @AntonPutra  Рік тому

      Welcome =)

    • @ziaurrehman4738
      @ziaurrehman4738 Рік тому

      @@AntonPutra can you explain what is the purpose of prometheus adaptors?

    • @AntonPutra
      @AntonPutra  Рік тому

      @@ziaurrehman4738 You can use prometheus metrics for horizontal pod autoscaller (by default only cpu and memory), i have a tutorial how to implement

    • @ziaurrehman4738
      @ziaurrehman4738 Рік тому

      @@AntonPutra thanks. I will try to find that video on your channel

    • @AntonPutra
      @AntonPutra  Рік тому +1

      @@ziaurrehman4738 This one - ua-cam.com/video/iodq-4srXA8/v-deo.html

  • @squalazzo
    @squalazzo Рік тому +1

    why not automate even the datasources and dashboards setups? both can be deployed as configmaps and automatically discovered based on some labels
    hint for next video? :) great tutorial, btw!

  • @A_Dudkin
    @A_Dudkin 10 місяців тому

    Hi! Thanks Anton for the explanations
    Can you give a hint - how to configure Prometheus how much space in the disk to use for metrics store and for how long to keep them?

    • @AntonPutra
      @AntonPutra  10 місяців тому

      Usually 7 or 14 days, disk size depends on how many targets you have and scrape interval. In all clouds you can increase volume when you reach a limit, just make sure that your kubernetes storage class has "expandable: true". If you need long term checheap storage use thanos.

  • @user-vs5yk3ys1c
    @user-vs5yk3ys1c Рік тому +1

    Thanks a lot, this tutorial really helped me!

  • @007tnfa
    @007tnfa Рік тому +1

    Hi bro. Thanks for your content. Especially on EKS. How do you make your presentation. With animation of red arrow for exemple. Do you make it yourself, with which tool, or you pay someonelse. It look really nice.

    • @AntonPutra
      @AntonPutra  Рік тому

      Thank you! I do it myself using the Adobe suite.

  • @roberto_camp
    @roberto_camp Рік тому +1

    Anton, do you have any suggestions for how to handle migration from "plain vanilla" Prometheus to Prometheus Operator? For example if I have an existing Prometheus instnace running in my EKS cluster, can I install the Prometheus Operator in that same cluster and then migrate to it?

    • @AntonPutra
      @AntonPutra  Рік тому +1

      Yes, you can. Both Prometheus instances can be run in parallel. You need to deploy them using an operator and convert your plain Prometheus config to a service or pod monitor. Make sure that both have the same targets before decommissioning the old one.

  • @tadeubernacchi3360
    @tadeubernacchi3360 Рік тому

    Nice video, thanks for the content. In the case I'm using `kind: AlertmanagerConfig`. How do I do to make this work with a `PrometheusRule` operator to send notifications to slack? I already have alertmanager up and exposed with TLS on my URL. Once again, thank you

  • @Davidlavieri
    @Davidlavieri 5 місяців тому

    Would you recommend to use helm charts with terraform, we are on an awkward situation where we want to pass secrets to the helm chart and have it force a reload in the pods like kustomize does with helm inflator generator

    • @Davidlavieri
      @Davidlavieri 5 місяців тому

      Well now that I think about it, maybe could use sops/age for secrets do you have video about it ? We want a solution to remove secrets from state

    • @AntonPutra
      @AntonPutra  5 місяців тому

      it's hard to maintain helm charts over time. if you want it for temporary env, qa, staging, dev environment it's ok. but if you plan to maintain that env for over a year, it can be dangerous

    • @Davidlavieri
      @Davidlavieri 5 місяців тому

      Ah do you mean managing helm charts in general or just outside gitops (terraform)?

  • @DikshantRai-od8vq
    @DikshantRai-od8vq 3 місяці тому

    hi @AntonPutra , how did yo manage configuration for alerts. You did not show anything similar to that

    • @AntonPutra
      @AntonPutra  3 місяці тому

      Well, alerts are configured on the local prometheus (recommendation from Thanos itself), it's usually done by using alert custom resource
      "NOTE: It is recommended to keep deploying rules inside the relevant Prometheus servers locally. Use ruler only on specific cases. Read details below why."
      thanos.io/v0.8/components/rule/#rule-aka-ruler

  • @devops22
    @devops22 Рік тому +1

    Awesome work ✨

  • @angelmanuelcamarero9813
    @angelmanuelcamarero9813 Рік тому

    Thanks for this excellent tutorial, but it is possible to add basic auth? I didn't find the way to include a custom web.config.file.

    • @AntonPutra
      @AntonPutra  Рік тому

      Try this to setup basic auth - github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#httpconfig-1

  • @gulammoideen9405
    @gulammoideen9405 6 місяців тому

    I am facing issue when applying prometheus, prometheus-main-0 goes in pending state.
    prometheus-main-0 0/2 Pending 0 3m19s

    • @bartsimpson2324
      @bartsimpson2324 6 місяців тому

      probably there is no pv for pvc, check both and logs from this pod

  • @chasim1982
    @chasim1982 Рік тому

    Hi! In probe.yaml , if we provide a incorrect or fake domain, prometheus still shows target is up with incorrect domain url, as a result no alert will be generated, if we access blackbox it will correctly shows the errors, can you please guide about the fix, thanks

    • @AntonPutra
      @AntonPutra  Рік тому +1

      can you try using something like status code in the alert? fake domain should not produce 2xx result

  • @rohittiwari5575
    @rohittiwari5575 Рік тому

    Have you tried VictoriaMetrics Operator?

    • @AntonPutra
      @AntonPutra  Рік тому +1

      No, first time I hear about it, but I'll take a look.

    • @rohittiwari5575
      @rohittiwari5575 Рік тому

      @@AntonPutra Try it, it's better than Prometheus

    • @AntonPutra
      @AntonPutra  Рік тому

      @@rohittiwari5575 I will. Why it's better?

  • @mohamedelmehdielberiri
    @mohamedelmehdielberiri 7 місяців тому +1

    whenver you ssay operator i hear brother

    • @AntonPutra
      @AntonPutra  7 місяців тому

      working on my english :)

    • @mohamedelmehdielberiri
      @mohamedelmehdielberiri 7 місяців тому

      @@AntonPutra its undrestandable, thanks for the explenation tho

  • @YordisPrieto
    @YordisPrieto Рік тому +1

    Second this time 😰

    • @AntonPutra
      @AntonPutra  Рік тому

      ?

    • @YordisPrieto
      @YordisPrieto Рік тому +1

      @@AntonPutra I was the second person to comment 😅 a cultural habit of followers in UA-cam 🥲😅

    • @AntonPutra
      @AntonPutra  Рік тому

      @@YordisPrieto 😅

  • @santacloudy
    @santacloudy 8 місяців тому

    wth is all this, this is so freakin confusing, yamls everywhere and weird nonsensical terminology, ugh