metrics

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LabelKindRBACSyncConfig        = "RBACSyncConfig"
	LabelKindClusterRBACSyncConfig = "ClusterRBACSyncConfig"

	LabelKindRoleBinding        = "RoleBinding"
	LabelKindClusterRoleBinding = "ClusterRoleBinding"
)

Variables

View Source
var (
	// Metrics for Controller
	RBACSyncConfigStatus = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "rbacsync_config_status",
		Help: "The number of RBACSyncConfigs and RBACSyncClusterConfigs and the status of the processed config",
	}, []string{"kind", "status"})
	RBACSyncBindingStatus = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "rbacsync_binding_status",
		Help: "The number of RoleBindings and ClusterRoleBindings configured by the controller and their statuses",
	}, []string{"kind", "status"})

	// Metrics for Mapper/GSuite
	RBACSyncGsuiteClientCreationStatus = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "rbacsync_gsuite_client_creation_status",
		Help: "Total number of the status of gsuite client creations",
	}, []string{"status"})
	RBACSyncGsuiteMembersStatus = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "rbacsync_gsuite_members_status",
		Help: "Total number of the status of calls to gsuite with labels for state",
	}, []string{"status"})
	RBACSyncGsuiteMembersLatency = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name: "rbacsync_gsuite_members_latency_duration_seconds",
		Help: "The amount of time the calls to gsuite for group memberships",
	}, []string{"status"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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