'Prometheus not sending alarms to Alertmanager

although I can see my alarms on prometheus, I cannot view alarms via alertmanager, although their status is Firing. My settings;

enter image description here

enter image description here

prometheus.yml config

# Alertmanager configuration
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      - localhost:9093

rule_files:
  - alert.rules.yml

scrape:
scrape_configs:
  - job_name: 'prometheus'
    static_configs:
    - targets: ['localhost:9090']
  - job_name: 'alertmanager'
    static_configs:
    - targets: ['localhost:9093']
 

alertmanager.yml config

global:
  smtp_smarthost: 'localhost:25'
  smtp_from: '[email protected]'
  smtp_require_tls: false
  
  slack_api_url: 'https://hooks.slack.com/sxx'

route:
  group_by: ['instance', 'severity']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 3h
  receiver: team-1
  
receivers:
  - name: 'team-1'
    email_configs:
      - to: 'your-email-address'
    slack_configs:
      - channel: '#urlcheck'

Can see silences on prometheus but can't display alarms on alertmanager;

enter image description here

enter image description here



Solution 1:[1]

default Prometheus config for alertmanager is not correct

use this config to connecting your alertmanager to Prometheus

alerting:
  alertmanagers:
  - static_configs:
    - targets: ['127.0.0.1:9093']

then sudo systemctl status prometheus.service

and check status with sudo systemctl status prometheus.service

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Moein T