Hi y'all I'm currently trying to get my alerting to work via email.
When running my prom.exe I get the following error quite often: ts=2023-03-06T10:32:02.804Z caller=notifier.go:532 level=error component=notifier alertmanager=http://localhost:9093/api/v2/alerts count=30 msg="Error sending alert" err="Post \"http://localhost:9093/api/v2/alerts\": dial tcp [::1]:9093: connectex: No connection could be made because the target machine actively refused it." My prom.yml is: # my global config global: scrape_interval: 1m # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 30s # Evaluate rules every 30 seconds. The default is every 1 minute. scrape_timeout: 30s # scrape_timeout is set to the global default (10s). # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: - 127.0.0.1:9093 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: - rules.yml # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself. scrape_configs: # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. - job_name: 'node' file_sd_configs: - files: - C:/Prometheus/prometheus-2.41.0.windows-amd64/target_cluster_b.yml alertingmanager.yml: global: resolve_timeout: 1m smtp_smarthost: 'smtp.ionos.de:587' smtp_from: 'internal-mail1' smtp_auth_username: ' internal-mail1' smtp_auth_password: 'password' smtp_require_tls: true templates: - 'C:\Prometheus\templates\default-message-card.tmpl' route: receiver: 'email' group_wait: 30s group_interval: 5m repeat_interval: 4h group_by: [cluster, alertname] routes: - receiver: email group_interval: 1m group_wait: 10s repeat_interval: 1m matchers: - severity="critical" - receiver: email group_interval: 1m group_wait: 10s repeat_interval: 1m matchers: - severity="warning" receivers: - name: 'email' email_configs: - to: 'internal-mail2' send_resolved: true #- name: 'alert_channel' # webhook_configs: # - url: 'http://127.0.0.1:2000/alertmanager' # send_resolved: true # # #- name: 'teams' # webhook_configs: # - url: 'my-teams-webhook' # send_resolved: true Can someone help me to correct my fault? If I missed something please let me know :) Kind regards - Kolja -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3b2102a1-0692-436b-80b6-b56371b410ccn%40googlegroups.com.