David-VTUK / prometheus-rancher-exporter

MIT License
7 stars 7 forks source link

[Enhancement] - Change logic for Rancher / Rancher Backup Detection #31

Closed David-VTUK closed 1 year ago

David-VTUK commented 1 year ago

Currently, the Exporter determines if Rancher and the Rancher Backup operator are installed based on the helm app status:

https://github.com/David-VTUK/prometheus-rancher-exporter/blob/966a08464be27884b49eada0abc1409577266576/internal/utils/utils.go#L38-L44

Sometimes, both these apps can be installed and working but have a non deployed Helm status

Investigate an alternative way to determine if these exist. Potentially by CRD's