Hi Guys,
I am trying to start Prometheus server in my system, but I am getting some error as shown below.
$ ./prometheus
level=error ts=2020-05-27T06:42:06.463Z caller=main.go:758 err="error loading config from \"prometheus.yml\": couldn't load configuration (--config.file=\"prometheus.yml\"): parsing YAML file prometheus.yml: yaml: unmarshal errors:\n line 30: field static_configs already set in type config.plain"
I used this below configuration file.
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
static_configs:
- targets: ['10.0.2.15:9100']
Can anyone help me with this?