# Functions
Close calls close on the given Closer, and catches and logs any errors.
GetConfig returns the config for the monitoring instance API.
GetHealthCheck is the /healthcheck router function.
NewK8s returns a new K8s struct.
Retry executes the provided function repeatedly, retrying until the function returns done = true, or exceeds the given timeout.
Usage returns the usage for the API.
ValidateConfigMapKeyName validates a given configmap key.
ValidatePrometheusRuleElements does some basic validation on the rule file.
ValidateVMIPrometheusElements validates the Prometheus configuration.
WaitForEndpointAvailable waits for the given endpoint to become available.
# Constants
AlertmanagerTemplatesConfigMapPath for Alert Manager configMap.
K8sPublicIPAddressLabel label name for IP address.
Layout format of time stamp.
LevelAll is all log level.
LevelDebug is debug log level.
LevelError is error log level.
LevelFatal is fatal log level.
LevelInfo is info log level.
LevelMax is maximum log level.
LevelMin is minimum log level.
MaxBackupFiles is max number of files for backup.
MaxBackupHours is max hours for backup.
PrometheusConfigFileName file name of Prometheus config file.
PrometheusConfigMapPath path for Prometheus configMap.
PrometheusRulesConfigMapPath path for Prometheus rules configMap.
PrometheusRulesVersionsConfigMapPath path for Prometheus rules versions configMap.
PrometheusVersionsConfigMapPath path for Prometheus versions configMap.
VMIGroup group name for an instance resource.
VMIMetadataNamePath path for metadata name.
VMIPlural plural name for an instance resource.
VMIVersion version of instance resource.
# Variables
EndpointBackoffSchedule is the schedule used for endpoint polling.
ListenURL Cirith listener URL.