metrics

package
v0.6.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package metrics contains global structures related to metrics collection cert-manager exposes the following metrics: certificate_expiration_timestamp_seconds{name, namespace}

Index

Constants

This section is empty.

Variables

View Source
var CertificateExpiryTimeSeconds = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Namespace: namespace,
		Name:      "certificate_expiration_timestamp_seconds",
		Help:      "The date after which the certificate expires. Expressed as a Unix Epoch Time.",
	},
	[]string{"name", "namespace"},
)
View Source
var Default = New()

Default set of metrics

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	http.Server

	CertificateExpiryTimeSeconds *prometheus.GaugeVec
	// contains filtered or unexported fields
}

func New

func New() *Metrics

func (*Metrics) Start

func (m *Metrics) Start(stopCh <-chan struct{})

func (*Metrics) UpdateCertificateExpiry

func (m *Metrics) UpdateCertificateExpiry(crt *v1alpha1.Certificate, secretLister corelisters.SecretLister)

UpdateCertificateExpiry updates the expiry time of a certificate

Jump to

Keyboard shortcuts

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