SPB Git forge
38commits 1branches 0releases
338.7 MBsize
maindefault branch
3 h agolast push
HTML 53.9% TypeScript 44.5% JavaScript 0.6% SQL 0.5%
2.7 KB · 68 lines yaml
Raw Blame History
1# Prometheus (data node). Docker-network targets by service name; crawl-node targets over dci0.2# Prometheus does not expand env vars: 10.68.0.2 is the crawl node's private address (compose.crawl.yml).3global:4  scrape_interval: 15s5  evaluation_interval: 30s6  external_labels:7    cluster: dci8    site: bhs910rule_files:11  - /etc/prometheus/alerts.yml1213scrape_configs:14  - job_name: prometheus15    static_configs: [{ targets: ["localhost:9090"], labels: { node: data } }]1617  # Fastify API — dci_api_requests_total, dci_api_request_duration_seconds, dci_api_cache_*18  - job_name: dci-api19    metrics_path: /api/metrics20    static_configs: [{ targets: ["api:8311"], labels: { node: data, role: api } }]2122  # Crawl workers (BHS64b) — /metrics on the worker health port (published on 10.68.0.2); the maintenance-only23  # worker on this node is scraped over the compose network. Contract: dci_crawl_fetches_total{connector,level,outcome},24  # dci_crawl_credits_total{provider}, dci_crawl_daily_budget / dci_crawl_daily_credits_used{provider},25  # dci_crawl_fetch_duration_seconds, dci_ingest_entities_total{connector,result}, dci_events_total,26  # dci_queue_jobs{queue,state}, dci_worker_running_jobs, dci_worker_up (apps/worker/src/prom.ts).27  - job_name: dci-worker28    metrics_path: /metrics29    static_configs:30      - targets: ["10.68.0.2:8320"]31        labels: { node: crawl, role: worker, instance_name: worker }32      - targets: ["10.68.0.2:8322"]33        labels: { node: crawl, role: worker, instance_name: worker-b }34      - targets: ["worker-maint:8320"]35        labels: { node: data, role: worker, instance_name: worker-maint }3637  # Scheduler (data node) — dci_scheduler_ticks_total, dci_scheduler_last_tick_timestamp_seconds, dci_queue_jobs38  - job_name: dci-scheduler39    metrics_path: /metrics40    static_configs: [{ targets: ["scheduler:8321"], labels: { node: data, role: scheduler } }]4142  # Edge Caddy43  - job_name: dci-edge44    static_configs: [{ targets: ["edge:9180"], labels: { node: data, role: edge } }]4546  # Hosts47  - job_name: node48    static_configs:49      - targets: ["node-exporter:9100"]50        labels: { node: data }51      - targets: ["10.68.0.2:9100"]52        labels: { node: crawl }5354  # Containers (data node)55  - job_name: cadvisor56    static_configs: [{ targets: ["cadvisor:8080"], labels: { node: data } }]5758  # Stores59  - job_name: postgres60    static_configs: [{ targets: ["postgres-exporter:9187"], labels: { node: data } }]61  - job_name: redis62    static_configs: [{ targets: ["redis-exporter:9121"], labels: { node: data } }]63  - job_name: clickhouse64    static_configs: [{ targets: ["clickhouse:9363"], labels: { node: data } }]65  - job_name: minio66    metrics_path: /minio/v2/metrics/cluster67    static_configs: [{ targets: ["minio:9000"], labels: { node: data } }]68