Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BuildDatabrokerConfig checks whether the Databroker config was applied BuildDatabrokerConfig = Check("config.databroker.build") // CollectAndSendTelemetry checks whether telemetry was collected and sent CollectAndSendTelemetry = Check("zero.telemetry.collect-and-send") // StorageBackend checks whether the storage backend is healthy StorageBackend = Check("storage.backend") // XDSCluster checks whether the XDS Cluster resources were applied XDSCluster = Check("xds.cluster") // XDSListener checks whether the XDS Listener resources were applied XDSListener = Check("xds.listener") // XDSRouteConfiguration checks whether the XDS RouteConfiguration resources were applied XDSRouteConfiguration = Check("xds.route-configuration") // XDSOther is a catch-all for other XDS resources XDSOther = Check("xds.other") // ZeroBootstrapConfigSave checks whether the Zero bootstrap config was saved ZeroBootstrapConfigSave = Check("zero.bootstrap-config.save") // ZeroConnect checks whether the Zero Connect service is connected ZeroConnect = Check("zero.connect") // RoutesReachable checks whether all referenced routes can be resolved to this instance RoutesReachable = Check("routes.reachable") )
View Source
const InternalErrorKey = "internal_error"
InternalErrorKey is the key used to indicate that a check failed due to some non-user facing error
Variables ¶
View Source
var ErrInternalError = errors.New("internal error")
Functions ¶
func ReportError ¶
ReportError reports that a check failed
func ReportInternalError ¶ added in v0.27.0
ReportInternalError reports that a check failed due to an internal error
Types ¶
type Attr ¶
Attr is a key-value pair that can be attached to a health check
type Check ¶
type Check string
func ZeroResourceBundle ¶
ZeroResourceBundle checks whether the Zero resource bundle was applied
type Deduplicator ¶ added in v0.27.0
type Deduplicator struct {
// contains filtered or unexported fields
}
Deduplicator is a health check provider that deduplicates health check reports i.e. it only reports a health check if the status or attributes have changed
func NewDeduplicator ¶
func NewDeduplicator() *Deduplicator
func (*Deduplicator) ReportError ¶ added in v0.27.0
func (d *Deduplicator) ReportError(check Check, err error, attrs ...Attr)
ReportError implements the Provider interface
func (*Deduplicator) ReportOK ¶ added in v0.27.0
func (d *Deduplicator) ReportOK(check Check, attrs ...Attr)
ReportOK implements the Provider interface
func (*Deduplicator) SetProvider ¶ added in v0.27.0
func (d *Deduplicator) SetProvider(p Provider)
Click to show internal directories.
Click to hide internal directories.