- prometheus.yml: ocr:8000 → ocr-service:8000 (Docker service name is ocr-service, not ocr — current scrape target has never resolved) - Add Ollama scrape job on ollama:11434 /metrics Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
721 B
YAML
30 lines
721 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.
|
|
- targets: ['backend:8081']
|
|
|
|
- job_name: ocr-service
|
|
metrics_path: /metrics
|
|
static_configs:
|
|
- targets: ['ocr-service:8000']
|
|
|
|
- job_name: ollama
|
|
metrics_path: /metrics
|
|
static_configs:
|
|
# Uses the Docker service name for reliable DNS resolution.
|
|
- targets: ['ollama:11434']
|