metrics

package
v0.0.0-...-2583119 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CertificateEnrollmentTotal is a prometheus metrics which holds the total
	// number of enrollment operations, equivalent to the action of sending CSR
	// to the NCM.
	CertificateEnrollmentTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "certificate_enrollment_total",
		Help:      "The total number of enrollment operations",
	})

	// CertificateEnrollmentSuccess is a prometheus metrics which holds the total
	// number of succeeded enrollment operations.
	CertificateEnrollmentSuccess = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "certificate_enrollment_success_total",
		Help:      "The total number of succeeded enrollment operations",
	})

	// CertificateEnrollmentFail is a prometheus metrics which holds the total
	// number of failed enrollment operations. The failure of this operation
	// may have been due to encountered errors or CSR status in the NCM
	// indicating rejection or postponement (ncm-issuer treats these statuses
	// as not expected ones, which results in the failure of enrollment operation).
	CertificateEnrollmentFail = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "certificate_enrollment_fail_total",
		Help:      "The total number of failed enrollment operations",
	})

	// CertificateRenewalTotal is a prometheus metrics which holds the total
	// number of renewal operation performed by ncm-issuer with usage of
	// NCM.
	CertificateRenewalTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "certificate_renewal_total",
		Help:      "The total number of renewal operations",
	})

	// CertificateRenewalSuccess is a prometheus metrics which holds the total
	// number of succeeded renewal operation performed by ncm-issuer with usage
	// of NCM.
	CertificateRenewalSuccess = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "certificate_renewal_success_total",
		Help:      "The total number of succeeded renewal operations",
	})

	// CertificateRenewalFail is a prometheus metrics which holds the total
	// number of failed renewal operation performed by ncm-issuer with usage
	// of NCM. The failure of this operation may have been due to an error
	// in k8s API, a missing certificate details secret or an NCM API error.
	CertificateRenewalFail = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "certificate_renewal_fail_total",
		Help:      "The total number of failed renewal operations",
	})
)

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