I just used Ansible to monitor my servers with Prometheus, Grafana and Node Exporter. I have one monitoring server (Prometheus) & one webserver (Node Exporter).
I followed a tutorial for the setup. The thing is that it does not provide any information about security. For the moment any one is able to listen on the node_exporter
port of my webserver.
I thought about iptable
to protect my webserver from external calls on node_exporter
port. Then I will only give access to my Promotheus server.
Is it the way to do?