SUSE / hanadb_exporter

Prometheus exporter for SAP HANA databases
Apache License 2.0
46 stars 27 forks source link

lookup for multiple configs #78

Closed MalloZup closed 4 years ago

MalloZup commented 4 years ago

In the hana formula we are copying files from /usr/etc to /etc. But we shouldn't copy this files to /etc. This not coherent to next versions see last note at the end.

https://github.com/SUSE/saphanabootstrap-formula/blob/master/hana/monitoring.sls#L55-L68

we should keep them in /usr/etc and having the exporter look in both folder.

The metric folder is in fact already lookedup. This pr extends the same mechanism to mimic the same for the init folder

Once this pr merged we can remove the 2 states in formula and adapt the rest accordingly

/usr/etc -> https://kubic.opensuse.org/blog/2019-12-05-usr-etc/

MalloZup commented 4 years ago

thx @arbulu89 for review. I will adapt later on the feedback