metrics

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ProviderName is provider name for install.
	ProviderName = "metrics"
)

Variables

This section is empty.

Functions

func GetProviders added in v0.6.2

func GetProviders() map[string]cuexruntime.ProviderFn

GetProviders returns the metrics provider

func GetTemplate added in v0.6.2

func GetTemplate() string

GetTemplate returns the metrics template

Types

type PromParams added in v0.6.2

type PromParams = providertypes.Params[PromVars]

PromParams .

type PromReturnVars added in v0.6.2

type PromReturnVars struct {
	Message string `json:"message,omitempty"`
	Failed  bool   `json:"failed"`
	Result  bool   `json:"result"`
}

PromReturnVars .

type PromReturns added in v0.6.2

type PromReturns = providertypes.Returns[PromReturnVars]

PromReturns .

func PromCheck added in v0.6.2

func PromCheck(ctx context.Context, params *PromParams) (*PromReturns, error)

PromCheck do health check from metrics from prometheus

type PromVars added in v0.6.2

type PromVars struct {
	Query          string `json:"query"`
	MetricEndpoint string `json:"metricEndpoint"`
	Condition      string `json:"condition"`
	Duration       string `json:"duration"`
	FailDuration   string `json:"failDuration"`
}

PromVars .

Jump to

Keyboard shortcuts

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