client_java
client_java copied to clipboard
Prometheus instrumentation library for JVM applications
Work in progress
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [java](https://adoptium.net) | patch | `25.0.1` -> `25.0.1+8.0.LTS` | --- > [!WARNING] > Some dependencies could...
@fstab, @dhoard, @tomwilkie, @zeitlinger Thanks for the cool library. Its a pleasure to work with! I was using it for a new project and started with placing own `LongAdder` in...
Hello, we are currently finally updating our library away from io.prometheus:simpleclient to io.prometheus:prometheus-metrics-core. We are using prometheus in a dropwizard library. For this reason we configured MapperConfigs to harmonize some...
Currently, the JvmMetrics.builder().register() method in Prometheus' Java client lacks support for custom tags when registering JVM metrics. This limits the ability to add contextual dimensions (e.g., environment, application) to JVM...
ref: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/prometheus.md#configuration This will allow java users to enable NoTranslation mode for 1:1 otel metric names, if they so choose. per the discussion on [CNCF Slack](https://cloud-native.slack.com/archives/C01AUBA4PFE/p1756995890903539), when we add documentation...
If I do this: ```java PrometheusRegistry registry = new PrometheusRegistry(); Counter.builder() .name("test_我喜欢茶") .labelNames("test") .register(registry) .labelValues("test_我喜欢茶").inc(); String accept = OpenMetricsTextFormatWriter.CONTENT_TYPE + "; escaping=allow-utf-8"; ExpositionFormats.init().findWriter(accept).write(System.out, registry.scrape(), EscapingScheme.fromAcceptHeader(accept)); ``` I get this: ```...
Fixes #1555 Note: also add the flag to protobuf writer
Fixes #1548 PrometheusNaming changes were incompatible - so deprecating instead and create e new PrometheusNames
If I understand correctly, this is approximately how I should produce an output: ```java expositionFormats.findWriter(accept) .write(System.out, registry.scrape(), EscapingScheme.fromAcceptHeader(accept)); ``` The problem with this is that the API forces me to...