Skip to content
aahl
← Projects

Case study

CPROM

Web control panel to maintain the internal metrics service, Prometheus, in a simple way and without having to touch files on disk to configure it. Built for the Cúmulo infrastructure team.

Role
Full-Stack developer of the panel
Company / Context
Cúmulo - Grupo SAME
Period
May 2026 — present
Stack
Laravel · PHP · Prometheus · Entra ID · RBAC

Web · Laravel

(01) Context & problem

To begin with, there was no monitoring infrastructure, and they only found out about outages when customers complained. So I implemented Prometheus and Alertmanager to generate Teams alerts when a server or website failed. The catch is that keeping both components configured requires YAML files, so I created CPROM to interact with those files and configure the components as needed, as well as to maintain them, mainly Prometheus and its TSDB.

(02) My role

I developed the entire platform, implemented the monitoring system and set up the Teams alerts for the infrastructure team.

(03) Solution & key decisions

  • —I chose Alertmanager because it is lightweight in the resources it uses, which made it ideal to run on a server that is not too expensive to maintain.
  • —I configured Prometheus to use file-based target discovery, and what the panel generates is the JSON with the targets, so the configuration is simple to produce and is maintained automatically by the platform instead of by hand.
  • —I chose Laravel because it let me bring the panel and secure metrics access from MIRT together in a single system.
  • —As with the MIRT app, a secure sign-in with Entra ID and institutional credentials was implemented, since this delegated authentication to Microsoft, making it more secure and allowing Azure-based RBAC with the employee directory to better manage administration permissions on the platform.

(04) Technical challenge

The hardest part was managing all the Prometheus and Alertmanager configuration files. Since they use YAML, I had to add several validations with amtool and promtool before applying changes so the files would not break, and also sanitize user input so that it would not break the YAML files either.

(05) Outcome

Managing these two tools ended up being a simple and secure process. Outages used to be discovered when clients complained; now the team gets an alert in Teams, usually before that happens.