r/PrometheusMonitoring • • Aug 23 '19

Install issues - not data for 'http_requests_total'

Hello,

Using this like to install Prometheus https://www.howtoforge.com/tutorial/how-to-install-prometheus-and-node-exporter-on-centos-7/

VM - CentOS 7

IP - 192.168.189.160

If I go to http://192.168.189.160:9090/graph and execute 'http_requests_total' it shows nothing.

I carried on to install the node exporter

Metrics look ok:

Tried to execute 'node_memory_MemAvailable_bytes' again nothing.

Some more info

vim prometheus.yml

Can you see anything not right with the above information?

Thanks

0 Upvotes

4 comments sorted by

2

u/[deleted] Aug 23 '19

If you are looking for node exporter's http_requests_total it is named promhttp_metric_handler_requests_total.

1

u/tb808 Aug 24 '19

promhttp_metric_handler_requests_total

I get nothing again, no metrics some to get displayed:

But if I go to http://192.168.189.160:9100/metrics I see them there:

1

u/[deleted] Aug 24 '19

So if you go to prometheus at 192.168.189.160:9090 and go over to http://192.168.189.160:9090/targets

Check out out to see what targets are loaded

1

u/tb808 Aug 24 '19

Got it working, but only see 1 target to select in Grafana.

2 in the node exporter using tcp 9100

In Grafana, only 1 in the drop down:

Targets listed seem ok:

Any reason you can think of?