I have 3 Ubuntu machines. Each of them has Prometheus installed with node_exporter. When I try to get network statistics, I query
- node_network_receive_bytes_total
- node_network_transmit_bytes_total
- node_network_receive_drop_total
- node_network_transmit_drop_total
- node_network_receive_errs_total
- node_network_transmit_errs_total
- node_network_receive_packets_total
- node_network_transmit_packets_total
one by one in a for loop through HTTP API.
For most of time, returned statistics are fine. However, in some cases, data for one node will be missing.
For example, in 1 round, query for node_network_receive_bytes_total returns all data. But the data of 3rd node is missing in node_network_receive_packets_total.
How can I avoid this problem? Or do I simply resend the query if I found some data is missing?