diff --git a/build/yamls/antrea-prometheus.yml b/build/yamls/antrea-prometheus.yml index 8a94b9185e7..79ead678fec 100644 --- a/build/yamls/antrea-prometheus.yml +++ b/build/yamls/antrea-prometheus.yml @@ -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/" diff --git a/docs/prometheus-integration.md b/docs/prometheus-integration.md index 7fa896937e1..53a7480b304 100644 --- a/docs/prometheus-integration.md +++ b/docs/prometheus-integration.md @@ -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 diff --git a/test/e2e/prometheus_test.go b/test/e2e/prometheus_test.go index 568225e0849..25ce5354ba0 100644 --- a/test/e2e/prometheus_test.go +++ b/test/e2e/prometheus_test.go @@ -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)