collector

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parent

func Parent(project string) string

Parent is a function that returns the correct parent value for the Cloud Run services list method

Types

type ArtifactRegistryCollector added in v0.0.3

type ArtifactRegistryCollector struct {
	Registries *prometheus.Desc
	Locations  *prometheus.Desc
	Formats    *prometheus.Desc
	// contains filtered or unexported fields
}

ArtifactRegistryCollector represents an Artifact Registry

func NewArtifactRegistryCollector added in v0.0.3

func NewArtifactRegistryCollector(account *gcp.Account) *ArtifactRegistryCollector

NewArtifactRegistryCollector returns a new ArtifactRegistryCollector

func (*ArtifactRegistryCollector) Collect added in v0.0.3

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ArtifactRegistryCollector) Describe added in v0.0.3

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type CloudRunCollector

type CloudRunCollector struct {
	Services *prometheus.Desc
	// contains filtered or unexported fields
}

CloudRunCollector represents Cloud Run

func NewCloudRunCollector

func NewCloudRunCollector(account *gcp.Account) *CloudRunCollector

NewCloudRunCollector returns a new CloudRunCollector

func (*CloudRunCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*CloudRunCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type ComputeCollector

type ComputeCollector struct {
	Instances       *prometheus.Desc
	ForwardingRules *prometheus.Desc
	// contains filtered or unexported fields
}

ComputeCollector represents Compute Engine

func NewComputeCollector

func NewComputeCollector(account *gcp.Account) *ComputeCollector

NewComputeCollector returns a new ComputeCollector

func (*ComputeCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ComputeCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type EndpointsCollector added in v0.0.3

type EndpointsCollector struct {
	Services *prometheus.Desc
	// contains filtered or unexported fields
}

EndpointsCollector represents Services Management services

func NewEndpointsCollector added in v0.0.3

func NewEndpointsCollector(account *gcp.Account) *EndpointsCollector

NewEndpointsCollector returns a new ServiceManagementCollector

func (*EndpointsCollector) Collect added in v0.0.3

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*EndpointsCollector) Describe added in v0.0.3

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type ExporterCollector

type ExporterCollector struct {
	StartTime *prometheus.Desc
	BuildInfo *prometheus.Desc
	// contains filtered or unexported fields
}

ExporterCollector collects metrics, mostly runtime, about this exporter in general.

func NewExporterCollector

func NewExporterCollector(osVersion, goVersion, gitCommit string, startTime int64) *ExporterCollector

NewExporterCollector returns a new ExporterCollector.

func (*ExporterCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ExporterCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type FunctionsCollector

type FunctionsCollector struct {
	Functions *prometheus.Desc
	Locations *prometheus.Desc
	Runtimes  *prometheus.Desc
	// contains filtered or unexported fields
}

FunctionsCollector represents Cloud Functions

func NewFunctionsCollector

func NewFunctionsCollector(account *gcp.Account) *FunctionsCollector

NewFunctionsCollector returns a new FunctionsCollector

func (*FunctionsCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*FunctionsCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type KubernetesCollector

type KubernetesCollector struct {
	Up    *prometheus.Desc
	Nodes *prometheus.Desc
	// contains filtered or unexported fields
}

KubernetesCollector represents Kubernetes Engine

func NewKubernetesCollector

func NewKubernetesCollector(account *gcp.Account) *KubernetesCollector

NewKubernetesCollector creates a new KubernetesCollector

func (*KubernetesCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*KubernetesCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type ProjectsCollector

type ProjectsCollector struct {
	Count *prometheus.Desc
	// contains filtered or unexported fields
}

ProjectsCollector represents Google Cloud Platform projects

func NewProjectsCollector

func NewProjectsCollector(account *gcp.Account, filter string, pagesize int64) *ProjectsCollector

NewProjectsCollector returns a new ProjectsCollector

func (*ProjectsCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ProjectsCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to desribe metrics

type StorageCollector

type StorageCollector struct {
	Buckets *prometheus.Desc
	// contains filtered or unexported fields
}

StorageCollector represents Cloud Storage

func NewStorageCollector

func NewStorageCollector(account *gcp.Account) *StorageCollector

NewStorageCollector returns a StorageCollector

func (*StorageCollector) Collect

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

Collect implements Prometheus' Collector inteface and is used to collect metrics

func (*StorageCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

Jump to

Keyboard shortcuts

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