1. I installed prometheus using brew.2. I checked the version to verify its installed.3. Next I navigated in to the prometheus folder.4. Now I am trying to start the server by using the command: prometheus --config.file="prometheus.yml"
Thanks for the link.
#Global configurations
global:
scrape_interval: 5s # Set the scrape interval to every 5 seconds.
evaluation_interval: 5s # Evaluate rules every 5 seconds.
scrape_configs:
- job_name: 'prometheus'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['localhost:8080']
Now when I hit the url http://localhost:8080/graph, I get the following error.
This application has no explicit mapping for /error, so you are seeing this as a fallback.
--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/94b56709-db85-4971-bd85-c14858d8db84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Julius,
level=error ts=2018-12-26T18:41:25.915715Z caller=main.go:624 err="error loading config from \"/etc/prometheus/prometheus.yml\": couldn't load configuration (--config.file=\"/etc/prometheus/prometheus.yml\"): open /etc/prometheus/prometheus.yml: no such file or directory"
So, I now I used prometheus --config.file="prometheus.yml" to start the server. the server started successfully, But it says listening to port 9090. While I have mentioned the port to be 8080 i the yml file.
level=info ts=2018-12-26T18:42:09.380736Z caller=web.go:429 component=web msg="Start listening for connections" address=0.0.0.0:9090.
Since there was no prometheus.yml file before I created one, how is it still listening to 9090?