Can any one advise how to fix it

On Tuesday, 15 December 2020 at 20:47:56 UTC+5:30 Suparna Shankar wrote:

> Unable to start Prometheus in case if we use WMI target- ERROR throws " 
> level=error ts=2020-12-15T09:13:35.251Z caller=main.go:289 msg="Error 
> loading config (--config.file=prometheus.yml)" err="parsing YAML file 
> prometheus.yml: yaml: line 30: did not find expected key"  
>
> # my global config global: scrape_interval: 15s # Set the scrape interval 
> to every 15 seconds. Default is every 1 minute. evaluation_interval: 15s # 
> Evaluate rules every 15 seconds. The default is every 1 minute. # 
> scrape_timeout is set to the global default (10s). # Alertmanager 
> configuration alerting: alertmanagers: - static_configs: - targets: # - 
> alertmanager:9093 # Load rules once and periodically evaluate them 
> according to the global 'evaluation_interval'. rule_files: # - 
> "first_rules.yml" # - "second_rules.yml" # A scrape configuration 
> containing exactly one endpoint to scrape: # Here it's Prometheus itself. 
> scrape_configs: # The job name is added as a label `job=<job_name>` to any 
> timeseries scraped from this config. - job_name: 'prometheus' # 
> metrics_path defaults to '/metrics' # scheme defaults to 'http'. 
> static_configs: - targets: ['localhost:9090'] - job_name: 'wmi_exporter' # 
> metrics_path defaults to '/metrics' # scheme defaults to 'http'. 
> static_configs: - targets: ['localhost:9182']  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" 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-developers/cb8e0324-62ed-4dc2-838b-51fb0d3b26b5n%40googlegroups.com.

Reply via email to