metrics

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ACMEAccountRegistrations is the cert_management_acme_account_registrations gauge.
	ACMEAccountRegistrations = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "cert_management_acme_account_registrations",
			Help: "ACME account registrations",
		},
		[]string{"uri", "email", "issuer"},
	)

	// ACMETotalOrders is the cert_management_acme_orders counter.
	ACMETotalOrders = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "cert_management_acme_orders",
			Help: "Number of ACME orders",
		},
		[]string{"issuer", "success", "dns_challenges", "renew"},
	)

	// ACMEActiveDNSChallenges is the cert_management_acme_active_dns_challenges gauge.
	ACMEActiveDNSChallenges = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "cert_management_acme_active_dns_challenges",
			Help: "Currently active number of ACME DNS challenges",
		},
		[]string{"issuer"},
	)

	// CertEntries is the cert_management_cert_entries gauge.
	CertEntries = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "cert_management_cert_entries",
			Help: "Total number of certificate objects per issuer",
		},
		[]string{"issuertype", "issuer"},
	)

	// CertObjectExpire is the cert_management_cert_entries_expire gauge.
	CertObjectExpire = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "cert_management_cert_object_expire",
			Help: "Expire date as Unix time (the number of seconds elapsed since January 1, 1970 UTC) for each certificate object",
		},
		[]string{"namespace", "name"},
	)

	// OverdueCertificates is the cert_management_overdue_renewal_certificates gauge.
	OverdueCertificates = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "cert_management_overdue_renewal_certificates",
			Help: "Number of certificate objects with certificate's renewal overdue",
		},
	)

	// RevokedCertificates is the cert_management_revoked_certificates gauge.
	RevokedCertificates = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "cert_management_revoked_certificates",
			Help: "Number of certificate objects with revoked certificate",
		},
	)

	// CertificateSecrets is the cert_management_secrets gauge.
	CertificateSecrets = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "cert_management_secrets",
			Help: "Number of certificate secrets per classification",
		},
		[]string{"classification"},
	)
)

Functions

func AddACMEAccountRegistration

func AddACMEAccountRegistration(issuerKey utils.IssuerKey, uri, email string)

AddACMEAccountRegistration increments the ACMEAccountRegistrations counter.

func AddACMEOrder added in v0.12.0

func AddACMEOrder(issuerKey utils.IssuerKey, success bool, count int, renew bool)

AddACMEOrder increments the ACMETotalOrders counter.

func AddActiveACMEDNSChallenge

func AddActiveACMEDNSChallenge(issuerKey utils.IssuerKey)

AddActiveACMEDNSChallenge increments the ACMEActiveDNSChallenges gauge.

func DeleteCertEntries

func DeleteCertEntries(issuertype string, issuerKey utils.IssuerKey)

DeleteCertEntries deletes a CertEntries gauge entry.

func DeleteObjectEntriesExpire added in v0.12.0

func DeleteObjectEntriesExpire(namespace, name string)

DeleteObjectEntriesExpire deletes a CertObjectExpire gauge entry.

func RemoveActiveACMEDNSChallenge

func RemoveActiveACMEDNSChallenge(issuerKey utils.IssuerKey)

RemoveActiveACMEDNSChallenge decrements the ACMEActiveDNSChallenges gauge.

func ReportCertEntries

func ReportCertEntries(issuertype string, issuerKey utils.IssuerKey, count int)

ReportCertEntries sets the CertEntries gauge

func ReportCertObjectExpire added in v0.12.0

func ReportCertObjectExpire(namespace, name string, unixSeconds int64)

ReportCertObjectExpire sets a CertObjectExpire gauge entry.

func ReportCertificateSecrets added in v0.12.0

func ReportCertificateSecrets(classification string, count int)

ReportCertificateSecrets sets the CertificateSecrets gauge

func ReportOverdueCerts added in v0.12.0

func ReportOverdueCerts(count int)

ReportOverdueCerts sets the OverdueCertificates gauge

func ReportRevokedCerts added in v0.12.0

func ReportRevokedCerts(count int)

ReportRevokedCerts sets the RevokedCertificates gauge

Types

This section is empty.

Jump to

Keyboard shortcuts

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