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

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 83

  • @AntonPutra
    @AntonPutra  Год назад +4

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

    • @Fidellio369
      @Fidellio369 3 месяца назад +1

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

    • @AntonPutra
      @AntonPutra  3 месяца назад

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

  • @AshishRaniwala
    @AshishRaniwala Год назад +6

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

  • @renanangelodossantos4726
    @renanangelodossantos4726 Год назад +2

    FINALLY got it working. Thanks!

  • @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

  • @piyushdarji7926
    @piyushdarji7926 Год назад +2

    Anton will become big youtuber one day definitely✌🤟

    • @AntonPutra
      @AntonPutra  Год назад +1

      Thanks for the support Piyush!

  • @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

  • @YordisPrieto
    @YordisPrieto Год назад +1

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

  • @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

  • @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

  • @A_Dudkin
    @A_Dudkin Год назад

    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  Год назад

      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.

  • @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 - ruclips.net/video/feHSU0BMcco/видео.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?

  • @ahmedelshafaie
    @ahmedelshafaie Год назад +1

    Awesome, Thank you Anton

  • @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.

  • @RafaelDurelli
    @RafaelDurelli Год назад +1

    Best videos as always.

  • @suncru
    @suncru Год назад +1

    Thank you, Anton
    That really helped a lot

  • @anastrak
    @anastrak Год назад +1

    Thanks for this precious content , very well explained .

  • @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 - ruclips.net/video/iodq-4srXA8/видео.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!

  • @МаксимУрбаев
    @МаксимУрбаев Год назад +1

    Thanks a lot, this tutorial really helped me!

  • @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.

  • @devops22
    @devops22 Год назад +1

    Awesome work ✨

  • @Davidlavieri
    @Davidlavieri 7 месяцев назад

    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 7 месяцев назад

      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  7 месяцев назад

      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 7 месяцев назад

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

  • @will-bush
    @will-bush 4 месяца назад +1

    This is gold

  • @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

  • @DikshantRai-od8vq
    @DikshantRai-od8vq 6 месяцев назад

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

    • @AntonPutra
      @AntonPutra  6 месяцев назад

      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

  • @diegonayalazo
    @diegonayalazo 13 дней назад +1

    Thanks

  • @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 10 месяцев назад +1

    whenver you ssay operator i hear brother

    • @AntonPutra
      @AntonPutra  10 месяцев назад

      working on my english :)

    • @mohamedelmehdielberiri
      @mohamedelmehdielberiri 10 месяцев назад

      @@AntonPutra its undrestandable, thanks for the explenation tho

  • @gulammoideen9405
    @gulammoideen9405 9 месяцев назад

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

    • @bartsimpson2324
      @bartsimpson2324 8 месяцев назад

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

  • @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 RUclips 🥲😅

    • @AntonPutra
      @AntonPutra  Год назад

      @@YordisPrieto 😅

  • @santacloudy
    @santacloudy 11 месяцев назад

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

  • @FAELP22
    @FAELP22 2 месяца назад +1

    Does the helm version of prometheus-community/kube-prometheus-stack work too?, Thanks

    • @AntonPutra
      @AntonPutra  2 месяца назад +1

      Yes, you can use it as well, but you'll need to customize it to fit your needs. There are a lot of components in that Helm chart.