healthcheck

package
v0.5.1-0...-faa3f61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VizExtensionName is the name of the viz extension
	VizExtensionName = "viz"

	// LinkerdVizExtensionCheck adds checks related to the Linkerd Viz extension
	LinkerdVizExtensionCheck healthcheck.CategoryID = "linkerd-viz"

	// LinkerdVizExtensionDataPlaneCheck adds checks related to dataplane for the linkerd-viz extension
	LinkerdVizExtensionDataPlaneCheck healthcheck.CategoryID = "linkerd-viz-data-plane"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker struct {
	*healthcheck.HealthChecker
	// contains filtered or unexported fields
}

HealthChecker wraps Linkerd's main healthchecker, adding extra fields for Viz

func NewHealthChecker

func NewHealthChecker(parentCheckIDs []healthcheck.CategoryID, options *VizOptions) *HealthChecker

NewHealthChecker returns an initialized HealthChecker for Viz The parentCheckIDs are the category IDs of the linkerd core checks that are to be ran together with this instance The returned instance does not contain any of the viz Categories and to be explicitly added by using hc.AppendCategories

func (*HealthChecker) ExternalPrometheusURL

func (hc *HealthChecker) ExternalPrometheusURL() string

ExternalPrometheusURL returns URL of the external prometheus if one is configured. Otherwise, it returns an empty string.

func (*HealthChecker) RunChecks

func (hc *HealthChecker) RunChecks(observer healthcheck.CheckObserver) (bool, bool)

RunChecks implements the healthcheck.Runner interface

func (*HealthChecker) VizAPIClient

func (hc *HealthChecker) VizAPIClient() pb.ApiClient

VizAPIClient returns a fully configured Viz API client

func (*HealthChecker) VizCategory

func (hc *HealthChecker) VizCategory(fullCheck bool) *healthcheck.Category

VizCategory returns a healthcheck.Category containing checkers to verify the health of viz components fullCheck parameter will decide to run a full or a smaller set of healthchecks.

func (*HealthChecker) VizDataPlaneCategory

func (hc *HealthChecker) VizDataPlaneCategory() *healthcheck.Category

VizDataPlaneCategory returns a healthcheck.Category containing checkers to verify the data-plane metrics in prometheus and the tap injection

func (*HealthChecker) VizNamespace

func (hc *HealthChecker) VizNamespace() string

VizNamespace returns the namespace where the viz extension is installed.

type VizOptions

type VizOptions struct {
	*healthcheck.Options
	VizNamespaceOverride string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL