client_java
client_java copied to clipboard
Prometheus instrumentation library for JVM applications
**Issue** `Label` implements `Comparable` but it doesn't implement `.equals(Object o)` and `.hashCode()`. **Code** https://github.com/prometheus/client_java/blob/main/prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots/Label.java **Test** ``` Label label1 = new Label("foo", "bar"); Label label2 = new Label("foo", "bar"); assertTrue(label1.equals(label2)); ```
by default pushgateway instance="", need to set grouping-key.instance? so how to set grouping-key instance with current ip? like this ``` management.metrics.export.prometheus.pushgateway.grouping-key.instance:${server.ipaddress} ```
``` ./mvnw package ... Failed tests: testInvalidThreadIds(io.prometheus.metrics.instrumentation.jvm.JvmThreadsMetricsTest): expected: but was: ``` System : ``` Linux hpkrajo 5.15.0-86-generic #96~20.04.1-Ubuntu SMP Thu Sep 21 13:23:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ```...
At the Prometheus Dev summit on 2023-09-30 we [decided](https://docs.google.com/document/d/11LC3wJcVk00l8w5P3oLQ-m3Y37iom6INAMEu2ZAGIIE/edit#heading=h.ptj4okwm9zc9): > We want to support exporting OTLP protocol metrics in our client libraries. We want to maintain Prometheus SDKs as an...
Exemplars are not implemented yet in the OpenTelemetry exporter. We should add support for that. https://github.com/prometheus/client_java/blob/586c2f9e4c62553eb157c82b292377521375f554/prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel/PrometheusData.java#L47C48-L47C48
Is it possible to integrate this client version with dropwizard? I would like to expose its metrics for prometheus scraping. Should I use an archived simple client?
While testing the JMX Exporter against the latest JVM versions... https://github.com/prometheus/jmx_exporter/blob/main/integration_test_suite/integration_tests/src/test/resources/docker-image-names.all.txt It seems that `azul/prime:8`, `azul/prime:11`, and `azul/prime:17` have changed behavior and no longer support `findDeadlockedThreads`, throwing an `UnsupportedOperationException` ```...
We are observing continuous increase in heap memory due to MetricsHandler.java. This is causing frequent GC trigger with increase in number of metrics. Attaching the heap allocation screenshot. Following is...
In https://github.com/prometheus/client_java/blob/a76a65ddb62b50eb2c33a46e98cde4f4479a54a6/simpleclient_common/src/main/java/io/prometheus/client/exporter/common/TextFormat.java#L25 you specified parameter `version=1.0.0` which is not valid syntax according to https://www.w3.org/Protocols/rfc1341/4_Content-Type.html (it is not allowed to use `.` in an unquoted parameter value). Please see also discussion...
Similar to #554 I feel like it is pretty common and legitimate use-case when trying to expose external system metrics using prometheus. For example, there is a `autoanalyze_count FROM pg_stat_user_tables`...