Skip to content

Commit

Permalink
Update prometheus and thanos versions (prometheus-operator#3946)
Browse files Browse the repository at this point in the history
* Update prometheus and thanos versions

* Remove alertmanager v1 call in prometheus test
  • Loading branch information
QuentinBisson authored Apr 7, 2021
1 parent 14fe686 commit cec7f2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Documentation/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ The versions of Prometheus compatible to be run with the Prometheus Operator are
* v2.23.0
* v2.24.0
* v2.24.1
* v2.25.0
* v2.25.1
* v2.25.2
* v2.26.0

## Alertmanager

Expand Down
6 changes: 5 additions & 1 deletion pkg/operator/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
DefaultAlertmanagerVersion = "v0.21.0"
DefaultAlertmanagerBaseImage = "quay.io/prometheus/alertmanager"
DefaultAlertmanagerImage = DefaultAlertmanagerBaseImage + ":" + DefaultAlertmanagerVersion
DefaultThanosVersion = "v0.17.2"
DefaultThanosVersion = "v0.18.0"
DefaultThanosBaseImage = "quay.io/thanos/thanos"
DefaultThanosImage = DefaultThanosBaseImage + ":" + DefaultThanosVersion
)
Expand Down Expand Up @@ -67,6 +67,10 @@ var (
"v2.23.0",
"v2.24.0",
"v2.24.1",
"v2.25.0",
"v2.25.1",
"v2.25.2",
"v2.26.0",
}
DefaultPrometheusVersion = PrometheusCompatibilityMatrix[len(PrometheusCompatibilityMatrix)-1]
DefaultPrometheusBaseImage = "quay.io/prometheus/prometheus"
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3640,7 +3640,7 @@ func isAlertmanagerDiscoveryWorking(ns, promSVCName, alertmanagerName string) fu
}
expectedAlertmanagerTargets := []string{}
for _, p := range pods.Items {
expectedAlertmanagerTargets = append(expectedAlertmanagerTargets, fmt.Sprintf("http://%s:9093/api/v1/alerts", p.Status.PodIP))
expectedAlertmanagerTargets = append(expectedAlertmanagerTargets, fmt.Sprintf("http://%s:9093/api/v2/alerts", p.Status.PodIP))
}

response, err := framework.PrometheusSVCGetRequest(ns, promSVCName, "/api/v1/alertmanagers", map[string]string{})
Expand Down

0 comments on commit cec7f2c

Please sign in to comment.