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

[prometheus] Use Alertmanager API port only for kubernetes_sd. #353

Merged
merged 2 commits into from
Nov 14, 2020
Merged

Conversation

anas-aso
Copy link
Contributor

Signed-off-by: Anas anas.oubrahim@commercetools.com

What this PR does / why we need it:

Avoid sending alerts to Alertmanager Peering port.

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

In this PR : #179 the mesh peering port was explicitly defined for Alertmanager pods, as a result kubernetes_sd will list it as a target for Prometheus to send alerts to.
This leads to the following error on Prometheus spamming the logs:

{"alertmanager":"http://10.35.102.55:6783/api/v1/alerts","caller":"notifier.go:527","component":"notifier","count":2,"err":"Post \"http://10.35.102.55:6783/api/v1/alerts\": EOF","level":"error","msg":"Error sending alert","ts":"2020-11-12T16:45:09.526Z"}

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Signed-off-by: Anas <anas-aso@users.noreply.github.com>
Signed-off-by: Anas <anas-aso@users.noreply.github.com>
@monotek monotek merged commit 4346bfa into prometheus-community:main Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants