Skip to content

Commit

Permalink
Upgrade Prometheus to v2.46.0 (#5023)
Browse files Browse the repository at this point in the history
Upgrade Prometheus to v2.46.0 and change the image to `ubuntu/prometheus:2.46.0-22.04_stable`

Signed-off-by: Lan Luo <[email protected]>
  • Loading branch information
luolanzone authored Nov 6, 2023
1 parent ec2f6f8 commit 8d44d20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build/yamls/antrea-prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ spec:
spec:
containers:
- name: prometheus
image: projects.registry.vmware.com/antrea/prom-prometheus:v2.19.3
image: ubuntu/prometheus:2.46.0-22.04_stable
command: [ "/bin/prometheus" ]
args:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus/"
Expand Down
2 changes: 1 addition & 1 deletion docs/prometheus-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ parameter to true in the Controller and the Agent configurations.

### Prometheus version

Prometheus integration with Antrea is validated as part of CI using Prometheus v2.19.3.
Prometheus integration with Antrea is validated as part of CI using Prometheus v2.46.0.

### Prometheus RBAC

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 @@ -279,7 +279,7 @@ func testMetricsFromPrometheusServer(t *testing.T, data *TestData, prometheusJob

// Build the Prometheus query URL
// Target metadata API(/api/v1/targets/metadata) has been available since Prometheus v2.4.0.
// This API is still experimental in Prometheus v2.19.3.
// This API is still experimental in Prometheus v2.46.0.
path := url.PathEscape("match_target={job=\"" + prometheusJob + "\"}")
address := net.JoinHostPort(hostIP, fmt.Sprint(nodePort))
queryURL := fmt.Sprintf("http://%s/api/v1/targets/metadata?%s", address, path)
Expand Down

0 comments on commit 8d44d20

Please sign in to comment.