- prometheus.yml

global:
  scrape_interval:     3s
  evaluation_interval: 3s

rule_files:
  # - "first.rules"
  # - "second.rules"

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ['localhost:9090']
  - job_name: node_exporter
    file_sd_configs:
      - files:
        - '/Users/skynet/prometheus/server/sd.yml'



- sd.yml

targets:
  - "localhost:9100/metrics"
  
labels:
  - ensemble: ["127.0.0.1:2181"]
  - service_code: "test"
  - node: ["127.0.0.1:11211", "127.0.0.1:11212"]



when I run prometheus, this error is occured.

msg="Error reading file" path=/Users/skynet/prometheus/server/sd.yml 
err="yaml: unmarshal errors:\n  line 1: cannot unmarshal !!map into 
[]*targetgroup.Group"

How can i fix?

-- 
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/57565339-1cd3-421d-818a-164109fca6b7%40googlegroups.com.

Reply via email to