You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parent Epic: #216 (Implement ReleaseCommand and RunCommand with vertical slices)
Overview
This task adds Prometheus as a metrics collection service for the Torrust Tracker deployment. It extends the docker-compose stack with a Prometheus service that scrapes metrics and stats from the tracker's HTTP API. The service is enabled by default in generated environment templates, but can be disabled by removing the Prometheus configuration section from the environment config file.
Goals
Add Prometheus service conditionally to docker-compose stack (only when present in environment config)
Create Prometheus configuration template with tracker metrics endpoints
Extend environment configuration schema to include Prometheus monitoring section
Configure service dependency - Prometheus depends on tracker service
Include Prometheus in generated environment templates by default (enabled by default)
Allow users to disable Prometheus by removing its configuration section
Deploy and verify Prometheus collects metrics from tracker
Key Details
DDD Layers: Infrastructure + Domain
New Module: src/infrastructure/templating/prometheus/
Pattern: Template System with Project Generator pattern
Approach: Enabled-by-default, opt-out (remove config section to disable)
Activity
docs: add Prometheus slice specification (#238)
docs: [#238] update Prometheus slice spec with correct architecture
feat: [#238] add Prometheus configuration template
feat: [#238] add PrometheusContext for template rendering
feat: [#238] add Prometheus domain configuration
feat: [#238] implement Prometheus template renderer
feat: [#238] integrate Prometheus with Docker Compose
feat: [#238] add independent Prometheus template rendering in release…
feat: [#238] add Ansible deployment for Prometheus (Phase 6)
docs: [#238] mark Phase 6 complete with commit hash
feat: [#238] add E2E validation and manual testing guide for Promethe…
feat: [#238] add Prometheus integration documentation (Phase 8)
docs: [#238] mark issue complete - all 8 phases implemented
docs: [#238] refactor manual E2E testing documentation to eliminate d…
docs: [#238] refactor user guide to extract Prometheus content into s…
docs: [#238] add comprehensive security guide for production deployments
refactor: [#238] standardize renderer constants to use three-part pat…
chore: [#238] add Traefik to project dictionary and fix formatting
feat: [#238] add Prometheus smoke test validation after run command
refactor: [#238] fix Law of Demeter violations and implement consiste…
chore: remove closed issue documentation files