Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alertmanager can't push notification to dashboard prometheus receiver #623

Open
s0nea opened this issue Jan 17, 2022 · 0 comments
Open

Alertmanager can't push notification to dashboard prometheus receiver #623

s0nea opened this issue Jan 17, 2022 · 0 comments
Labels

Comments

@s0nea
Copy link

s0nea commented Jan 17, 2022

The Alertmanager is unable to send POST requests (alerts) to the <host-url>/api/prometheus_receiver endpoint of the dashboard. Therefor no notification will be shown on the dashboard. I took a look at the alertmanager container log output and found the following error:

"Notify for alerts failed" num_alerts=1 err="ceph-dashboard/webhook[0]: notify retry canceled after 8 attempts: Post \"https://master.ses7-mini.test:8443/api/prometheus_receiver\": x509: certificate is not valid for any names, but wanted to match master.ses7-mini.test"

I figured out a workaround by adapting the alertmanager config and adding insecure_skip_verify to the global section:

# {{ cephadm_managed }}
# See https://prometheus.io/docs/alerting/configuration/ for documentation.

global:
  resolve_timeout: 5m
  http_config:
    tls_config:
      insecure_skip_verify: true

route:
  ...

receivers:
  ...
@s0nea s0nea added the bug label Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant