Skip to content

Experimental Spring Boot client for getting metrics from Prometheus

Notifications You must be signed in to change notification settings

b00blik/springtheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Springtheus

Simple Spring Boot client for getting metrics from Prometheus by queries on HTTP API.

Configuring

Set Prometheus service URL in your service's application.properties:

prometheus.baseUrl=http://prometheus.url

Usage

Wire PrometheusApiClient in your service:

...
private final PrometheusApiClient client;
...

Get results by performing query:

QueryResponse response = client.query("container_memory_usage_bytes");

Licence

This software is distributed under the BSD License.

About

Experimental Spring Boot client for getting metrics from Prometheus

Resources

Stars

Watchers

Forks

Languages