Integarting prometheus (node-exporter) with checkmk

CMK version:
2.4 Enterprise

OS version:
debian.linux 12

Error message:

CRIT [special_prometheus]: Agent exited with code 1: HTTPConnectionPool(host=‘http’, port=80): Max retries exceeded with url: /10...*:9100/metrics/api/v1/query?query=up (Caused by NameResolutionError(“<urllib3.connection.HTTPConnection object at 0x7f8ab50f99d0>: Failed to resolve ‘http’ ([Errno -2] Name or service not known)”))

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
CRIT [special_prometheus]: Agent exited with code 1: HTTPConnectionPool(host=‘http’, port=80): Max retries exceeded with url: /10...*:9100/metrics/api/v1/query?query=up (Caused by NameResolutionError(“<urllib3.connection.HTTPConnection object at 0x7f8ab50f99d0>: Failed to resolve ‘http’ ([Errno -2] Name or service not known)”))

i am trying to use Node-exporter (prometheus) on my checkmk but u faced this issue trying to discover any services form the node-exporter and idk how to solve it
Note i am using Base URL not prometheus server. example of Base URL: http://...*:9100/metrics**

Have you checked if this: https://10.. .*:9100/metrics/ even works when you try to open in a browser ?
Also, is it really https or http ?

hi, thank you for responding

its http , yes i have tried to curl it from the browser and its working fine but when i try to apply the url checkmk it seems that the checkmk is trying to pull from a prometheus server Max retries exceeded with url: /10...*:9100/metrics/api/v1/query?query=up (Caused by NameResolutionError(“<urllib3.connection.HTTPConnection

Have you defined like this?

yes find the below pics. in my below senario could i fetch directly from node_exporter or i need prom server? also one more question… from node_exp in checkmk are the only available metrics are mentioned?

Screenshot 1447-02-05 at 1.00.28 PM


keep in mind i am using three systems: 1 where the checkmk & prom server is installed and the rest systems are targets/client.