Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionCollector ¶
type ActionCollector struct {
MinutesUsed *prometheus.Desc
MinutesUsedBreakdown *prometheus.Desc
PaidMinutesUsed *prometheus.Desc
IncludedMinutes *prometheus.Desc
// contains filtered or unexported fields
}
ActionCollector collects metrics about the servers.
func NewActionCollector ¶
func NewActionCollector(logger log.Logger, client *github.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *ActionCollector
NewActionCollector returns a new ActionCollector.
func (*ActionCollector) Collect ¶
func (c *ActionCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*ActionCollector) Describe ¶
func (c *ActionCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*ActionCollector) Metrics ¶ added in v1.1.0
func (c *ActionCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.
type OrgCollector ¶
type OrgCollector struct {
PublicRepos *prometheus.Desc
PublicGists *prometheus.Desc
PrivateGists *prometheus.Desc
Followers *prometheus.Desc
Following *prometheus.Desc
Collaborators *prometheus.Desc
DiskUsage *prometheus.Desc
PrivateReposTotal *prometheus.Desc
PrivateReposOwned *prometheus.Desc
Created *prometheus.Desc
Updated *prometheus.Desc
// contains filtered or unexported fields
}
OrgCollector collects metrics about the servers.
func NewOrgCollector ¶
func NewOrgCollector(logger log.Logger, client *github.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *OrgCollector
NewOrgCollector returns a new OrgCollector.
func (*OrgCollector) Collect ¶
func (c *OrgCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*OrgCollector) Describe ¶
func (c *OrgCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*OrgCollector) Metrics ¶ added in v1.1.0
func (c *OrgCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.
type PackageCollector ¶
type PackageCollector struct {
BandwidthUsed *prometheus.Desc
BandwidthPaid *prometheus.Desc
BandwidthIncluded *prometheus.Desc
// contains filtered or unexported fields
}
PackageCollector collects metrics about the servers.
func NewPackageCollector ¶
func NewPackageCollector(logger log.Logger, client *github.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *PackageCollector
NewPackageCollector returns a new PackageCollector.
func (*PackageCollector) Collect ¶
func (c *PackageCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*PackageCollector) Describe ¶
func (c *PackageCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*PackageCollector) Metrics ¶ added in v1.1.0
func (c *PackageCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.
type RepoCollector ¶
type RepoCollector struct {
Forked *prometheus.Desc
Forks *prometheus.Desc
Network *prometheus.Desc
Issues *prometheus.Desc
Stargazers *prometheus.Desc
Subscribers *prometheus.Desc
Watchers *prometheus.Desc
Size *prometheus.Desc
AllowRebaseMerge *prometheus.Desc
AllowSquashMerge *prometheus.Desc
AllowMergeCommit *prometheus.Desc
Archived *prometheus.Desc
Private *prometheus.Desc
HasIssues *prometheus.Desc
HasWiki *prometheus.Desc
HasPages *prometheus.Desc
HasProjects *prometheus.Desc
HasDownloads *prometheus.Desc
Pushed *prometheus.Desc
Created *prometheus.Desc
Updated *prometheus.Desc
// contains filtered or unexported fields
}
RepoCollector collects metrics about the servers.
func NewRepoCollector ¶
func NewRepoCollector(logger log.Logger, client *github.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 ¶ added in v1.1.0
func (c *RepoCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.
type StorageCollector ¶
type StorageCollector struct {
DaysLeft *prometheus.Desc
EastimatedPaidStorage *prometheus.Desc
EastimatedStorage *prometheus.Desc
// contains filtered or unexported fields
}
StorageCollector collects metrics about the servers.
func NewStorageCollector ¶
func NewStorageCollector(logger log.Logger, client *github.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *StorageCollector
NewStorageCollector returns a new StorageCollector.
func (*StorageCollector) Collect ¶
func (c *StorageCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*StorageCollector) Describe ¶
func (c *StorageCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*StorageCollector) Metrics ¶ added in v1.1.0
func (c *StorageCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.