collector

package
v0.0.0-...-8097060 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainCollector

type DomainCollector struct {

	// Metrics
	DNSTypes *prometheus.Desc
	// contains filtered or unexported fields
}

DomainCollector is a Promethues collector that represents the Porkbun SSL functionality

func NewDomainCollector

func NewDomainCollector(apikey, secret string, domains []string) *DomainCollector

NewDomainCollector is a function that creates a new DomainCollector

func (*DomainCollector) Collect

func (c *DomainCollector) Collect(ch chan<- prometheus.Metric)

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*DomainCollector) Describe

func (c *DomainCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Prometheus' Collector interface and is used to describe metrics

type ExporterCollector

type ExporterCollector struct {
	StartTime *prometheus.Desc
	BuildInfo *prometheus.Desc
	// contains filtered or unexported fields
}

ExporterCollector collects metrics, mostly runtime, about this exporter in general.

func NewExporterCollector

func NewExporterCollector(osVersion, goVersion, gitCommit string, startTime int64) *ExporterCollector

NewExporterCollector is a function that returns a new ExporterCollector.

func (*ExporterCollector) Collect

func (c *ExporterCollector) Collect(ch chan<- prometheus.Metric)

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ExporterCollector) Describe

func (c *ExporterCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Prometheus' Collector interface and is used to describe metrics

type SSLCollector

type SSLCollector struct {

	// Metrics
	Bundle *prometheus.Desc
	// contains filtered or unexported fields
}

SSLCollector is a Promethues collector that represents the Porkbun DNS functionality

func NewSSLCollector

func NewSSLCollector(apikey, secret string, domains []string) *SSLCollector

NewSSLCollector is a function that creates a new SSLCollector

func (*SSLCollector) Collect

func (c *SSLCollector) Collect(ch chan<- prometheus.Metric)

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*SSLCollector) Describe

func (c *SSLCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Prometheus' Collector interface and is used to describe metrics

Jump to

Keyboard shortcuts

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