Skip to content

Commit b61c3c9

Browse files
authored
Update to prometheus-rsocket-proxy 2.0.0-M1 (#5888)
1 parent e1c8485 commit b61c3c9

File tree

11 files changed

+10
-12
lines changed

11 files changed

+10
-12
lines changed

spring-cloud-dataflow-build/spring-cloud-dataflow-build-dependencies/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<nimbus-jose-jwt.version>9.39.3</nimbus-jose-jwt.version>
3030
<snappy-java.version>1.1.10.5</snappy-java.version>
3131
<commons-compress.version>1.26.2</commons-compress.version>
32-
<prometheus-rsocket.version>1.6.0-SNAPSHOT</prometheus-rsocket.version>
32+
<prometheus-rsocket.version>2.0.0-M1</prometheus-rsocket.version>
3333
<java-cfenv.version>2.3.0</java-cfenv.version>
3434
<spring-cloud-services-starter-config-client.version>3.5.4</spring-cloud-services-starter-config-client.version>
3535
<kubernetes-fabric8-client.version>5.12.4</kubernetes-fabric8-client.version>

spring-cloud-dataflow-docs/src/main/asciidoc/spring-boot-3x.adoc

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ The naming of the metrics registry-specific properties differ as follows:
2020
* `2.x`: `management.metrics.export.prometheus.enabled=true`
2121
* `3.x`: `management.prometheus.metrics.export.enabled=true`
2222

23-
NOTE: One exception to this rule is the Prometheus RSocket Proxy which still runs on Spring Boot `2.x` and therefore expects the properties in the `management.metrics.export.prometheus.rsocket.*` format.
24-
2523
Be sure that you use the `2.x` format when configuring `2.x` based stream apps and the `3.x` format when configuring `3.x` based stream apps.
2624

2725
===== Dataflow Metrics Property Replication

src/carvel/config/values/values.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ scdf:
108108
enabled: false
109109
image:
110110
repository: micrometermetrics/prometheus-rsocket-proxy
111-
tag: 1.6.0-SNAPSHOT
111+
tag: 2.0.0-M1
112112
digest: ""

src/deploy/carvel/configure-prometheus-proxy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
function set_properties() {
33
PREFIX=$1
4-
yq "${PREFIX}.management.metrics.export.prometheus.rsocket.host=\"$HOST\"" -i ./scdf-values.yml
4+
yq "${PREFIX}.micrometer.prometheus.rsocket.host=\"$HOST\"" -i ./scdf-values.yml
55
yq "${PREFIX}.management.metrics.export.prometheus.pushgateway.base-url=\"http://$HOST:$PORT\"" -i ./scdf-values.yml
66
yq "${PREFIX}.management.metrics.export.prometheus.pushgateway.enabled=true" -i ./scdf-values.yml
77
yq "${PREFIX}.management.metrics.export.prometheus.pushgateway.shutdown-operation=\"PUSH\"" -i ./scdf-values.yml

src/deploy/carvel/load-images.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ else
6767
sh "$K8S/load-image.sh" "springcloud/spring-cloud-dataflow-server" "$DATAFLOW_VERSION" true
6868
fi
6969
if [ "$PROMETHEUS" = "true" ]; then
70-
sh "$K8S/load-image.sh" "micrometermetrics/prometheus-rsocket-proxy" "1.6.0-SNAPSHOT" false
70+
sh "$K8S/load-image.sh" "micrometermetrics/prometheus-rsocket-proxy" "2.0.0-M1" false
7171
fi
7272
if [ "$REGISTRY" = "" ]; then
7373
REGISTRY=springcloud
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
docker pull "micrometermetrics/prometheus-rsocket-proxy:1.6.0-SNAPSHOT"
2+
docker pull "micrometermetrics/prometheus-rsocket-proxy:2.0.0-M1"

src/deploy/k8s/deploy-scdf.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ if [ "$PROMETHEUS" = "true" ] || [ "$METRICS" = "prometheus" ]; then
171171
if [ "$K8S_DRIVER" != "tmc" ] && [ "$K8S_DRIVER" != "gke" ]; then
172172
sh "$SCDIR/load-image.sh" "springcloud/spring-cloud-dataflow-grafana-prometheus:$DATAFLOW_VERSION" false
173173
sh "$SCDIR/load-image.sh" "prom/prometheus:v2.37.8"
174-
sh "$SCDIR/load-image.sh" "micrometermetrics/prometheus-rsocket-proxy:1.6.0-SNAPSHOT"
174+
sh "$SCDIR/load-image.sh" "micrometermetrics/prometheus-rsocket-proxy:2.0.0-M1"
175175
fi
176176
set +e
177177
kubectl create --namespace "$NS" serviceaccount prometheus-rsocket-proxy

src/docker-compose/docker-compose-prometheus.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
#- SPRING_APPLICATION_JSON={"spring.jpa.properties.hibernate.generate_statistics":true}
2323

2424
prometheus-rsocket-proxy:
25-
image: micrometermetrics/prometheus-rsocket-proxy:1.6.0-SNAPSHOT
25+
image: micrometermetrics/prometheus-rsocket-proxy:2.0.0-M1
2626
container_name: prometheus-rsocket-proxy
2727
expose:
2828
- '9096'

src/kubernetes/prometheus-proxy/prometheus-proxy-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
serviceAccountName: prometheus-rsocket-proxy
1818
containers:
1919
- name: prometheus-rsocket-proxy
20-
image: micrometermetrics/prometheus-rsocket-proxy:1.6.0-SNAPSHOT
20+
image: micrometermetrics/prometheus-rsocket-proxy:2.0.0-M1
2121
imagePullPolicy: IfNotPresent
2222
ports:
2323
- name: scrape

src/templates/docker-compose/docker-compose-prometheus.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
#- SPRING_APPLICATION_JSON={"spring.jpa.properties.hibernate.generate_statistics":true}
2323

2424
prometheus-rsocket-proxy:
25-
image: micrometermetrics/prometheus-rsocket-proxy:1.6.0-SNAPSHOT
25+
image: micrometermetrics/prometheus-rsocket-proxy:2.0.0-M1
2626
container_name: prometheus-rsocket-proxy
2727
expose:
2828
- '9096'

src/templates/kubernetes/prometheus-proxy/prometheus-proxy-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
serviceAccountName: prometheus-rsocket-proxy
1818
containers:
1919
- name: prometheus-rsocket-proxy
20-
image: micrometermetrics/prometheus-rsocket-proxy:1.6.0-SNAPSHOT
20+
image: micrometermetrics/prometheus-rsocket-proxy:2.0.0-M1
2121
imagePullPolicy: IfNotPresent
2222
ports:
2323
- name: scrape

0 commit comments

Comments
 (0)