curl node exporter
curl http://localhost:9100/metrics | grep "node_"
Here is what the above code is Doing:
1. We’re using the requests library to make a GET request to the /metrics endpoint of our Prometheus server.
2. We’re using the json library to parse the response into a Python dictionary.
3. We’re using the pprint library to print the dictionary in a readable format.