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:
parent
dc38b3715e
commit
c8977d7175
23 changed files with 1345 additions and 1 deletions
|
@ -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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue