SUSE / hanadb_exporter

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

Use systemd notify to set correctly the READY state #86

Closed arbulu89 closed 3 years ago

arbulu89 commented 3 years ago

Use systemd notify option to state that the daemon started properly.

As the exporter has an initial timeout to connect to the database, now the daemon will be put as correctly started after this initial loop.

If the exporter is started without being a daemon the functionality is untouched.

This helps the Pacemaker cluster to correctly monitor the start of the resource.

https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=

Besides this, I have reduced the timeout value from 600 to 30, to have a more reasonable value (I will do the same in the sapahanbootstrap-formula)