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 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
Click to show internal directories.
Click to hide internal directories.