collectors

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

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,
	serviceDiscoveryFilename string,
	deploymentsFetcher *deployments.Fetcher,
	collectorsFilter *filters.CollectorsFilter,
	azsFilter *filters.AZsFilter,
	processesFilter *filters.RegexpFilter,
) *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) *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, azsFilter *filters.AZsFilter) *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 ProcessDetails

type ProcessDetails struct {
	Name           string
	DeploymentName string
	JobName        string
	JobID          string
	JobIndex       string
	JobAZ          string
	JobIP          string
}

type ProcessesDetails

type ProcessesDetails map[string][]ProcessDetails

type ServiceDiscoveryCollector

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

func NewServiceDiscoveryCollector

func NewServiceDiscoveryCollector(
	namespace string,
	serviceDiscoveryFilename string,
	azsFilter *filters.AZsFilter,
	processesFilter *filters.RegexpFilter,
) *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