Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ProjectId string // ProjectID is where the project is running. Used for authentication. Region string Projects string // Projects is a comma-separated list of projects to scrape metadata from Services []string ScrapeInterval time.Duration DefaultDiscount int Logger *slog.Logger }
type GCP ¶
type GCP struct {
// contains filtered or unexported fields
}
func New ¶
New is responsible for parsing out a configuration file and setting up the associated services that could be required. We instantiate services to avoid repeating common services that may be shared across many collectors. In the future we can push collector specific services further down.
func (*GCP) CheckReadiness ¶ added in v0.3.0
func (*GCP) Collect ¶
func (g *GCP) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface and will iterate over all the collectors instantiated during New and collect their metrics.
func (*GCP) Describe ¶
func (g *GCP) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface and will iterate over all the collectors instantiated during New and describe their metrics.
Click to show internal directories.
Click to hide internal directories.