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

Add scheme to alertmanagers config section #495

Merged
merged 8 commits into from
Jul 14, 2023
Merged

Conversation

sed-i
Copy link
Contributor

@sed-i sed-i commented Jul 7, 2023

Issue

The alertmanagers section in prometheus's config is rendered without a scheme and without tls_config, and prometheus uses http by default.

Solution

  • Add scheme to alertmanager config.
  • Figure out how to populate the tls_config section with a ca_file that matches alertmanager.

This PR goes in tandem with canonical/alertmanager-k8s-operator#171.

Reference: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tls_config

Context

canonical/cos-lite-bundle#75

Testing Instructions

  • Pack alertmanager and prom from the two PRs
  • Deploy and relate prom to alertmanager, and alertmanager to self-signed-certificates
  • Confirm alerts are firing on prom's /api/v1/alerts and that the same alerts show in alertmanagers /api/v2/alerts.

Release Notes

Add scheme to alertmanagers config section.

@sed-i
Copy link
Contributor Author

sed-i commented Jul 14, 2023

Itests passed but not reflected on the PR page here. Merging.

@sed-i sed-i merged commit 91c9df7 into main Jul 14, 2023
12 checks passed
@sed-i sed-i deleted the feature/alertmanager_tls branch July 14, 2023 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants