Releases: prometheus/client_java
v1.3.8
What's Changed
🏕 Features
- Introduce removeIf method to StatefulMetric by @dao-jun in #1339
- bom should not include junit by @zeitlinger in #1359
- Fixed typos by @dhoard in #1363
- Let clients of DropwizardExports handle validation errors by @mnssn in #1354
- Dropwizard apply label mapper to snapshot metrics by @KacperFilutowski-TomTom in #1266
👒 Dependencies
- Bump jetty-server.version from 12.0.20 to 12.0.21 by @dependabot in #1349
- Bump org.apache.tomcat.embed:tomcat-embed-core from 11.0.6 to 11.0.7 by @dependabot in #1350
- Bump com.google.protobuf:protobuf-java from 4.30.2 to 4.31.0 by @dependabot in #1357
- Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.15.0-alpha to 2.16.0-alpha by @dependabot in #1358
- Bump super-linter/super-linter from 7.3.0 to 7.4.0 by @dependabot in #1362
- Bump org.mockito:mockito-core from 5.17.0 to 5.18.0 by @dependabot in #1365
- Bump org.springframework.boot:spring-boot-starter-parent from 3.4.5 to 3.4.6 by @dependabot in #1366
New Contributors
- @dao-jun made their first contribution in #1339
- @mnssn made their first contribution in #1354
- @KacperFilutowski-TomTom made their first contribution in #1266
Full Changelog: v1.3.7...v1.3.8
v1.3.7
What's Changed
🏕 Features
- Use bulk string writes for text formats by @marschall in #1273
- fix method name in two Histogram builder method javadocs by @benjaminp in #1302
- Set a name to threads created by Scheduler Threadfactory by @edoardocomar in #1307
- add option to skip the shaded protobuf and otel libraries by @zeitlinger in #1293
- fix timestamp representation by @zeitlinger in #1292
- Eagerly reject null label values by @benjaminp in #1335
- Fix broken link to "Exclude protobuf exposition format" section by @izeye in #1347
- Synchronize common files from prometheus/prometheus by @prombot in #1340
🧹 Chore
- increase coverage by @zeitlinger in #1276
- fix gh pages by @zeitlinger in #1278
- Fix documentation typo by @bzier in #1282
- use Mise by @zeitlinger in #1319
- Fix next SNAPSHOT version by @fstab in #1217
- add Zizmor by @zeitlinger in #1337
- fix gh pages, add super linter by @zeitlinger in #1338
- add release.yml by @zeitlinger in #1341
- Fix by @zeitlinger in #1342
- fix lint by @zeitlinger in #1343
- Fix release by @zeitlinger in #1344
👒 Dependencies
- Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.12.0-alpha to 2.13.0-alpha by @dependabot in #1275
- Bump org.apache.tomcat.embed:tomcat-embed-core from 11.0.2 to 11.0.4 by @dependabot in #1274
- Bump org.apache.maven.plugins:maven-clean-plugin from 3.4.0 to 3.4.1 by @dependabot in #1279
- Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.13.0-alpha to 2.13.1-alpha by @dependabot in #1280
- Bump org.testcontainers:junit-jupiter from 1.20.4 to 1.20.5 by @dependabot in #1281
- Bump org.awaitility:awaitility from 4.2.2 to 4.3.0 by @dependabot in #1286
- Bump com.diffplug.spotless:spotless-maven-plugin from 2.44.2 to 2.44.3 by @dependabot in #1284
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.13.0 to 3.14.0 by @dependabot in #1283
- Bump org.springframework.boot:spring-boot-starter-parent from 3.4.2 to 3.4.3 by @dependabot in #1285
- Bump org.slf4j:slf4j-simple from 2.0.16 to 2.0.17 by @dependabot in #1288
- Bump org.apache.maven.plugins:maven-project-info-reports-plugin from 3.8.0 to 3.9.0 by @dependabot in #1290
- Bump org.apache.maven.plugins:maven-deploy-plugin from 3.1.3 to 3.1.4 by @dependabot in #1291
- Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.13.1-alpha to 2.13.2-alpha by @dependabot in #1289
- Bump junit-jupiter.version from 5.11.4 to 5.12.0 by @dependabot in #1287
- Bump org.apache.maven.plugins:maven-install-plugin from 3.1.3 to 3.1.4 by @dependabot in #1294
- Bump org.mockito:mockito-core from 5.15.2 to 5.16.0 by @dependabot in #1297
- Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.13.2-alpha to 2.13.3-alpha by @dependabot in #1296
- Bump org.testcontainers:junit-jupiter from 1.20.5 to 1.20.6 by @dependabot in #1298
- Bump org.wiremock:wiremock from 3.12.0 to 3.12.1 by @dependabot in #1295
- Bump com.google.protobuf:protobuf-java from 4.29.3 to 4.30.0 by @dependabot in #1299
- Bump jetty-server.version from 12.0.16 to 12.0.17 by @dependabot in #1300
- Bump org.apache.tomcat.embed:tomcat-embed-core from 11.0.4 to 11.0.5 by @dependabot in #1301
- Bump junit-jupiter.version from 5.12.0 to 5.12.1 by @dependabot in #1304
- Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.13.3-alpha to 2.14.0-alpha by @dependabot in #1306
- Bump com.google.protobuf:protobuf-java from 4.30.0 to 4.30.1 by @dependabot in #1305
- Bump org.mockito:mockito-core from 5.16.0 to 5.16.1 by @dependabot in #1308
- Bump jetty-server.version from 12.0.17 to 12.0.18 by @dependabot in #1309
- Bump com.google.guava:guava from 33.4.0-jre to 33.4.5-jre by @dependabot in #1310
- Bump com.google.errorprone:error_prone_core from 2.36.0 to 2.37.0 by @dependabot in #1311
- Bump org.springframework.boot:spring-boot-starter-parent from 3.4.3 to 3.4.4 by @dependabot in #1312
- Bump com.google.guava:guava from 33.4.5-jre to 33.4.6-jre by @dependabot in #1313
- Bump com.google.protobuf:protobuf-java from 4.30.1 to 4.30.2 by @dependabot in #1314
- Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.2 to 3.5.3 by @dependabot in #1315
- Bump org.jacoco:jacoco-maven-plugin from 0.8.12 to 0.8.13 by @dependabot in #1318
- Bump org.apache.maven.plugins:maven-failsafe-plugin from 3.5.2 to 3.5.3 by @dependabot in #1316
- Bump org.mockito:mockito-core from 5.16.1 to 5.17.0 by @dependabot in #1320
- Bump jetty-server.version from 12.0.18 to 12.0.19 by @dependabot in #1317
- Bump com.diffplug.spotless:spotless-maven-plugin from 2.44.3 to 2.44.4 by @dependabot in #1322
- Bump io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha from 2.14.0-alpha to 2.15.0-alpha by @dependabot in #1326
- Bump org.apache.tomcat.embed:tomcat-embed-core from 11.0.5 to 11.0.6 by @dependabot in #1324
- Bump com.google.guava:guava from 33.4.6-jre to 33.4.7-jre by @dependabot in #1323
- Bump junit-jupiter.version from 5.12.1 to 5.12.2 by @dependabot in #1327
- Bump commons-io:commons-io from 2.18.0 to 2.19.0 by @dependabot in #1328
- Bump junit-jupiter.version from 5.12.2 to 5.12.2 by @dependabot in #1329
- Bump com.google.guava:guava from 33.4.7-jre to 33.4.8-jre by @dependabot in #1330
- Bump com.google.errorprone:error_prone_core from 2.37.0 to 2.38.0 by @dependabot in #1332
- Bump org.wiremock:wiremock from 3.12.1 to 3.13.0 by @dependabot in #1334
- Bump org.testcontainers:junit-jupiter from 1.20.6 to 1.21.0 by @dependabot in #1333
- Bump org.springframework.boot:spring-boot-starter-parent from 3.4.4 to 3.4.5 by @dependabot in #1336
- Bump jetty-server.version from 12.0.19 to 12.0.20 by @dependabot in #1345
- Bump jdx/mise-action from 2.2.1 to 2.2.2 by @dependabot in #1348
New Contributors
- @marschall made their first contribution in #1273
- @bzier made their first contribution in #1282
- @benjaminp made their first contribution in #1302
- @edoardocomar made their first contribution in #1307
- @izeye made their first contribution in #1347
Full Changelog: v1.3.6...v1.3.7
v1.3.6
What's Changed
- rename files to avoid dependabot security warnings by @zeitlinger in #1239
- Use buffered writer by @michaldo in #1241
- Use buffered writer by @dhoard in #1248
- add dropwizard to bom by @zeitlinger in #1250
- Caffeine instrumentation: add weighted size metric by @jhominal in #1251
- Add documentation pages for Caffeine and Guava cache instrumentation libraries by @jhominal in #1262
- bom should not include guava - it was only for internal code reuse by @zeitlinger in #1269
New Contributors
- @Stephan202 made their first contribution in #1242
- @michaldo made their first contribution in #1241
- @jhominal made their first contribution in #1251
Full Changelog: v1.3.5...v1.3.6
v1.3.5
What's Changed
- Bump com.google.protobuf:protobuf-java from 4.28.3 to 4.29.1 by @dependabot in #1222
- Add support for dw-metrics 4.x by @kingster in #1228
Full Changelog: v1.3.4...v1.3.5
v1.3.4
What's Changed
- Add instrumentation for Guava & Caffeine to BOM by @der-eismann in #1175
- fix register part of documentation for caffeine & guava instrumentati… by @pheyken in #1203
- [prometheus-metrics-instrumentation-caffeine] implement getPrometheus… by @pheyken in #1206
- [prometheus-metrics-instrumentation-guava] implement getPrometheusNames by @pheyken in #1211
- make Protobuf optional by @zeitlinger in #1190
New Contributors
- @der-eismann made their first contribution in #1175
Full Changelog: v1.3.3...v1.3.4
v1.3.3
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
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
- @FUSAKLA made their first contribution in #968
- @mimaison made their first contribution in #977
- @MaBiConti made their first contribution in #981
- @pheyken made their first contribution in #979
- @iaco86 made their first contribution in #972
- @burov4j made their first contribution in #985
- @zeitlinger made their first contribution in #988
- @gtully made their first contribution in #1089
Full Changelog: v1.3.1...v1.3.2
1.3.1 / 2024-05-23
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
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
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 forSpanContextSupplier
so that the code still runs if theprometheus-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.