Klaxon/Administration
Development and deployment
Klaxon's source code is hosted on Gerrit, in the operations/software/klaxon repository. Changes are automatically tested and merged by CI, triggered by a C+2 review. For now,[1][2] merged changes are also automatically deployed to production via git pull
on the next Puppet run (i.e., within 30 minutes).
Klaxon runs on the "alerting_host" role (i.e. alert1001/alert2001, where Icinga & Alertmanager run). It runs inside the gunicorn engine, fronted publicly by Apache. gunicorn is automatically restarted on any changes to code or configuration.
Puppet configuration is located at modules/klaxon/manifests and modules/profile/manifests/klaxon.pp
VictorOps integration
Klaxon uses two VictorOps APIs:
- For the front page, it fetches the list of recent incidents from the VictorOps v1 API.
- To send an alert, it calls the REST Endpoint, and also sends a message to #wikimedia-operations connect via logmsgbot.
API secrets are stored in the private Puppet repository, in hieradata/role/common/alerting_host.yaml
.