metrics

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientRoleFull     = 1
	ClientRolePullOnly = 2
)

Client roles reported by acme_manager_client_role. The mode is deliberately encoded as a value rather than a label: it is fixed for the lifetime of the process, so a label would leave a stale series behind whenever an operator flips -client.pull-only and restarts. The values are named after the flag rather than the server's leader/follower, which is elected at runtime.

Variables

This section is empty.

Functions

func DecHTTPRequestsInFlight

func DecHTTPRequestsInFlight()

func DecManagedCertificate

func DecManagedCertificate(issuer, owner, domain, name string)

func DeleteCertificateMetrics added in v0.8.0

func DeleteCertificateMetrics(issuer, owner, domain, name string)

DeleteCertificateMetrics removes all metric series for the given label set. Call this when a cert's issuer or domain changes so stale series don't linger.

func IncCertificateCreated added in v0.7.2

func IncCertificateCreated(issuer, owner, domain, name string)

func IncCertificateCreationError added in v0.7.2

func IncCertificateCreationError(issuer, owner, domain, name string)

func IncCertificateRenewalError added in v0.7.2

func IncCertificateRenewalError(issuer, owner, domain, name string)

func IncCreatedLocalCertificate

func IncCreatedLocalCertificate(issuer string)

func IncDeleteFailedVaultSecret

func IncDeleteFailedVaultSecret(secretType string)

func IncDeleteSuccessVaultSecret

func IncDeleteSuccessVaultSecret(secretType string)

func IncDeletedLocalCertificate

func IncDeletedLocalCertificate(issuer string)

func IncGetFailedVaultSecret

func IncGetFailedVaultSecret(secretType string)

func IncGetSuccessVaultSecret

func IncGetSuccessVaultSecret(secretType string)

func IncHTTPRequestsInFlight

func IncHTTPRequestsInFlight()

func IncManagedCertificate

func IncManagedCertificate(issuer, owner, domain, name string)

func IncPutFailedVaultSecret

func IncPutFailedVaultSecret(secretType string)

func IncPutSuccessVaultSecret

func IncPutSuccessVaultSecret(secretType string)

func IncRateLimitBlocked added in v0.7.0

func IncRateLimitBlocked(owner, issuer, operation string)

func IncRevokedCertificate added in v0.6.5

func IncRevokedCertificate(issuer, owner, domain, name string)

func IncRevokedCertificateErrors added in v0.6.5

func IncRevokedCertificateErrors(issuer, owner, domain, name string)

func IncRunFailedLocalCmd

func IncRunFailedLocalCmd(command string)

func IncRunSuccessLocalCmd

func IncRunSuccessLocalCmd(command string)

func InitCertificateErrorMetrics added in v0.8.0

func InitCertificateErrorMetrics(issuer, owner, domain, name string)

InitCertificateErrorMetrics initializes the renew/error series to 0 at startup so that increase() works correctly on the first renewal error for a known cert.

func RecordHTTPRequest

func RecordHTTPRequest(method, path, statusCode string, duration float64)

func SetCertificateConfigError

func SetCertificateConfigError(value float64)

func SetCertificateRenewed added in v0.8.0

func SetCertificateRenewed(issuer, owner, domain, name string, count int64)

func SetClientRole added in v0.9.0

func SetClientRole(pullOnly bool)

SetClientRole reports whether the client runs in pull-only mode. Call it once at startup, before serving metrics.

func SetConfigError

func SetConfigError(value float64)

func SetIssuerConfigError

func SetIssuerConfigError(issuer string, value float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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