Hello, I used prometheus to get metrics. I have tried to downgrade to 2.16 
on fresh raspbery. Everytime it fails even if on other devieces worked. 
What is wrong with my Code?


my global config 
global:
  scrape_interval:     25s # Set the scrape interval to every 15 seconds. 
Default is every 1 minute.
  evaluation_interval: 25s # Evaluate rules every 15 seconds. The default 
is every 1 minute.
  # scrape_timeout is set to the global default (10s).
# The job name is added as a label `job=<job_name>` to any timeseries
scraped from this config.
- job_name: 'base'
# metrics_path defaults to '/metrics'
metrics_path: '/prometheus/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['192.168.1.30:80']

The errors shows in "metrics line" or "scheme defaults" line? What is wrong 
with that code now? After deleting metrics path the code works. 

prometheus --config.file=/etc/prometheus/prometheus.yml
level=error ts=2021-04-05T10:29:59.757Z caller=main.go:347 msg="Error 
loading config (--config.file=/etc/prometheus/prometheus.yml)" err="parsing 
YAML file /etc/prometheus/prometheus.yml: yaml: line 27: did not find 
expected key"




-- 
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/87fa1b05-9c3c-4e7e-a315-003ef7c8091en%40googlegroups.com.

Reply via email to