yhornisse authored on 22 Oct 2023
gradle/ wrapper add files 3 years ago
src/main/java/com/ sample fix percentile sample 1 year ago
README.md add files 3 years ago
build.gradle add files 3 years ago
gradlew add files 3 years ago
gradlew.bat add files 3 years ago
settings.gradle add files 3 years ago
README.md

ビルド

$ ./gradlew bootJar

起動

  • 起動
    $ ./gradlew bootRun
  • jar起動
    $ java -jar build/libs/sample-prometheus1-0.0.1.jar

サンプルアクセス

$ curl http://localhost:8080/sample/prometheus
# HELP hoge_counter_total  
# TYPE hoge_counter_total counter
hoge_counter_total{group="A",sub_group="B",} 0.0