Configuration

global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 15s
scrape_configs:
- job_name: prometheus
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  static_configs:
  - targets:
    - localhost:9090
- job_name: node
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  metric_relabel_configs:
  - source_labels: [job]
    separator: ;
    regex: node
    target_label: job
    replacement: integrations/node_exporter
    action: replace
  - separator: ;
    regex: (.*)
    target_label: instance
    replacement: hetzner-monitoring
    action: replace
  static_configs:
  - targets:
    - localhost:9100
- job_name: rapida-host
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: 157\.230\.167\.226:9100
    target_label: instance
    replacement: rapida-do-1
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 64\.23\.189\.47:9100
    target_label: instance
    replacement: rapida-do-2
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 172\.238\.188\.28:9100
    target_label: instance
    replacement: rapida-li-1
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 172\.234\.196\.79:9100
    target_label: instance
    replacement: rapida-li-2
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 167\.71\.155\.150:9100
    target_label: instance
    replacement: aivi-rapida-two
    action: replace
  metric_relabel_configs:
  - source_labels: [__name__]
    separator: ;
    regex: node_systemd_unit_state|node_systemd_timer_last_trigger_seconds
    replacement: $1
    action: drop
  static_configs:
  - targets:
    - 157.230.167.226:9100
    - 64.23.189.47:9100
    - 172.238.188.28:9100
    - 172.234.196.79:9100
    labels:
      environment: production
  - targets:
    - 167.71.155.150:9100
    labels:
      environment: staging
- job_name: rapida-app
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: 157\.230\.167\.226:.*
    target_label: instance
    replacement: rapida-do-1
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 64\.23\.189\.47:.*
    target_label: instance
    replacement: rapida-do-2
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 172\.238\.188\.28:.*
    target_label: instance
    replacement: rapida-li-1
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 172\.234\.196\.79:.*
    target_label: instance
    replacement: rapida-li-2
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 167\.71\.155\.150:.*
    target_label: instance
    replacement: aivi-rapida-two
    action: replace
  - source_labels: [__address__]
    separator: ;
    regex: 104\.236\.38\.12:.*
    target_label: instance
    replacement: aivi-rapida-one
    action: replace
  static_configs:
  - targets:
    - 157.230.167.226:9007
    - 64.23.189.47:9007
    - 172.238.188.28:9007
    - 172.234.196.79:9007
    labels:
      environment: production
      service: assistant-api
  - targets:
    - 167.71.155.150:9007
    - 104.236.38.12:9007
    labels:
      environment: staging
      service: assistant-api
- job_name: blackbox-upstash
  honor_timestamps: true
  params:
    module:
    - tcp_connect
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /probe
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - source_labels: [__param_target]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9115
    action: replace
  static_configs:
  - targets:
    - casual-egret-17232.upstash.io:6379
- job_name: blackbox-supabase
  honor_timestamps: true
  params:
    module:
    - supabase_health
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /probe
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - source_labels: [__param_target]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9115
    action: replace
  static_configs:
  - targets:
    - https://ijzmznzusoucjzeefcrz.supabase.co/rest/v1/
- job_name: blackbox-supabase-staging
  honor_timestamps: true
  params:
    module:
    - supabase_health
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /probe
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - source_labels: [__param_target]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9115
    action: replace
  static_configs:
  - targets:
    - https://nmumxjdaqbetnrqbmdld.supabase.co/rest/v1/
- job_name: rapida-db-sfo
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - separator: ;
    regex: (.*)
    target_label: instance
    replacement: rapida-db-sfo
    action: replace
  static_configs:
  - targets:
    - localhost:9187
    labels:
      component: postgres
      environment: production
      region: sfo
- job_name: rapida-redis-sfo
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - separator: ;
    regex: (.*)
    target_label: instance
    replacement: rapida-redis-sfo
    action: replace
  static_configs:
  - targets:
    - localhost:9121
    labels:
      component: redis
      environment: production
      region: sfo
- job_name: rapida-opensearch
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /_prometheus/metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  relabel_configs:
  - separator: ;
    regex: (.*)
    target_label: instance
    replacement: aivi-rapida-two
    action: replace
  static_configs:
  - targets:
    - 167.71.155.150:9200
    labels:
      component: opensearch
      environment: production