This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_prometheus [2024/12/06 12:13] val [prometheus-alertmanager] |
сервис_prometheus [2025/03/26 17:06] (current) val [prometheus-alertmanager] |
||
---|---|---|---|
Line 41: | Line 41: | ||
===== prometheus-alertmanager ===== | ===== prometheus-alertmanager ===== | ||
- | * [[https://medium.com/devops-dudes/prometheus-alerting-with-alertmanager-e1bbba8e6a8e|Prometheus Alerting with AlertManager]] | + | |
* [[https://alex.dzyoba.com/blog/prometheus-alerts/|Prometheus alerts examples]] | * [[https://alex.dzyoba.com/blog/prometheus-alerts/|Prometheus alerts examples]] | ||
- | * [[https://www.digitalocean.com/community/tutorials/how-to-use-alertmanager-and-blackbox-exporter-to-monitor-your-web-server-on-ubuntu-16-04|How To Use Alertmanager And Blackbox Exporter To Monitor Your Web Server On Ubuntu 16.04]] | + | |
+ | * [[https://gist.github.com/krisek/62a98e2645af5dce169a7b506e999cd8|Prometheus alert rules for node exporter]] | ||
* [[https://awesome-prometheus-alerts.grep.to/|Awesome Prometheus alerts]] | * [[https://awesome-prometheus-alerts.grep.to/|Awesome Prometheus alerts]] | ||
+ | * [[https://samber.github.io/awesome-prometheus-alerts/rules]] | ||
+ | |||
+ | * [[https://github.com/samber/awesome-prometheus-alerts/tree/master/dist/rules]] | ||
+ | |||
* [[Сервис MTA#Установка и настройка MTA на обработку почты домена hostname]] | * [[Сервис MTA#Установка и настройка MTA на обработку почты домена hostname]] | ||
Line 53: | Line 58: | ||
# cat /etc/prometheus/alertmanager.yml | # cat /etc/prometheus/alertmanager.yml | ||
</code><code> | </code><code> | ||
- | ... | ||
global: | global: | ||
- | smtp_smarthost: 'localhost:25' | + | smtp_smarthost: 'server.corpX.un:25' |
- | smtp_from: 'prometheus@server.corpX.un' | + | smtp_from: 'alertmanager@corpX.un' |
smtp_require_tls: false | smtp_require_tls: false | ||
- | # smtp_auth_username: 'alertmanager' | + | templates: |
- | # smtp_auth_password: 'password' | + | - '/etc/prometheus/alertmanager_templates/*.tmpl' |
- | ... | + | |
- | # A default receiver | + | route: |
+ | group_wait: 30s | ||
+ | group_interval: 5m | ||
+ | repeat_interval: 3h | ||
receiver: team-X-mails | receiver: team-X-mails | ||
- | ... | + | |
receivers: | receivers: | ||
- | - name: 'team-X-mails' | + | - name: 'team-X-mails' |
- | email_configs: | + | email_configs: |
- | - to: 'student@corpX.un' | + | - to: 'student@corpX.un' |
- | send_resolved: true | + | send_resolved: true |
- | ... | + | |
</code><code> | </code><code> | ||
# service prometheus-alertmanager restart | # service prometheus-alertmanager restart |