Node_exporter in opensuse

43 views
Skip to first unread message

Harsh bhadoria

unread,
May 25, 2020, 4:22:35 AM5/25/20
to Prometheus Users
I've installed Prometheus in my windows machine and installed Debian and OpenSuse in VMware. I wanted to check the system metrics so, I installed node_exporters in both(Debian and OpenSuse).
But from prometheus server I can only access debian metrics, opensuse target is showing down. (Error: Context time out).
Can anyone help me to config node_exporter in opensuse.

Stuart Clark

unread,
May 25, 2020, 4:30:52 AM5/25/20
to Harsh bhadoria, Prometheus Users
Are you able to use curl or wget to access the node exporter from the box or the Prometheus server?
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Harsh bhadoria

unread,
May 25, 2020, 4:44:54 AM5/25/20
to Prometheus Users
Yes, i can see the metrics from opensuse while going through localhost:9100, but not getting it from prometheus

Stuart Clark

unread,
May 25, 2020, 4:46:39 AM5/25/20
to Harsh bhadoria, Prometheus Users
What is the configuration being used for the node exporter? Could you be binding to only localhost rather than and external network interface?

Are there any firewalls between the server and Prometheus?

Harsh bhadoria

unread,
May 25, 2020, 4:47:11 AM5/25/20
to Prometheus Users
In debian i've installed the node_exporter and ran it, now I can see the metrics from prometheus which is in windows, same I've installed in opensuse also, and running node_exporter, but I'm not getting info in prometheus.

Harsh bhadoria

unread,
May 25, 2020, 4:48:33 AM5/25/20
to Prometheus Users
No, firewall is off. 

Stuart Clark

unread,
May 25, 2020, 4:48:43 AM5/25/20
to Harsh bhadoria, Prometheus Users
What command line options are being used for them? You can use ps to check or look at the systemd unit

Harsh bhadoria

unread,
May 25, 2020, 4:50:17 AM5/25/20
to Prometheus Users
./node_exporter..... command starts the node_exporter server. 

Stuart Clark

unread,
May 25, 2020, 4:51:14 AM5/25/20
to Harsh bhadoria, Prometheus Users
What is the exact command being used (with all the command line options)?

Harsh bhadoria

unread,
May 25, 2020, 4:57:26 AM5/25/20
to Prometheus Users
I just installed the node_exporter in my Suse env, then unzip it, went to node_exporter folder, there is an node_exporter executable file, from there I just give command (./node_exporter), it starts the server at port 9100, now from use env if I go to my browser and go to URL(localhost:9100) it shows it metrics, but in my prometheus server(running in windows side), I'm not getting access or see the metrics. On same time, same process I've done in my debian system, and by Prometheus is able to get the metrics. Problem is with node_exporter at suse side i think

Stuart Clark

unread,
May 25, 2020, 5:00:12 AM5/25/20
to Harsh bhadoria, Prometheus Users
When you say that you check the opensuse metrics with your browser, which machine is that running on? Is that curl or a graphical browser?

Harsh bhadoria

unread,
May 25, 2020, 5:03:03 AM5/25/20
to Prometheus Users
I used chrome in opensuse machine to check the metrics.

Stuart Clark

unread,
May 25, 2020, 5:06:34 AM5/25/20
to Harsh bhadoria, Prometheus Users
What configuration do you have set for the different node exporters in your prometheus.yml?

Harsh bhadoria

unread,
May 25, 2020, 5:14:03 AM5/25/20
to Prometheus Users
In scrape_configs, i added the "job-name: 'node_exporter' " and in static config, I've added targets as IP address of debian and opensuse.
Like this, 

Stuart Clark

unread,
May 25, 2020, 5:15:42 AM5/25/20
to Harsh bhadoria, Prometheus Users
If you use that IP address rather than localhost on the opensuse machine (in the web browser) do you get metrics?

Harsh bhadoria

unread,
May 25, 2020, 1:33:44 PM5/25/20
to Prometheus Users
Figured out the issue, there was firewall issue.
By the way, thanks for your suggestions.
Reply all
Reply to author
Forward
0 new messages