Cloudian HyperIQ uses Grafana and Prometheus. I am writing a script that uses the Grafana API to execute one of the dashboard queries. For the most part it works and behaves just like the table in HyperIQ. What I noticed in HyperIQ is that query never pulls the total list of disks with each run display a different number of disk and associated in formation in the table.
I’d like to modify the query in my python script so that it pulls all disks each time it runs.
Here is the script from HyperIQ:
query=sum+by+%28nodename%2C+disk%2C+cluster%29+%28smartmon_device_smart_healthy%7Binstance%3D%7E%22%28%28{instances_param}%29%29%3A9999%22%2Cjob%3D%7E%22{job}%22%7D%29+%2B+sum+by+%28nodename%2C+disk%2C+cluster%29+%28smartmon_device_smart_available%7Binstance%3D%7E%22%28%28{instances_param}%29%29%3A9999%22%2Cjob%3D%7E%22{job}%22%7D%29&time={current_time}
I’ve tried appending count, limit, and/or offset and use a loop until I get the total number of unique disks.
Any ideas? Pagination? If so, how can i get around this?