Codebloom uses Spring Boot Actuator and Prometheus to provide operational insights into the running application. We also collect logs via OpenSearch, which is setup through the DigitalOcean App Platform (view app spec here). Both of these data sources are then fed to a Grafana instance hosted on monitor.tahmid.io
All metrics for production & staging can be viewed on monitor.tahmid.io.
Note
Please reach out to @tahminator if you are on the Codebloom dev team & need the credentials to login & view the dashboard
Spring Boot Actuator exposes operational information about the running application through HTTP endpoints.
All actuator endpoints are protected with HTTP Basic Authentication to prevent unauthorized access to sensitive operational data.
Authentication Details:
- Authentication Type: HTTP Basic Auth
- Role Required:
ACTUATOR - Credentials: Stored in environment variables
ACTUATOR_USERNAME- Username for actuator endpointsACTUATOR_PASSWORD- Password for actuator endpoints (generate withopenssl rand -base64 48 | head -c 64)
Currently exposed endpoints:
/actuator/prometheus- Prometheus-formatted metrics endpoint for scraping
Prometheus metrics provide detailed insights into application performance, JVM statistics, HTTP requests, and custom business metrics.
Local Development:
http://localhost:8080/actuator/prometheus
(Requires HTTP Basic Auth with actuator credentials)
Staging:
https://stg.codebloom.patinanetwork.org/actuator/prometheus
Production:
https://codebloom.patinanetwork.org/actuator/prometheus
To test the actuator endpoint locally:
- Ensure your
.envfile hasACTUATOR_USERNAMEandACTUATOR_PASSWORDset - Start the application (
just dev) - Access the endpoint using curl:
curl -u actuator:your_password http://localhost:8080/actuator/prometheusOr use a browser and enter the username/password when prompted.
