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