exporter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 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 RepoCollector

type RepoCollector struct {
	Status        *prometheus.Desc
	Stars         *prometheus.Desc
	Pulls         *prometheus.Desc
	Collaborators *prometheus.Desc
	Starred       *prometheus.Desc
	Private       *prometheus.Desc
	Automated     *prometheus.Desc
	Editable      *prometheus.Desc
	Migrated      *prometheus.Desc
	Updated       *prometheus.Desc
	// contains filtered or unexported fields
}

RepoCollector collects metrics about the servers.

func NewRepoCollector

func NewRepoCollector(logger log.Logger, client *dockerhub.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *RepoCollector

NewRepoCollector returns a new RepoCollector.

func (*RepoCollector) Collect

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

Collect is called by the Prometheus registry when collecting metrics.

func (*RepoCollector) Describe

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

Describe sends the super-set of all possible descriptors of metrics collected by this Collector.

func (*RepoCollector) Metrics

func (c *RepoCollector) Metrics() []*prometheus.Desc

Metrics simply returns the list metric descriptors for generating a documentation.

Jump to

Keyboard shortcuts

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