collector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionsCollector

type ActionsCollector struct {
	GithubOrgs  string
	GithubToken string
	// contains filtered or unexported fields
}

func (*ActionsCollector) Describe

func (ac *ActionsCollector) Describe(ch chan<- *prometheus.Desc)

func (*ActionsCollector) Update

func (ac *ActionsCollector) Update(ch chan<- prometheus.Metric) error

type BillingCollector

type BillingCollector struct {
	Collectors map[string]Collector
	// contains filtered or unexported fields
}

func NewBillingCollector

func NewBillingCollector(githubOrgs string, githubToken string, disabledCollectors string, logger log.Logger) *BillingCollector

func (BillingCollector) Collect

func (n BillingCollector) Collect(ch chan<- prometheus.Metric)

func (BillingCollector) Describe

func (n BillingCollector) Describe(ch chan<- *prometheus.Desc)

type Collector

type Collector interface {
	Update(ch chan<- prometheus.Metric) error
}

func NewActionsCollector

func NewActionsCollector(githubOrgs string, githubToken string) Collector

func NewPackagesCollector

func NewPackagesCollector(githubOrgs string, githubToken string) Collector

func NewStorageCollector

func NewStorageCollector(githubOrgs string, githubToken string) Collector

type PackagesCollector

type PackagesCollector struct {
	GithubOrgs  string
	GithubToken string
	// contains filtered or unexported fields
}

func (*PackagesCollector) Describe

func (pc *PackagesCollector) Describe(ch chan<- *prometheus.Desc)

func (*PackagesCollector) Update

func (pc *PackagesCollector) Update(ch chan<- prometheus.Metric) error

type StorageCollector

type StorageCollector struct {
	GithubOrgs  string
	GithubToken string
	// contains filtered or unexported fields
}

func (*StorageCollector) Describe

func (sc *StorageCollector) Describe(ch chan<- *prometheus.Desc)

func (*StorageCollector) Update

func (sc *StorageCollector) Update(ch chan<- prometheus.Metric) error

Jump to

Keyboard shortcuts

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