Hello, 

Could you help me for doing something ?

I would like to do different rules for different targets

alertmanagers:
  - static_configs:
    - targets:
      - monitor_alertmanager:9093
global:
  evaluation_interval: 60s
  scrape_interval: 60s
rule_files:
- rules.d/rule-1.yml
- rules.d/rule-2.yml
scrape_configs:
- job_name: prometheus
  static_configs:
  - targets:
    - localhost:9090
- job_name: production
  static_configs:
  - targets:
    - server-1:9273
    - server-2:9273
global:
  evaluation_interval: 60s
  scrape_interval: 60s
rule_files:
- rules.d/rule-3.yml
- rules.d/rule-4.yml
scrape_configs:
- job_name: prometheus
  static_configs:
  - targets:
    - localhost:9090
- job_name: production
  static_configs:
  - targets:
    - server-3:9273
    - server-4: 9273 

Could you give me the good syntax please.?

Regards, 
Thank's for all

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/5b5f25eb-ee48-4be9-aadf-ce86633ee764o%40googlegroups.com.

Reply via email to