Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetricSuccess = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: namespace, Name: "success_bool", Help: "Whether the tool ran successful", }, []string{"domain"}) MetricCertExpiry = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: namespace, Name: "cert_expiry_seconds", Help: "The date after the cert is not valid anymore", }, []string{"domain"}) MetricCertLifetimeTotal = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: namespace, Name: "cert_lifetime_seconds_total", Help: "The total number of seconds this certificate is valid", }, []string{"domain"}) MetricCertParseErrors = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: namespace, Name: "cert_parse_errors_total", Help: "The total number of parsing errors of a cert", }, []string{"domain"}) MetricCertLifetimePercent = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: namespace, Name: "cert_lifetime_percent", Help: "The passed lifetime of the certificate in percent", }, []string{"domain"}) MetricRunTimestamp = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: namespace, Name: "run_timestamp_seconds", Help: "The date after the cert is not valid anymore", }, []string{"domain"}) )
View Source
var ( BuildVersion string CommitHash string YubiKeySupport string )
Functions ¶
func StartMetricsServer ¶ added in v1.8.0
func StartMetricsServer(addr string)
func WriteMetrics ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.