java-web-api-sbt-spring-prometheus-grafana-hello
Description
Another way to serve web content. Uses prometheus to track visitors and grafana to visualize low level metrics.
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
To see dashboards:
- Nav to http://localhost:82
- Login with
admin/admin
- configuration -> datasources
- Select Prometheus
- dashboards
- import and click label
- dashboards
- Select Prometheus
Tech stack
- java
- sbt
- prometheus
Docker stack
- openjdk:11-jdk
- prom/prometheus:latest
- grafana/grafana
To run
sudo ./install.sh -u
- Available http://localhost
- App metrics http://localhost/metrics
- Prometheus console http://localhost:81
- Grafana dashboards http://localhost:82
- Login with
admin/admin
- Login with
To stop
sudo ./install.sh -d
For help
sudo ./install.sh -h