client_java
client_java copied to clipboard
Prometheus instrumentation library for JVM applications
Apparently if labels are missing or a null value is supplied to a label the prometheus client will throw a `IllegalArgumentException`. Exceptions being thrown on the "hot" path with null...
Allow library users to specify custom labels for `CacheMetricsCollector`. Please upvote this issue if you would like this feature to be merged. --- Let's say we are having k8s cluster...
Hello! We recently upgraded to Java 11 (from Java 8) and we've hit the following WARNINGs in our services that use Prometheus: ``` WARNING: An illegal reflective access operation has...
PR #151 added https://github.com/prometheus/client_java/blob/11408239035f02a125fe3c860f05fcd0be1e7873/simpleclient_spring_boot/src/test/java/io/prometheus/client/matchers/CustomMatchers.java which contains code under a copyleft license, which is not thus compatible with the Apache 2.0 license this repo uses. One option would be to rewriting...
I am exposing metrics to Prometheus in an existing app that uses Dropwizard, and they have a wide variety of names. From `app_metric_some_count` to `appMetric.someCount`. For legacy monitoring reasons I...
Hi, This issue is similar to https://github.com/prometheus/client_java/pull/281: Class ``io.prometheus.client.hotspot.MemoryAllocationExports`` introduced with #434 imports classes from ``com.sun.management``, which are not available with other vendors' VMs and Oracle's module system. Instead, the...
In order to know if old gen heap is growing, it would help to add a guage metric to indicate how much memory is still allocated just after a GC...
When using DropwizardExports, if we want to add a base prefix name to a metric we can do this: ``` MapperConfig depth3 = new MapperConfig(); depth3.setMatch("*.*.*"); //mathches depth1.depth2.depth3 depth3.setName("basename" +...
If per-query metrics is enabled and Hibernate 4.2.0.Final is used (which, according to `simpleclient_hibernate/pom.xml`, is supported), `HibernateStatisticsCollector` fails due with an exception: `java.lang.NoSuchMethodError: org.hibernate.stat.QueryStatistics.getExecutionTotalTime()`, since that method was not added...
If the order of the labelNames passed in doesn't match what's in the sample, then the sample won't be found. We should handle this more gracefully.