(camel) branch main updated: Bump micrometer-version from 1.12.5 to 1.13.0 (#14140)

2024-05-14 Thread davsclaus
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
 new 29ccb1c6932 Bump micrometer-version from 1.12.5 to 1.13.0 (#14140)
29ccb1c6932 is described below

commit 29ccb1c6932aa0646edae0245f4df41d19c844c5
Author: Claus Ibsen 
AuthorDate: Tue May 14 14:25:45 2024 +0200

Bump micrometer-version from 1.12.5 to 1.13.0 (#14140)
---
 .../micrometer/prometheus/MicrometerPrometheus.java  | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git 
a/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
 
b/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
index 3adf0b9fc16..833c7ba4cd1 100644
--- 
a/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
+++ 
b/components/camel-micrometer-prometheus/src/main/java/org/apache/camel/component/micrometer/prometheus/MicrometerPrometheus.java
@@ -27,9 +27,8 @@ import java.util.StringJoiner;
 import io.micrometer.core.instrument.Meter;
 import io.micrometer.core.instrument.MeterRegistry;
 import io.micrometer.core.instrument.binder.MeterBinder;
-import io.micrometer.prometheus.PrometheusConfig;
-import io.micrometer.prometheus.PrometheusMeterRegistry;
-import io.prometheus.client.exporter.common.TextFormat;
+import io.micrometer.prometheusmetrics.PrometheusConfig;
+import io.micrometer.prometheusmetrics.PrometheusMeterRegistry;
 import io.vertx.core.Handler;
 import io.vertx.core.http.HttpMethod;
 import io.vertx.ext.web.Route;
@@ -73,6 +72,9 @@ public class MicrometerPrometheus extends ServiceSupport 
implements CamelMetrics
 
 private static final Logger LOG = 
LoggerFactory.getLogger(MicrometerPrometheus.class);
 
+private static final String CONTENT_TYPE_004 = "text/plain; version=0.0.4; 
charset=utf-8";
+private static final String CONTENT_TYPE_100 = 
"application/openmetrics-text; version=1.0.0; charset=utf-8";
+
 private MainHttpServer server;
 private VertxPlatformHttpRouter router;
 private PlatformHttpComponent platformHttpComponent;
@@ -389,7 +391,7 @@ public class MicrometerPrometheus extends ServiceSupport 
implements CamelMetrics
 metrics.method(HttpMethod.GET);
 
 final String format
-= "0.0.4".equals(textFormatVersion) ? 
TextFormat.CONTENT_TYPE_004 : TextFormat.CONTENT_TYPE_OPENMETRICS_100;
+= "0.0.4".equals(textFormatVersion) ? CONTENT_TYPE_004 : 
CONTENT_TYPE_100;
 metrics.produces(format);
 
 Handler handler = new Handler() {
@@ -399,7 +401,7 @@ public class MicrometerPrometheus extends ServiceSupport 
implements CamelMetrics
 // the client may ask for version 1.0.0 via accept header
 String ah = ctx.request().getHeader("Accept");
 if (ah != null && ah.contains("application/openmetrics-text")) 
{
-ct = TextFormat.chooseContentType(ah);
+ct = CONTENT_TYPE_100;
 }
 
 ctx.response().putHeader("Content-Type", ct);



(camel) branch main updated: Bump micrometer-version from 1.12.5 to 1.13.0 (#14140)

2024-05-14 Thread davsclaus
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
 new ea9fb268c35 Bump micrometer-version from 1.12.5 to 1.13.0 (#14140)
ea9fb268c35 is described below

commit ea9fb268c353d09a8150be1823adebf651b0adc5
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Tue May 14 14:11:13 2024 +0200

Bump micrometer-version from 1.12.5 to 1.13.0 (#14140)

Bumps `micrometer-version` from 1.12.5 to 1.13.0.

Updates `io.micrometer:micrometer-commons` from 1.12.5 to 1.13.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- 
[Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.12.5...v1.13.0)

Updates `io.micrometer:micrometer-core` from 1.12.5 to 1.13.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- 
[Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.12.5...v1.13.0)

Updates `io.micrometer:micrometer-observation` from 1.12.5 to 1.13.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- 
[Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.12.5...v1.13.0)

Updates `io.micrometer:micrometer-registry-jmx` from 1.12.5 to 1.13.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- 
[Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.12.5...v1.13.0)

Updates `io.micrometer:micrometer-registry-prometheus` from 1.12.5 to 1.13.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- 
[Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.12.5...v1.13.0)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-commons
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: io.micrometer:micrometer-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: io.micrometer:micrometer-observation
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: io.micrometer:micrometer-registry-jmx
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: io.micrometer:micrometer-registry-prometheus
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] 
Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
---
 parent/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parent/pom.xml b/parent/pom.xml
index 675dd12c9b3..35fcd771253 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -351,7 +351,7 @@
 3.5.2
 3.4.0
 4.2.25
-1.12.5
+1.13.0
 1.2.5
 3.1
 
4.0.2