java-web-api-sbt-spring-prometheus-hello
Description
Another way to serve web content. Uses prometheus to count http calls.
To see a graph of visitors:
- Nav to http://localhost:81
- Classic UI
- Click Graph tab
- Search: 'scrape_series_added' or 'scrape_duration_second' or 'http_request_duration_ms_bucket'
- Duration 1m
- Click Graph tab
For health check:
- Nav to http://localhost:81
- Targetes
Tech stack
- java
- sbt
- prometheus
Docker stack
- openjdk:8-jdk-alpine
- prom/prometheus:latest
To run
sudo ./install.sh -u
- Available http://localhost
- App metrics http://localhost/metrics
- Prometheus console http://localhost:81
To stop
sudo ./install.sh -d
For help
sudo ./install.sh -h