Skip to content

Releases: prometheus/client_java

v1.3.6

14 Feb 15:24
5e93f4b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.3.5...v1.3.6

v1.3.5

13 Dec 13:31
5359ba3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.3.4...v1.3.5

v1.3.4

25 Nov 17:02
d0e2dd3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.3.3...v1.3.4

v1.3.3

07 Nov 17:30
2c022be
Compare
Choose a tag to compare

What's Changed

  • Bump com.google.protobuf:protobuf-java from 4.28.2 to 4.28.3 by @dependabot in #1178
  • Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.8.0-alpha to 2.9.0-alpha by @dependabot in #1164
  • avoid ConcurrentModificationException by @zeitlinger in #1191
  • revert incompatible api change by @zeitlinger in #1192

Full Changelog: v1.3.2...v1.3.3

v1.3.2

19 Oct 11:52
21bcfac
Compare
Choose a tag to compare

What's Changed

  • Simple MetricsSnapshot performance change by @dhoard in #963
  • feat: add bearerToken builder to pushgateway exporter by @FUSAKLA in #968
  • Fix UnknownDataPointSnapshot constructor by @mimaison in #977
  • Added methods by @dhoard in #978
  • Updated CircleCI image by @dhoard in #982
  • Change links on front page to be relative by @MaBiConti in #981
  • add support for guava instrumentation with 1.X.X by @pheyken in #979
  • add support for caffeine instrumentation with 1.X.X by @pheyken in #983
  • Nullify noLabels in StatefulMetric during clear() to prevent no-label inc to stop working by @iaco86 in #972
  • Add abstract build method to MetricSnapshot.Builder by @mimaison in #969
  • Fix PrometheusNaming.sanitizeMetricName() methods by @mimaison in #975
  • additional improve MetricSnapshots.Builder performance by @burov4j in #985
  • Make JvmMetrics.register idempotent with the default registry by @mimaison in #987
  • http server, add subject.doAs handler wrapper for exchange attribute … by @gtully in #1089
  • fix buffer sync logic using modern concurrency primitives by @zeitlinger in #991
  • use otel autoconfigure by @zeitlinger in #1147
  • Add clear() method into PrometheusRegistry to unregister all collectors by @zeitlinger in #1158

New Contributors

Full Changelog: v1.3.1...v1.3.2

1.3.1 / 2024-05-23

23 May 14:32
Compare
Choose a tag to compare

This is just a minor update to the 1.3.0 release:

With the previous releases it was possible to create illegal UNIT names, like new Unit("&^$") or new Unit("total").

This release prevents that (throwing an IllegalArgumentException), and also adds a method PrometheusNaming.sanitizeUnitName(name) for converting arbitrary strings into valid Prometheus UNIT names.

1.3.0 / 2024-05-16

16 May 22:10
Compare
Choose a tag to compare

This is the 1.3.0 release of the Prometheus Java client library.

The headline feature is the new prometheus-metrics-exporter-pushgateway module. See https://prometheus.github.io/client_java/exporters/pushgateway/ for documentation.

  • [FEATURE] Port PushGateway to client_java 1.x
  • [ENHANCEMENT] Run HTTPServer as a Daemon Thread. Thanks @mberndt123.
  • [BUGFIX] Fix naming issue in the Dropwizard 5 exporter. Thanks @kingster
  • [BUGFIX] Allow metric names with single character
  • [ENHANCEMENT] Fix flaky tests. Thanks @dhoard for extensively load testing our build.
  • [ENHANCEMENT] Enforce unit suffix in metric name when unit is not null. Thanks @jonatan-ivanov
  • [ENHANCEMENT] Explicit DuplicateLabelsException when creating MetricSnapshot

Thanks to everyone who contributed.

1.2.1 / 2024-04-23

04 Apr 21:16
Compare
Choose a tag to compare

Minor release to help Spring Boot adopt client_java 1.x in the Micrometer Prometheus registry.

  • [ENHANCEMENT] add a method for initializing PrometheusProperties with an external properties map. This can be used to load properties from Spring configuration. Thanks @jonatan-ivanov
  • [ENHANCEMENT] remove import statement for SpanContextSupplier so that the code still runs if the prometheus-metrics-tracer-initializer dependency is excluded from the classpath (Micrometer implements it's own SpanContextSupplier and doesn't need the dependency).
  • [BUGFIX] fix Javadoc links. Thanks @shakuzen.

1.2.0 / 2024-03-22

22 Mar 17:41
Compare
Choose a tag to compare

The 1.2.0 release has some nice features and enhancements. Thanks a lot to everyone who contributed.

  • [FEATURE] new Dropwizard instrumentation module prometheus-metrics-instrumentation-dropwizard5. Thanks @kingster
  • [FEATURE] new Javax exporter servlet module prometheus-metrics-exporter-servlet-javax. Thanks @kingster
  • [FEATURE] expose native memory metrics when the JVM was started with -XX:NativeMemoryTracking=summary. Thanks @meier-christoph
  • [FEATURE] minor API additions: get() methods for Counter and Gauge, clear() method for all metrics.
  • [FEATURE] add Exemplars to Histogram _count if the config option exemplarsOnAllMetricTypes is enabled.
  • [ENHANCEMENT] remove Exemplars from Summary _sum, because it's sufficient to have Exemplars on _count.
  • [BUGFIX] error handling when the HTTP connection closes unexpectedly during scrape. Thanks @dhoard
  • [ENHANCEMENT] add BOM (bill of materials) module prometheus-metrics-bom.

1.1.0 / 2023-11-12

12 Nov 16:04
Compare
Choose a tag to compare

This release contains lots of smaller fixes and enhancements to the 1.0.0 release. Thanks a lot to everyone who contributed.

  • [ENHANCEMENT] Avoid duplicate call to the scrape() method in the default Collector implementation. This does not affect the core metrics, because the core metrics override getPrometheusName(), so they don't use the default implementation.
  • [BUGFIX] Fix unit for process_cpu_seconds_total #881. Thanks @yrn1.
  • [ENHANCEMENT] Add automatic module names #871. This removes a warning for users of Java 9 modules. Thanks @solomax.
  • [FEATURE] Add API to support the multi target exporter pattern #873. Thanks @ganzuoni.
  • [ENHANCEMENT] Add Exemplar support for the OpenTelemetry OTLP exporter #883. Thanks @0x006EA1E5.
  • [BUGIFX] Fix histogram bucket boundaries in the prometheus-metrics-simpleclient-bridge #887. Thanks @turchenkoalex.
  • [BUGFIX] Fix sliding window for Summary metrics #894. Thanks @yrn1.
  • [ENHANCEMENT] Add equals() and hashCode() to Unit #897. Thanks @dhoard.
  • [ENHANCEMENT] Bump dependency versions #899.