internal

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricSuccess = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricsNamespace,
		Name:      "success_bool",
		Help:      "Whether the tool ran successful",
	}, []string{"domain"})

	MetricCertExpiry = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricsNamespace,
		Name:      "cert_expiry_seconds",
		Help:      "The date after the cert is not valid anymore",
	}, []string{"domain"})

	MetricCertLifetimeTotal = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricsNamespace,
		Name:      "cert_lifetime_seconds_total",
		Help:      "The total number of seconds this certificate is valid",
	}, []string{"domain"})

	MetricCertParseErrors = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricsNamespace,
		Name:      "cert_parse_errors_total",
		Help:      "The total number of parsing errors of a cert",
	}, []string{"domain"})

	MetricCertLifetimePercent = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricsNamespace,
		Name:      "cert_lifetime_percent",
		Help:      "The passed lifetime of the certificate in percent",
	}, []string{"domain"})

	MetricRunTimestamp = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricsNamespace,
		Name:      "run_timestamp_seconds",
		Help:      "The date after the cert is not valid anymore",
	}, []string{"domain"})
)
View Source
var (
	BuildVersion string
	CommitHash   string
)

Functions

func StartMetricsServer added in v1.8.0

func StartMetricsServer(addr string) error

func WriteMetrics

func WriteMetrics(path string) error

Types

This section is empty.

Directories

Path Synopsis
pki

Jump to

Keyboard shortcuts

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