guilbaults / infiniband-exporter

Prometheus exporter for a Infiniband Fabric
Apache License 2.0
55 stars 22 forks source link

There is no node_infiniband_port_data_received_bytes_total metric in Metrics #51

Closed rensongqi closed 1 year ago

rensongqi commented 1 year ago

Hi, I didn't find node_infiniband_port_data_received_bytes_total and node_infiniband_port_data_transmitted_bytes_total in Metrics, how do I calculate to get them?

gabrieleiannetti commented 1 year ago

Hi,
the exporter does expose those metrics.
They are documented in the informative-counter section:

Since the exporter does prefix the metrics with infiniband and also appends a total to both metrics, since they are counter metrics, this will result in Prometheus as following:

By reading the documentation about the counter you will recognize that those metrics show the data per one lane. So if you are interested in the total for the NIC you must multiply the value by 4.

@guilbaults:
Why exporting the data per lane instead of the total?
The metric does not even export the data per each lane,
it is just the average value...
If the real counter per lane is not exported,
I would suggest to export the total instead.

Best Gabriele