Prometheus email alerting | Prometheus alertmanager email configuration

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • Hello Friends, Welcome back to my channel. We are going to see how we can setup Prometheus email alerting in this video. We will see the step by step process on prometheus alertmanager email configuration, we will create email notification receiver and write down the configurations in alertmanager.yml file.
    --------------------------------------------------------------------------------------------
    How to setup prometheus:
    • Prometheus On Docker |...
    ---------------------------------------------------------------------------------------------
    ---------------------------------------------------------------------------------------------
    Prometheus alert manager setup:
    • Prometheus Alertmanage...
    ---------------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------------
    Git hub location:
    github.com/sha...
    ----------------------------------------------------------------------------------------------
    ===============================================
    Follow me @:
    / thetips4you
    / @thetips4you
    / thetipsforyou
    www.thetips4you...
    ===============================================
    Music credit: "Royalty Free Music from Bensound"
    Tags:
    Prometheus email alerting,prometheus email alert,prometheus alertmanager email configuration,prometheus email alert template,prometheus alertmanager email

ความคิดเห็น • 45

  • @minamermaid4789
    @minamermaid4789 3 ปีที่แล้ว

    thanks for sharing .. it was helpful

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Glad it was helpful!. Thank you for your comment.

  • @GustavoRodrigues-le3zw
    @GustavoRodrigues-le3zw 2 ปีที่แล้ว +1

    Nice man! Thanks!!

  • @user-ll6sq1lt2k
    @user-ll6sq1lt2k 3 ปีที่แล้ว +1

    thanks it worked

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      You are welcome. Thanks for your feedback.

  • @purshoth.k5027
    @purshoth.k5027 2 ปีที่แล้ว +1

    Hi that's a great video.
    Can you help me to find a solution to absent metrics.. It seems that we keep receiving false alerts on absent metrics. Is there a way where we can stop this false alerts.
    1) Is there any other alternative function instead of absent function which does the same work.
    2) silencing an alert stops only the absent metric alert or stops entire genuine occurring alert as well..
    3) what happens if we reboot the alert manager will the false/in-active alert dissaper?
    We use prometheus version 2.10.1

  • @Chinny26
    @Chinny26 10 วันที่ผ่านมา

    Hi. thank you so much for this wonderful explanation!!!!!!!
    Please the rules you added on your github for cpu, memory and diskspace, can i work with it as i am looking to manage my resources through those rules, plus i need an explanation on them, i am a bit confused. Thank you!!!!

    • @Thetips4you
      @Thetips4you  9 วันที่ผ่านมา

      Yes you can use the example rules. You will have to adapt to your need's.

    • @Chinny26
      @Chinny26 8 วันที่ผ่านมา

      @@Thetips4you Thank youuu!!

  • @Krishna-Dhanya
    @Krishna-Dhanya 2 ปีที่แล้ว

    Hi @Thetips4you Great Video and very helpful
    Could you please help me with how i setup status email sent regularly lets say 08 in the morning every weekday telling me whats disk space of all target environments. Is this possible to configure in alertmanager since these are status email and not about something is down? If it is possible what condition do i use to trigger emails telling me status of target environment Disk Usage?
    It will be a great help. Thanks

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Thank you. Could you please check the full playlist of Prometheus, it will give you complete details.

  • @vishalathawale183
    @vishalathawale183 2 ปีที่แล้ว +1

    Great explanation, can you please let me know how can I modify subject of the alert email. For example I dont want server IP or server name in my alert email subject, Thanks in advance

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Please check the full playlist on it.

  • @erickpugatuyub7290
    @erickpugatuyub7290 3 ปีที่แล้ว +1

    hey thanks for the video, it worked for me.
    Do you know how to receive hostname instead of IP address in the email?

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Great to hear and thank you for your comment. Try changing the label.instance in the alert rule. Read the instructions.

  • @ashishchaudhary8493
    @ashishchaudhary8493 3 ปีที่แล้ว +1

    Hey ! i wanted to set a custom template for Email alert and dont wanna use the default template for alert ! how can we do it

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Make the changes in alert.rule.yml , you can check out my tutorial on slack alert from Prometheus for sample.

  • @aayushigoyal8337
    @aayushigoyal8337 2 ปีที่แล้ว +1

    Is smtp server setup mandatory?
    If yes then how to do it. Please share a link. I have tried it but it isn't working.

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      You don't need to set up your own smtp server, make use of gmail or other smtp server details.

  • @kevinpark3804
    @kevinpark3804 2 ปีที่แล้ว +1

    Does it work for any email, or just Gmail?

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Yes it will work. You need to change the configuration based on the email.

  • @kk77781
    @kk77781 3 ปีที่แล้ว

    How about sending email for specific alerts

  • @venkatreddy5479
    @venkatreddy5479 2 ปีที่แล้ว

    How we can setup okay alert. Means if we get any cpu alert more than 70 we setup alert for critical, once its down lessthan 70. Are we get any alert is resolved notification.

    • @Thetips4you
      @Thetips4you  2 ปีที่แล้ว

      Update your rules.yml according to your percentage requirement.

  • @domingosdias5988
    @domingosdias5988 2 หลายเดือนก่อน

    How can I send alert emails to more than one person, i.e., a collection of emails?

    • @Thetips4you
      @Thetips4you  2 หลายเดือนก่อน

      Create an email group and send it to that.

    • @domingosdias5988
      @domingosdias5988 2 หลายเดือนก่อน

      @@Thetips4you Does it only work that way?

  • @ELIAS-og5vf
    @ELIAS-og5vf 3 ปีที่แล้ว

    Hey sir
    Was wondering if you could help?
    I am looking to adjust alerting rules so that they do not fire for specific hosts. I know I can silence in alert manager but this is only temporary. I am looking for alert manager configuration adjustment.
    Thanks

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว +1

      Thanks for contacting me. I will check and let you know on this.

    • @ELIAS-og5vf
      @ELIAS-og5vf 3 ปีที่แล้ว +1

      @@Thetips4you I have hundreds of hosts reporting to a prometheus server. I have many exporters per host. I want to be able to make a list of hosts that I don't want alerting from. I still need the prometheus monitoring on these hosts.

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Just add to the expr in alert rules. For example you can add instance=~ "ABC" Or host like. You can read alert documentation. You can also use regular expression to use a set of similar instances.

  • @LnqIslive
    @LnqIslive 3 ปีที่แล้ว

    Hey can we manually trigger an slack alert ? Also can we do this for a windows?

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Why do you want to manually trigger an alert and in which scenario? Yes you can do this in windows as well.

    • @LnqIslive
      @LnqIslive 3 ปีที่แล้ว +1

      @@Thetips4you i want to create an alert to slack like a test alert. This alert gets triggered when when WMI server is down. My alert gets fired in prometheus but in alert manager it shows no groups also no alert is been notified

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      Please check my video on Prometheus alert using slack in the playlist Prometheus. That should give you the details on it.

  • @chandreshmishra1380
    @chandreshmishra1380 3 ปีที่แล้ว

    err="*smtp.plainAuth auth: unencrypted connection

  • @TheAliakbarazad
    @TheAliakbarazad ปีที่แล้ว

    if "to" is my email address then what is "from" ???

    • @Thetips4you
      @Thetips4you  ปีที่แล้ว +1

      From is a dummy name. You can give some name which will show up as the email received from.

    • @TheAliakbarazad
      @TheAliakbarazad ปีที่แล้ว

      @@Thetips4you Thank you!! My task just got more demanding, I have to run alertmanager as a Container. FYI

  • @chandreshmishra1380
    @chandreshmishra1380 3 ปีที่แล้ว

    does not advertise the STARTTLS extension"

    • @Thetips4you
      @Thetips4you  3 ปีที่แล้ว

      There is nothing advertised here. What are you really talking about?

    • @chandreshmishra1380
      @chandreshmishra1380 3 ปีที่แล้ว

      I am getting error not receiving mail

    • @chandreshmishra1380
      @chandreshmishra1380 3 ปีที่แล้ว

      I have just down node exporter that showing on Prometheus but mail not receiving

    • @chandreshmishra1380
      @chandreshmishra1380 3 ปีที่แล้ว

      And I am very thankful to you explain this tutorial and easily understand.
      If possible can I use mail instead of alert manager
      Grafana mail alert