/ opencodehub / deploy / prometheus.yml
swadhinbiswas feat: implement air-gapped mode, UI fixes, and project management integrations · 7/9/2026
e3bd4a1
35 lines · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Prometheus scrape configuration for OpenCodeHub
# Add this to your prometheus.yml or include as a file

scrape_configs:
  - job_name: "opencodehub"
    metrics_path: "/api/metrics"
    scrape_interval: 15s
    scrape_timeout: 10s
    static_configs:
      - targets: ["opencodehub-app:4321"]
        labels:
          service: "opencodehub"
          environment: "production"

  - job_name: "opencodehub-worker"
    # Worker exposes metrics on port 9090
    metrics_path: "/metrics"
    scrape_interval: 15s
    scrape_timeout: 10s
    static_configs:
      - targets: ["opencodehub-worker:9090"]
        labels:
          service: "opencodehub-worker"
          environment: "production"

  - job_name: "postgres"
    # Requires postgres_exporter sidecar
    static_configs:
      - targets: ["postgres-exporter:9187"]

  - job_name: "redis"
    # Requires redis_exporter sidecar
    static_configs:
      - targets: ["redis-exporter:9121"]