kubernetesmetrics

package
v0.48.7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncKubectlCallsCounter

func IncKubectlCallsCounter(version string, command ToolCommand, success bool)

func Register

func Register(r prometheus.Registerer)

Types

type CommandOutput

type CommandOutput string
const (
	LabelOutputSuccess CommandOutput = "success"
	LabelOutputFailre  CommandOutput = "failure"
)

type Tool

type Tool string
const (
	LabelToolKubectl Tool = "kubectl"
)

type ToolCommand

type ToolCommand string
const (
	LabelApplyCommand   ToolCommand = "apply"
	LabelCreateCommand  ToolCommand = "create"
	LabelReplaceCommand ToolCommand = "replace"
	LabelDeleteCommand  ToolCommand = "delete"
	LabelGetCommand     ToolCommand = "get"
)

Jump to

Keyboard shortcuts

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