vpenso / prometheus-slurm-exporter

Prometheus exporter for performance metrics from Slurm.
GNU General Public License v3.0
227 stars 141 forks source link

Missing exposed metrics in Prometheus #58

Open strus38 opened 3 years ago

strus38 commented 3 years ago

Hi While using your exporter and the SLURM grafana dashboard, I noticed that those metrics are not exposed:

"expr": "slurm_account_cpus_running"
"expr": "slurm_account_jobs_pending"
"expr": "slurm_account_jobs_running"
"expr": "slurm_partition_cpus_allocated"
"expr": "slurm_partition_jobs_pending"
"expr": "slurm_user_cpus_running"
"expr": "slurm_user_jobs_pending"
"expr": "slurm_user_jobs_running"

I guess I am missing something in enabling some metrics when starting the exporter, but cannot find which ones... Could you help please?

In fact it seems that the metrics are exported only if their value is >0 ... but why that? since 0 is a data, but a missing metric is a N/A in the dashboard, thinkin the dashboard has an issue!

Thanks!

peekay1234 commented 1 year ago

Right!, I think when user complete job metric is gone and not collect data to prometheus.