metrics

package
v0.0.0-...-ff48f10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IDPortenClientsTotal = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "idporten_client_total",
		},
	)
	IDPortenSecretsTotal = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "idporten_client_secrets_total",
			Help: "Total number of idporten client secrets",
		},
	)
	IDPortenClientsCreatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "idporten_client_created_count",
			Help: "Number of idporten clients created successfully",
		},
		[]string{labelNamespace},
	)
	IDPortenClientsUpdatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "idporten_client_updated_count",
			Help: "Number of idporten clients updated successfully",
		},
		[]string{labelNamespace},
	)
	IDPortenClientsRotatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "idporten_client_rotated_count",
			Help: "Number of idporten clients successfully rotated credentials",
		},
		[]string{labelNamespace},
	)
	IDPortenClientsProcessedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "idporten_client_processed_count",
			Help: "Number of idporten clients processed successfully",
		},
		[]string{labelNamespace},
	)
	IDPortenClientsFailedProcessingCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "idporten_client_failed_processing_count",
			Help: "Number of idporten clients that failed processing",
		},
		[]string{labelNamespace},
	)
	IDPortenClientsDeletedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "idporten_client_deleted_count",
			Help: "Number of idporten clients successfully deleted",
		},
		[]string{labelNamespace},
	)
	MaskinportenClientsTotal = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "maskinporten_client_total",
		},
	)
	MaskinportenSecretsTotal = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "maskinporten_client_secrets_total",
			Help: "Total number of maskinporten client secrets",
		},
	)
	MaskinportenClientsCreatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_client_created_count",
			Help: "Number of maskinporten clients created successfully",
		},
		[]string{labelNamespace},
	)
	MaskinportenClientsUpdatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_client_updated_count",
			Help: "Number of maskinporten clients updated successfully",
		},
		[]string{labelNamespace},
	)
	MaskinportenClientsRotatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_client_rotated_count",
			Help: "Number of maskinporten clients successfully rotated credentials",
		},
		[]string{labelNamespace},
	)
	MaskinportenClientsProcessedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_client_processed_count",
			Help: "Number of maskinporten clients processed successfully",
		},
		[]string{labelNamespace},
	)
	MaskinportenClientsFailedProcessingCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_client_failed_processing_count",
			Help: "Number of maskinporten clients that failed processing",
		},
		[]string{labelNamespace},
	)
	MaskinportenClientsDeletedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_client_deleted_count",
			Help: "Number of maskinporten clients successfully deleted",
		},
		[]string{labelNamespace},
	)
	MaskinportenExposedScopesTotal = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "maskinporten_exposed_scope_total",
		},
	)
	MaskinportenExternalScopesConsumedTotal = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "maskinporten_external_scopes_consumed_total",
		},
	)
	MaskinportenScopeConsumersTotal = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "maskinporten_scope_consumers_total",
		},
	)
	MaskinportenScopesCreatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_scope_created_count",
			Help: "Number of maskinporten scopes successfully created",
		},
		[]string{labelNamespace},
	)
	MaskinportenScopesUpdatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_scope_updated_count",
			Help: "Number of maskinporten scopes successfully updated",
		},
		[]string{labelNamespace},
	)
	MaskinportenScopesDeletedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_scope_deleted_count",
			Help: "Number of maskinporten scopes successfully deleted",
		},
		[]string{labelNamespace},
	)
	MaskinportenScopesReactivatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_scope_reactivated_count",
			Help: "Number of maskinporten scopes successfully reactivated",
		},
		[]string{labelNamespace},
	)
	MaskinportenScopesConsumersCreatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_scope_consumer_created_count",
			Help: "Number of maskinporten scope consumers successfully created",
		},
		[]string{labelNamespace},
	)
	MaskinportenScopesConsumersUpdatedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_scope_consumer_updated_count",
			Help: "Number of maskinporten scope consumers successfully updated",
		},
		[]string{labelNamespace},
	)
	MaskinportenScopesConsumersDeletedCount = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "maskinporten_scope_consumer_deleted_count",
			Help: "Number of maskinporten scope consumers successfully deleted",
		},
		[]string{labelNamespace},
	)
)

Functions

func IncClientsCreated

func IncClientsCreated(instance clients.Instance)

func IncClientsDeleted

func IncClientsDeleted(instance clients.Instance)

func IncClientsFailedProcessing

func IncClientsFailedProcessing(instance clients.Instance)

func IncClientsProcessed

func IncClientsProcessed(instance clients.Instance)

func IncClientsRotated

func IncClientsRotated(instance clients.Instance)

func IncClientsUpdated

func IncClientsUpdated(instance clients.Instance)

func IncScopesConsumersCreatedOrUpdated

func IncScopesConsumersCreatedOrUpdated(instance clients.Instance, state types.State)

func IncScopesConsumersDeleted

func IncScopesConsumersDeleted(instance clients.Instance)

func IncScopesCreated

func IncScopesCreated(instance clients.Instance)

func IncScopesDeleted

func IncScopesDeleted(instance clients.Instance)

func IncScopesReactivated

func IncScopesReactivated(instance clients.Instance)

func IncScopesUpdated

func IncScopesUpdated(instance clients.Instance)

Types

type Metrics

type Metrics interface {
	Refresh(ctx context.Context)
}

func New

func New(reader client.Reader) Metrics

Jump to

Keyboard shortcuts

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