guilbaults / infiniband-exporter

Prometheus exporter for a Infiniband Fabric
Apache License 2.0
47 stars 21 forks source link

Adding scrape duration and status. #9

Closed guilbaults closed 3 years ago

guilbaults commented 3 years ago

New gauges added to store the scrape duration and scrape_ok

# HELP infiniband_ibqueryerrors_duration_seconds Number of seconds taken to run ibqueryerrors
# TYPE infiniband_ibqueryerrors_duration_seconds gauge
infiniband_ibqueryerrors_duration_seconds 2.2388930320739746
# HELP infiniband_scrape_duration_seconds Number of seconds taken to collect and parse the stats
# TYPE infiniband_scrape_duration_seconds gauge
infiniband_scrape_duration_seconds 3.6977221965789795
# HELP infiniband_scrape_ok Indicate with a 1 if the scrape is valid
# TYPE infiniband_scrape_ok gauge
infiniband_scrape_ok 1.0

Also improving the internal web server, this remove the sleep(1)

gabrieleiannetti commented 3 years ago

Hi,

this is great. Just for the completeness, I would write as HELP text for infiniband_scrape_ok:
Indicate with a 1 if the scrape is valid, otherwise 0

Thank you.

I will try the next exporter version soon... Then we will see how long the ibqueryerrors command will take :+1: .

We are currently facing times about ~38 seconds...

Best Gabriele