Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetricSuccess = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "success_bool", Help: "Boolean that reflects whether the tool ran successful", }, []string{"cn"}) MetricCertExpiry = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "cert_expiry_seconds", Help: "The date after the cert is not valid anymore", }, []string{"cn"}) MetricCertLifetimeTotal = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "cert_lifetime_seconds_total", Help: "The total number of seconds this certificate is valid", }, []string{"cn"}) MetricCertErrors = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "cert_errors_total", Help: "The total number of errors while handling a cert", }, []string{"cn", "error"}) MetricCertLifetimePercent = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "cert_lifetime_percent", Help: "The passed lifetime of the certificate in percent", }, []string{"cn"}) MetricRunTimestamp = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: metricsNamespace, Name: "run_timestamp_seconds", Help: "The date after the cert is not valid anymore", }, []string{"cn"}) )
View Source
var ( BuildVersion string CommitHash string )
Functions ¶
func StartMetricsServer ¶ added in v1.8.0
func TranslateErrToPromLabel ¶ added in v1.15.0
func UpdateCertificateMetrics ¶ added in v1.15.0
func UpdateCertificateMetrics(cert *x509.Certificate)
func WriteMetrics ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.