client_java
client_java copied to clipboard
Prometheus instrumentation library for JVM applications
```kotlin val vertxVersion = "4.0.2" val promVersion = "0.10.0" dependencies { implementation("io.vertx:vertx-core:$vertxVersion") implementation("io.vertx:vertx-web:$vertxVersion") implementation("io.prometheus:simpleclient_vertx:$promVersion") } ``` ```java public static void main(String[] args) { final var vertx = Vertx.vertx(); final var...
Since Guava 21 Guava promised to no longer make breaking changes. I think the simpleclient_guava is compatible with Guava 18.0 onward - so the version import should reflect that. At...
Just like all the other collectors
I found the method of rotate() in TimeWindowQuantiles.class will update ringBuffer if timeout: ``` private CKMSQuantiles rotate() { long timeSinceLastRotateMillis = System.currentTimeMillis() - lastRotateTimestampMillis; while (timeSinceLastRotateMillis > durationBetweenRotatesMillis) { ringBuffer[currentBucket]...
We have a lot of Micrometer users requesting that we support registering metrics with the same name but a different set of labels (https://github.com/micrometer-metrics/micrometer/issues/877) for Prometheus. This repo, the official...
The `HTTPServer.java` class (in `simpleclient_httpserver`) references internal `com.sun.*` packages, which makes the server unsable for modern Java build setups: ```java import com.sun.net.httpserver.HttpHandler; import com.sun.net.httpserver.HttpServer; import com.sun.net.httpserver.HttpExchange; ``` Starting the server...
Hi, I am trying to push metrics towards basic auth authenticated Push Gateway. But I am running into 401 - Unauthorized So I installed a local push gateway and configured...
It seems client_java/simpleclient_httpserver/src/main/java/io/prometheus/client/exporter/HTTPServer.java creates context mappings for `/` and `/metrics`, which according to https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/HttpServer.html#mapping_description means that - without further filtering - it just responds to any url with the metrics...
It seems to me that [MetricsFilter](https://github.com/prometheus/client_java/blob/master/simpleclient_servlet/src/main/java/io/prometheus/client/filter/MetricsFilter.java) currently does not support async requests, it reports very low times which I guess are only limited to the time the initial request is...
Hi, I am trying to access an https prometheus gateway url with basic auth. ( something like : `https://:/teamA` ) The basic auth credentials can very well be supplied using...