metrics

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Namespace = "aws_iam_authenticator"
	Malformed = "malformed_request"
	Invalid   = "invalid_token"
	STSError  = "sts_error"
	Unknown   = "uknown_user"
	Success   = "success"
)

Variables

This section is empty.

Functions

func InitMetrics added in v0.5.5

func InitMetrics(registerer prometheus.Registerer)

func Initialized added in v0.5.11

func Initialized() bool

Initialized returns true if InitMetrics() has been called, and false otherwise.

Types

type Metrics

type Metrics struct {
	ConfigMapWatchFailures       prometheus.Counter
	Latency                      *prometheus.HistogramVec
	EC2DescribeInstanceCallCount prometheus.Counter
	StsConnectionFailure         prometheus.Counter
	StsResponses                 *prometheus.CounterVec
}

Metrics are handles to the collectors for prometheus for the various metrics we are tracking.

func Get added in v0.5.5

func Get() Metrics

Jump to

Keyboard shortcuts

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