Newer
Older
sample-prometheus1 / README.md
yhornisse on 29 Apr 2021 359 bytes add files

ビルド

$ ./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