Discover Packages
github.com/etherlabsio/healthcheck/v2
checkers
package
Version:
v2.0.0
Opens a new window with list of versions in this module.
Published: Jun 17, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
func DiskSpace(dir string , threshold uint64 ) healthcheck.Checker
DiskSpace returns a diskspace health checker, which checks if filesystem usage is above the threshold which is defined in percentage.
func Heartbeat(filepath string ) healthcheck.Checker
Heartbeat returns a heartbeat health checker. Heartbeat files are generally used to take hosts out of rotation from the loadbalancers.
Removing the heartbeat file allows you to debug the application host in case of failures.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.