metric

package
v4.2.154+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeCPUUsagePercentageRepository

type NodeCPUUsagePercentageRepository struct {
	PrometheusConfig prometheus.Config
}

NodeCPUUsagePercentageRepository Repository to access metric node:node_cpu_utilisation:avg1m from prometheus

func NewNodeCPUUsagePercentageRepositoryWithConfig

func NewNodeCPUUsagePercentageRepositoryWithConfig(cfg prometheus.Config) NodeCPUUsagePercentageRepository

NewNodeCPUUsagePercentageRepositoryWithConfig New node cpu usage percentage repository with prometheus configuration

func (NodeCPUUsagePercentageRepository) ListMetricsByNodeName

func (n NodeCPUUsagePercentageRepository) ListMetricsByNodeName(nodeName string, options ...Option) ([]prometheus.Entity, error)

ListMetricsByPodNamespacedName Provide metrics from response of querying request contain namespace, pod_name and default labels

type NodeMemoryBytesTotalRepository added in v0.3.8

type NodeMemoryBytesTotalRepository struct {
	PrometheusConfig prometheus.Config
}

NodeMemoryBytesTotalRepository Repository to access metric from prometheus

func NewNodeMemoryBytesTotalRepositoryWithConfig added in v0.3.8

func NewNodeMemoryBytesTotalRepositoryWithConfig(cfg prometheus.Config) NodeMemoryBytesTotalRepository

NewNodeMemoryBytesTotalRepositoryWithConfig New node cpu utilization percentage repository with prometheus configuration

func (NodeMemoryBytesTotalRepository) ListMetricsByNodeName added in v0.3.8

func (n NodeMemoryBytesTotalRepository) ListMetricsByNodeName(nodeName string, options ...Option) ([]prometheus.Entity, error)

type NodeMemoryUsageBytesRepository

type NodeMemoryUsageBytesRepository struct {
	PrometheusConfig prometheus.Config
}

NodeMemoryUsageBytesRepository Repository to access metric from prometheus

func NewNodeMemoryUsageBytesRepositoryWithConfig

func NewNodeMemoryUsageBytesRepositoryWithConfig(cfg prometheus.Config) NodeMemoryUsageBytesRepository

NewNodeMemoryUsageBytesRepositoryWithConfig New node cpu usage percentage repository with prometheus configuration

func (NodeMemoryUsageBytesRepository) ListMetricsByNodeName

func (n NodeMemoryUsageBytesRepository) ListMetricsByNodeName(nodeName string, options ...Option) ([]prometheus.Entity, error)

ListMetricsByNodeName Provide metrics from response of querying request contain namespace, pod_name and default labels

type NodeMemoryUtilizationRepository added in v0.3.8

type NodeMemoryUtilizationRepository struct {
	PrometheusConfig prometheus.Config
}

NodeMemoryUtilizationRepository Repository to access metric from prometheus

func NewNodeMemoryUtilizationRepositoryWithConfig added in v0.3.8

func NewNodeMemoryUtilizationRepositoryWithConfig(cfg prometheus.Config) NodeMemoryUtilizationRepository

NewNodeMemoryUtilizationRepositoryWithConfig New node cpu utilization percentage repository with prometheus configuration

func (NodeMemoryUtilizationRepository) ListMetricsByNodeName added in v0.3.8

func (n NodeMemoryUtilizationRepository) ListMetricsByNodeName(nodeName string, options ...Option) ([]prometheus.Entity, error)

ListMetricsByNodeName Provide metrics from response of querying request contain namespace, pod_name and default labels

type Option added in v0.3.8

type Option func(*Options)

func AggregateOverTimeFunction added in v0.3.8

func AggregateOverTimeFunction(f dao.AggregateFunction) Option

func EndTime added in v0.3.8

func EndTime(t *time.Time) Option

func StartTime added in v0.3.8

func StartTime(t *time.Time) Option

func StepDuration added in v0.3.8

func StepDuration(d *time.Duration) Option

type Options added in v0.3.8

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

type PodContainerCPUUsagePercentageRepository

type PodContainerCPUUsagePercentageRepository struct {
	PrometheusConfig prometheus.Config
}

PodContainerCPUUsagePercentageRepository Repository to access metric namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate from prometheus

func NewPodContainerCPUUsagePercentageRepositoryWithConfig

func NewPodContainerCPUUsagePercentageRepositoryWithConfig(cfg prometheus.Config) PodContainerCPUUsagePercentageRepository

NewPodContainerCPUUsagePercentageRepositoryWithConfig New pod container cpu usage percentage repository with prometheus configuration

func (PodContainerCPUUsagePercentageRepository) ListMetricsByPodNamespacedName

func (c PodContainerCPUUsagePercentageRepository) ListMetricsByPodNamespacedName(namespace string, podName string, options ...Option) ([]prometheus.Entity, error)

ListMetricsByPodNamespacedName Provide metrics from response of querying request contain namespace, pod_name and default labels

type PodContainerMemoryUsageBytesRepository

type PodContainerMemoryUsageBytesRepository struct {
	PrometheusConfig prometheus.Config
}

PodContainerMemoryUsageBytesRepository Repository to access metric container_memory_usage_bytes from prometheus

func NewPodContainerMemoryUsageBytesRepositoryWithConfig

func NewPodContainerMemoryUsageBytesRepositoryWithConfig(cfg prometheus.Config) PodContainerMemoryUsageBytesRepository

NewPodContainerMemoryUsageBytesRepositoryWithConfig New pod container memory usage bytes repository with prometheus configuration

func (PodContainerMemoryUsageBytesRepository) ListMetricsByPodNamespacedName

func (c PodContainerMemoryUsageBytesRepository) ListMetricsByPodNamespacedName(namespace string, podName string, options ...Option) ([]prometheus.Entity, error)

ListMetricsByPodNamespacedName Provide metrics from response of querying request contain namespace, pod_name and default labels

Jump to

Keyboard shortcuts

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