Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.5.x] fix/alertmanager: downgrade prometheus/common to fix generated config#63793

Merged
jdpleiness merged 1 commit into
5.5.xfrom
backport-63790-to-5.5.x
Jul 11, 2024
Merged

[Backport 5.5.x] fix/alertmanager: downgrade prometheus/common to fix generated config#63793
jdpleiness merged 1 commit into
5.5.xfrom
backport-63790-to-5.5.x

Conversation

@sourcegraph-release-bot

Copy link
Copy Markdown
Collaborator

The OTEL upgrade https://github.com/sourcegraph/sourcegraph/pull/63171 bumps the prometheus/common package too far via transitive deps, causing us to generate configuration for alertmanager that altertmanager doesn't accept, at least until the alertmanager project cuts a new release with a newer version of promethues/common.

For now we forcibly downgrade with a replace. Everything still builds, so we should be good to go.

Test plan

sg start and sg run prometheus. On main, editing observability.alerts will cause Alertmanager to refuse to accept the generated configuration. With this patch, all is well it seems - config changes go through as expected. This is a similar test plan for https://github.com/sourcegraph/sourcegraph/pull/63329

Changelog

…#63790)

The OTEL upgrade https://github.com/sourcegraph/sourcegraph/pull/63171
bumps the `prometheus/common` package too far via transitive deps,
causing us to generate configuration for alertmanager that altertmanager
doesn't accept, at least until the alertmanager project cuts a new
release with a newer version of `promethues/common`.

For now we forcibly downgrade with a replace. Everything still builds,
so we should be good to go.

## Test plan
`sg start` and `sg run prometheus`. On `main`, editing
`observability.alerts` will cause Alertmanager to refuse to accept the
generated configuration. With this patch, all is well it seems - config
changes go through as expected. This is a similar test plan for
https://github.com/sourcegraph/sourcegraph/pull/63329

## Changelog

- Fix Prometheus Alertmanager configuration failing to apply
`observability.alerts` from site config

(cherry picked from commit ffa873f)
@jdpleiness jdpleiness merged commit 174c08c into 5.5.x Jul 11, 2024
@jdpleiness jdpleiness deleted the backport-63790-to-5.5.x branch July 11, 2024 19:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants