⚙️ Task
Task Description
What
Add observability metrics to track machine translation (MT) request performance, so we can measure the impact of the async Celery migration (#4504) and detect any future regressions.
Why
PR #4504 moves bulk machine translation from synchronous request handling to a Celery task queue. The core motivation was preventing request timeouts: in the old code, a single bulk MT action could block a web worker for several minutes, causing cascading 504 errors across the whole system under concurrent load.
To demonstrate that the change has the intended effect — and to guard against regressions — we need metrics that capture MT endpoint behaviour both before and after the migration. Currently no such metrics exist.
Task Category
📊 Monitoring / Observability
Steps / Implementation Plan
Acceptance Criteria
Technical Details
Affected Systems / Services
- Apache on the production CMS server (potential log format change)
monitor-cms.sh (salt-managed, runs every minute)
- InfluxDB
cms database
- Grafana "Content Management Systems" dashboard
Configuration Changes
Risks & Impact
Risks
- Changing the Apache log format affects all access log entries and any tooling that parses them (e.g.
jpal-logs.sh)
Blast Radius
- Services affected: Apache logging,
monitor-cms.sh
- Teams affected: Admin / DevOps
- User-facing impact: None
Coordination Required
- Coordinate with admin on Apache log format change and existing
latency measurement
Parent / Related Issues
⚙️ Task
Task Description
What
Add observability metrics to track machine translation (MT) request performance, so we can measure the impact of the async Celery migration (#4504) and detect any future regressions.
Why
PR #4504 moves bulk machine translation from synchronous request handling to a Celery task queue. The core motivation was preventing request timeouts: in the old code, a single bulk MT action could block a web worker for several minutes, causing cascading 504 errors across the whole system under concurrent load.
To demonstrate that the change has the intended effect — and to guard against regressions — we need metrics that capture MT endpoint behaviour both before and after the migration. Currently no such metrics exist.
Task Category
📊 Monitoring / Observability
Steps / Implementation Plan
latencymeasurement in thecmsInfluxDB database is tracking and whether it is still actively fed%Dto Apache log format)monitor-cms.shwith MT-specific metrics (request count, response time, 504 error count) — to be pushed before Move machine translation processing to Celery (Backend) #4504 deploys to establish a baselinecmsdatabase, "Content Management Systems" dashboard)Acceptance Criteria
Technical Details
Affected Systems / Services
monitor-cms.sh(salt-managed, runs every minute)cmsdatabaseConfiguration Changes
%Dto Apache access log format to capture request duration — needs admin reviewRisks & Impact
Risks
jpal-logs.sh)Blast Radius
monitor-cms.shCoordination Required
latencymeasurementParent / Related Issues