Closed sed-i closed 1 year ago
The alertmanagers section in prometheus's config is rendered without a scheme and without tls_config, and prometheus uses http by default.
alertmanagers
tls_config
http
ca_file
This PR goes in tandem with https://github.com/canonical/alertmanager-k8s-operator/pull/171.
Reference: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tls_config
https://github.com/canonical/cos-lite-bundle/issues/75
/api/v1/alerts
/api/v2/alerts
Add scheme to alertmanagers config section.
Itests passed but not reflected on the PR page here. Merging.
Issue
The
alertmanagers
section in prometheus's config is rendered without a scheme and withouttls_config
, and prometheus useshttp
by default.Solution
Figure out how to populate thetls_config
section with aca_file
that matches alertmanager.This PR goes in tandem with https://github.com/canonical/alertmanager-k8s-operator/pull/171.
Reference: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tls_config
Context
https://github.com/canonical/cos-lite-bundle/issues/75
Testing Instructions
/api/v1/alerts
and that the same alerts show in alertmanagers/api/v2/alerts
.Release Notes
Add scheme to alertmanagers config section.