Hi , 30 th line was - job_name: 'wmi_exporter' # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['localhost:9182']
On Tue, 15 Dec 2020 at 10:00 PM, L.walid (PowerM) <[email protected]> wrote: > Hi, > > This is clearly a syntax error, can you tell us line 30 correspond to what > line in your yaml config file ? > > Best regards, > -------------------------------------------------------------- > Walid Largou > Solution Architect / Service Delivery Manager > Mobile : +212 621 31 98 71 > Email : [email protected] <[email protected]> > 320 Bd Zertouni 6th Floor, Casablanca, Morocco > -------------------------------------------------------------- > https://www.powerm.ma > Power Maroc #1 IBM Business Partner – Power Maroc > This message is confidential .Its contents do not constitute a commitment > by Power Maroc S.A.R.L except where provided for in a written agreement > between you and Power Maroc S.A.R.L. Any authorized disclosure, use or > dissemination, either whole or partial, is prohibited. If you are not the > intended recipient of the message, please notify the sender immediately. > > On 15 Dec 2020, at 16:18, Suparna Shankar <[email protected]> wrote: > > 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 > <https://groups.google.com/d/msgid/prometheus-developers/cb8e0324-62ed-4dc2-838b-51fb0d3b26b5n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- Regards, Suparna Shankar Email: [email protected] Cell : +91-9789090614 Office ID : [email protected] <[email protected]> -- 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/CACUjv5JBmnvGYQk1%2BwHHhfxbT97JuFsdwJeyAcDD95CWrQ%2BpqA%40mail.gmail.com.

