collectors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentsCollector

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

func NewDeploymentsCollector

func NewDeploymentsCollector(
	namespace string,
	deploymentsFilter filters.DeploymentsFilter,
) *DeploymentsCollector

func (DeploymentsCollector) Collect

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

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,
	deploymentsFilter filters.DeploymentsFilter,
) *JobsCollector

func (JobsCollector) Collect

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

func (JobsCollector) Describe

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

type ProcessInfo

type ProcessInfo struct {
	DeploymentName string
	JobName        string
	JobID          string
	JobIndex       int
	JobAZ          string
	JobIP          string
}

type Processes

type Processes map[string][]ProcessInfo

type ServiceDiscoveryCollector

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

func NewServiceDiscoveryCollector

func NewServiceDiscoveryCollector(
	namespace string,
	deploymentsFilter filters.DeploymentsFilter,
	serviceDiscoveryFilename string,
	processesFilter filters.RegexpFilter,
) *ServiceDiscoveryCollector

func (ServiceDiscoveryCollector) Collect

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

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