Hello experts, I am running Prometheus on my local system. I am getting my hiveserver2 metrics on local port 12156, and I have configured that in my prometheus.yml file which is present in the same directory as my Prometheus binary(/usr/local/bin). Now when using promql on localhost:9090, I was able to select my hs2 metrics there for querying, but I couldn't see them on localhost:9090/metrics. Is there any reason for it. Also, my metrics on port 12156 are present on the '/' route and not on '/metrics', so that can be handled with metrics_path right?
Prometheus.yml 1# my global config$ 2 global:$ 3 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.$ 4 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.$ 5 # scrape_timeout is set to the global default (10s).$ 6 $ 7 # Alertmanager configuration$ 8 alerting:$ 9 alertmanagers:$ 10 - static_configs:$ 11 - targets:$ 12 - localhost:9093$ 13 $ 14 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.$ 15 rule_files:$ 16 # - "first_rules.yml"$ 17 - 'alerts.yml'$ 18 # - "second_rules.yml"$ 19 $ 20 # A scrape configuration containing exactly one endpoint to scrape:$ 21 # Here it's Prometheus itself.$ 22 scrape_configs:$ 23 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.$ 24 - job_name: 'hehe'$ 25 $ 26 # metrics_path defaults to '/metrics'$ 27 # scheme defaults to 'http'.$ 28 metrics_path: '/'$ 29 static_configs:$ 30 - targets: ['localhost:12156']$ -- 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/4e1ea565-7e89-4254-aeab-948169778f7c%40googlegroups.com.

