I am new to Prometheus and YAML, and am getting started with setting up Prometheus on one of the linux server with say IP address: XXX
This is my YAML file:
global:
scrape_interval: 10s
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ["XXXX:9092"]
As you can see, I am trying to start prometheus on IP XXX and not "localhost" and also port is 9092.
But in the logs I am always seeing this line:
level=info component=web msg="Listening on" address=0.0.0.0:9090
What am I missing? If my YAML configuration wrong?
I have tried with another config file, like the following:
global:
scrape_interval: 10s
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- XXX:9092
I always get the same INFO that prometheus is listening on 0.0.0.0:9090