File size: 1,201 Bytes
ec82763
 
 
 
 
 
 
 
 
 
 
 
 
93cab71
ec82763
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0185386
ec82763
0185386
ec82763
 
 
 
 
 
 
93cab71
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
36
37
38
39
40
41
42
# my global config
global:
  scrape_interval: 15s      # Kept your faster 15s interval (better resolution)
  evaluation_interval: 15s  # Evaluate rules every 15s
  scrape_timeout: 10s       # Global default

# --- GRAFANA CLOUD CONNECTION ---
# This sends your metrics to the cloud. 
# It sits at the top level, indented securely under no other block.
remote_write:
  - url: https://prometheus-prod-65-prod-eu-west-2.grafana.net/api/prom/push
    basic_auth:
      username: 2894335
      password: GRAFANA_PASSWORD

# Alertmanager configuration
alerting:
  alertmanagers:
    - static_configs:
        - targets:
          # - alertmanager:9093

# Load rules once and periodically evaluate them
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# --- SCRAPE CONFIGURATIONS ---
scrape_configs:
  # JOB 1: Your Application (Turing API)
  - job_name: "turing"
    scheme: https
    static_configs:
      - targets: ["turing-team-turing-space.hf.space"]
        labels:
          app: "turing_api"

  # JOB 2: Prometheus Internal Metrics (Recommended)
  # It is good practice to let Prometheus monitor itself.
  - job_name: "prometheus"
    static_configs:
      - targets: ["localhost:7860"]