collectors

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoshCollector

type BoshCollector struct {
	// contains filtered or unexported fields
}

func NewBoshCollector

func NewBoshCollector(
	namespace string,
	environment string,
	boshName string,
	boshUUID string,
	serviceDiscoveryFilename string,
	deploymentsFetcher *deployments.Fetcher,
	collectorsFilter *filters.CollectorsFilter,
	azsFilter *filters.AZsFilter,
	processesFilter *filters.RegexpFilter,
	cidrsFilter *filters.CidrFilter,
) *BoshCollector

func (*BoshCollector) Collect

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

func (*BoshCollector) Describe

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

type Collector

type Collector interface {
	Collect(deployments []deployments.DeploymentInfo, ch chan<- prometheus.Metric) error
	Describe(ch chan<- *prometheus.Desc)
}

type DeploymentsCollector

type DeploymentsCollector struct {
	// contains filtered or unexported fields
}

func NewDeploymentsCollector

func NewDeploymentsCollector(
	namespace string,
	environment string,
	boshName string,
	boshUUID string,
) *DeploymentsCollector

func (*DeploymentsCollector) Collect

func (c *DeploymentsCollector) Collect(deployments []deployments.DeploymentInfo, ch chan<- prometheus.Metric) error

func (*DeploymentsCollector) Describe

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

type JobsCollector

type JobsCollector struct {
	// contains filtered or unexported fields
}

func NewJobsCollector

func NewJobsCollector(
	namespace string,
	environment string,
	boshName string,
	boshUUID string,
	azsFilter *filters.AZsFilter,
	cidrsFilter *filters.CidrFilter,
) *JobsCollector

func (*JobsCollector) Collect

func (c *JobsCollector) Collect(deployments []deployments.DeploymentInfo, ch chan<- prometheus.Metric) error

func (*JobsCollector) Describe

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

type LabelGroupKey

type LabelGroupKey struct {
	DeploymentName string
	ProcessName    string
}

func (*LabelGroupKey) Labels

func (k *LabelGroupKey) Labels() model.LabelSet

type LabelGroups

type LabelGroups map[LabelGroupKey][]string

type ServiceDiscoveryCollector

type ServiceDiscoveryCollector struct {
	// contains filtered or unexported fields
}

func NewServiceDiscoveryCollector

func NewServiceDiscoveryCollector(
	namespace string,
	environment string,
	boshName string,
	boshUUID string,
	serviceDiscoveryFilename string,
	azsFilter *filters.AZsFilter,
	processesFilter *filters.RegexpFilter,
	cidrsFilter *filters.CidrFilter,
) *ServiceDiscoveryCollector

func (*ServiceDiscoveryCollector) Collect

func (c *ServiceDiscoveryCollector) Collect(deployments []deployments.DeploymentInfo, ch chan<- prometheus.Metric) error

func (*ServiceDiscoveryCollector) Describe

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

type TargetGroup

type TargetGroup struct {
	Targets []string       `json:"targets"`
	Labels  model.LabelSet `json:"labels,omitempty"`
}

type TargetGroups

type TargetGroups []TargetGroup

Jump to

Keyboard shortcuts

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