Prometheus Monitoring Using Android Phone and Java Spring
Prometheus does a great job of collecting metrics, but reaching those metrics from a phone, with proper authentication in front, takes a bit of glue. This article walks through exactly that, displaying Prometheus-monitored systems through a Java Spring authentication proxy.
Java Spring
The Spring side is what sits between the client and Prometheus. With it we can put authentication-based querying in front of the Prometheus REST API, so requests are checked before they ever reach the data.
The code is accessible on GitHub.
Android
On the mobile side, the app talks to that proxy:
https://github.com/ffahri/serveranalysisandroid_
For the heavy lifting it leans on Volley for the networking and MPAndroidChart for drawing the graphs.
Once you log in, the dashboard comes into view.
Our Dashboard
Graphics List
Graphic
Alarm Page



