Hello once more. I'm trying to setup alertmanager for prometheus. But i'm stuck. All containers are up and running, i can ping alertmanager container inside prom container. But there are no rules and alerts in prometheus. Please look at my config. I will be glad for support.
*docker-compose.yml:* *version: '3' services: prometheus: image: prom/prometheus:latest container_name: prometheus ports: - 9090:9090 volumes: - ./prometheus/conf:/etc/prometheus # - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro - ./alertmanager/alert_rules.yml:/alertmanager/alert.rules.yml command: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' alertmanager: image: prom/alertmanager:latest container_name: alertmanager ports: - 9093:9093 volumes: - ./alertmanager/:/etc/alertmanager/ command: - '--config.file=/etc/alertmanager/alertmanager.yml' - '--storage.path=/alertmanager'prometheus.yml:global: scrape_interval: 15s scrape_timeout: 10s evaluation_interval: 15s alerting: alertmanagers: - static_configs: - targets: - 10.10.5.14:9093 scheme: http timeout: 10s api_version: v1 rule_files: - "/alertmanager/alert.rules:/alertmanager/alert.rules" scrape_configs: - job_name: 'blackbox' metrics_path: /probe params: module: [http_2xx] static_configs: - targets: - "google.com" relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: localhost:9115alert.rules:groups: - name: example rules: # Alert for any instance that is unreachable for >1 minutes. - alert: InstanceDown expr: up == 0 for: 1m alertmanager.yml:route: group_by: [Alertname] # Send all notifications to me. receiver: email-me receivers: - name: email-me email_configs: - to: anyemail.com from: [email protected] smarthost: smtp.gmail.com:587 auth_username: "[email protected]" auth_identity: "[email protected]" auth_password: "password"* -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/dcd5fda8-d92c-488c-9afe-4ce85e73bdbdo%40googlegroups.com.

