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.
Click to show internal directories.
Click to hide internal directories.