First draft of implementation (#1)

* First draft of implementation

Readme will follow

* Rename id.

* Exclude `commons-io` to disable build warnings

* Simplify metrics and add documentation
This commit is contained in:
Stephan Schnabel 2023-03-03 12:32:46 +01:00
parent dc38b3715e
commit c8977d7175
Signed by: stephan.schnabel
GPG key ID: E07AF5BA239FE543
23 changed files with 1345 additions and 1 deletions

View file

@ -0,0 +1,19 @@
package io.kokuwa.keycloak.metrics.prometheus;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
/**
* JAX-RS client for prometheus endpoint.
*
* @author Stephan Schnabel
*/
public interface PrometheusClient {
@GET
@Path("/metrics")
@Consumes(MediaType.TEXT_PLAIN)
String scrap();
}