All Projects → anhdat → prometheus4j

anhdat / prometheus4j

Licence: MIT license
Prometheus API Client for Java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to prometheus4j

MVP Project
mvp 案例
Stars: ✭ 43 (+43.33%)
Mutual labels:  retrofit2
Instant-Weather
An Android weather application implemented using the MVVM pattern, Retrofit2, Dagger Hilt, LiveData, ViewModel, Coroutines, Room, Navigation Components, Data Binding and some other libraries from the Android Jetpack.
Stars: ✭ 677 (+2156.67%)
Mutual labels:  retrofit2
ResDelivery-Hilt-Coroutines-Mvvm-Single-Activity
This is a Sample Single Activity App (Multi Fragments) that uses Dagger-Hilt, Coroutines Flows, Paging 3 & Mvvm Clean Architecture
Stars: ✭ 28 (-6.67%)
Mutual labels:  retrofit2
StatefulLiveData
StatefulLiveData is a lean, yet powerful tool that harnesses the capabilities of LiveData and enhances them, enabling the observer to distinguish between different states the data can be in, such as Success, Loading and Error.
Stars: ✭ 18 (-40%)
Mutual labels:  retrofit2
weather
基于MVP的安卓天气demo
Stars: ✭ 49 (+63.33%)
Mutual labels:  retrofit2
Android-MVVM-News-App
MVVM News Application with clean code architecture & android jetpack components.
Stars: ✭ 38 (+26.67%)
Mutual labels:  retrofit2
Simple-MVVM
A simple Android MVVM pattern example
Stars: ✭ 34 (+13.33%)
Mutual labels:  retrofit2
Android-Assignment
This assignment gives you basically a post list and its detail with comments.🚀
Stars: ✭ 32 (+6.67%)
Mutual labels:  retrofit2
Palette
Android application to get the #hexcode and rgb() values for any image
Stars: ✭ 31 (+3.33%)
Mutual labels:  retrofit2
ExamplesAndroid
Simple Example of Android [APIFacebook,APIGoogleMaps,APITwitter,Volley,Picasso etc etc etc]
Stars: ✭ 24 (-20%)
Mutual labels:  retrofit2
ParkingDemo
Taipei City Parking Lot Information Query System Demo
Stars: ✭ 18 (-40%)
Mutual labels:  retrofit2
NewsPin
News app for android using Kotlin, coroutines, MVP architecture
Stars: ✭ 25 (-16.67%)
Mutual labels:  retrofit2
pantaucovid-android
🌍 open source project for learns android app using covid topic.
Stars: ✭ 20 (-33.33%)
Mutual labels:  retrofit2
DailyDoc
Productivity Note App utilizing Jetpack Compose
Stars: ✭ 31 (+3.33%)
Mutual labels:  retrofit2
Clean-MVVM-NewsApp
Android News app developed using Clean + MVVM architecture
Stars: ✭ 52 (+73.33%)
Mutual labels:  retrofit2
Dagger-Hilt-MVVM
Sample app that demonstrates the usage of Dagger Hilt with Kotlin & MVVM
Stars: ✭ 62 (+106.67%)
Mutual labels:  retrofit2
OpenWeatherMap-Android-Library
A wrapper for the openweathermap REST API
Stars: ✭ 100 (+233.33%)
Mutual labels:  retrofit2
Sunset-hadith
Islamic app written with Kotlin, using KTOR + coroutines + flow + MVVM + Android Jetpack + Navigation component. Old version using RxJava + Retrofit + OKHttp
Stars: ✭ 26 (-13.33%)
Mutual labels:  retrofit2
RxJava2Demo
RxJava 2.X Retrofit OkHttp demo
Stars: ✭ 29 (-3.33%)
Mutual labels:  retrofit2
android-kotlin-coroutines
A simple Android project using asynchronous programming with Kotlin Coroutines.
Stars: ✭ 45 (+50%)
Mutual labels:  retrofit2

Prometheu4j

Prometheus4j is the Prometheus API Client for Java. It's based on Prometheus API documented here

Usage

// query
PrometheusApiClient client = new PrometheusApiClient("http://localhost:9090/");
VectorResponse response = client.query("go_gc_duration_seconds");
System.out.println("response = " + response);

// range query
// use empty string or null to ommit optional parameters
MatrixResponse response = client.queryRange("go_gc_duration_seconds", tenMinEarlier.toString(), now.toString(), "5m", "");

// find series
KeyValResponse response = client.findSeries("up", tenMinEarlier.toString(), now.toString());

Testing

Run a Prometheus instance on Docker with:

docker run -p 9090:9090 --rm prom/prometheus:v2.3.1

Let it run for 10 min. Then start the tests in PrometheusApiClientTest.java file.

License

This software is distributed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].