All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 3m21s
CI / OCR Service Tests (pull_request) Successful in 16s
CI / Backend Unit Tests (pull_request) Successful in 4m35s
CI / fail2ban Regex (pull_request) Successful in 38s
CI / Compose Bucket Idempotency (pull_request) Successful in 57s
- Fix spring-boot scrape target from backend:8080 to backend:8081 (actuator/management port) - Restrict Prometheus host port binding to 127.0.0.1 to prevent unintended external exposure - Add observability stack (Prometheus, Node Exporter, cAdvisor) to topology description - Add PORT_PROMETHEUS env var to DEPLOYMENT.md reference table Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
930 B
YAML
29 lines
930 B
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
scrape_configs:
|
|
- job_name: node
|
|
static_configs:
|
|
- targets: ['node-exporter:9100']
|
|
|
|
- job_name: cadvisor
|
|
static_configs:
|
|
- targets: ['cadvisor:8080']
|
|
|
|
- job_name: spring-boot
|
|
metrics_path: /actuator/prometheus
|
|
static_configs:
|
|
# Uses the Docker service name (not container_name) for reliable DNS resolution.
|
|
# Target will show as DOWN until backend instrumentation issue adds
|
|
# micrometer-registry-prometheus and exposes the endpoint — this is expected.
|
|
- targets: ['backend:8081']
|
|
|
|
- job_name: ocr-service
|
|
metrics_path: /metrics
|
|
static_configs:
|
|
# TODO: remove or add prometheus-client to ocr-service.
|
|
# The Python OCR service does not currently expose Prometheus metrics.
|
|
# This target will show as DOWN until prometheus-client is added to ocr-service.
|
|
- targets: ['ocr:8000']
|