metrics

package
v4.2.512+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 7 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 InternalPromth.Config
}

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

func NewNodeCpuUsagePercentageRepositoryWithConfig

func NewNodeCpuUsagePercentageRepositoryWithConfig(cfg InternalPromth.Config) NodeCpuUsagePercentageRepository

NewNodeCPUUsagePercentageRepositoryWithConfig New node cpu usage percentage repository with prometheus configuration

func (NodeCpuUsagePercentageRepository) ListMetricsByNodeName

func (n NodeCpuUsagePercentageRepository) ListMetricsByNodeName(nodeName string, options ...DBCommon.Option) ([]InternalPromth.Entity, error)

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

type NodeMemoryBytesTotalRepository

type NodeMemoryBytesTotalRepository struct {
	PrometheusConfig InternalPromth.Config
}

NodeMemoryBytesTotalRepository Repository to access metric from prometheus

func NewNodeMemoryBytesTotalRepositoryWithConfig

func NewNodeMemoryBytesTotalRepositoryWithConfig(cfg InternalPromth.Config) NodeMemoryBytesTotalRepository

NewNodeMemoryBytesTotalRepositoryWithConfig New node cpu utilization percentage repository with prometheus configuration

func (NodeMemoryBytesTotalRepository) ListMetricsByNodeName

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

type NodeMemoryBytesUsageRepository

type NodeMemoryBytesUsageRepository struct {
	PrometheusConfig InternalPromth.Config
}

NodeMemoryUsageBytesRepository Repository to access metric from prometheus

func NewNodeMemoryBytesUsageRepositoryWithConfig

func NewNodeMemoryBytesUsageRepositoryWithConfig(cfg InternalPromth.Config) NodeMemoryBytesUsageRepository

NewNodeMemoryUsageBytesRepositoryWithConfig New node cpu usage percentage repository with prometheus configuration

func (NodeMemoryBytesUsageRepository) ListMetricsByNodeName

func (n NodeMemoryBytesUsageRepository) ListMetricsByNodeName(nodeName string, options ...DBCommon.Option) ([]InternalPromth.Entity, error)

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

type NodeMemoryUtilizationRepository

type NodeMemoryUtilizationRepository struct {
	PrometheusConfig InternalPromth.Config
}

NodeMemoryUtilizationRepository Repository to access metric from prometheus

func NewNodeMemoryUtilizationRepositoryWithConfig

func NewNodeMemoryUtilizationRepositoryWithConfig(cfg InternalPromth.Config) NodeMemoryUtilizationRepository

NewNodeMemoryUtilizationRepositoryWithConfig New node cpu utilization percentage repository with prometheus configuration

func (NodeMemoryUtilizationRepository) ListMetricsByNodeName

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

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

type PodContainerCpuUsagePercentageRepository

type PodContainerCpuUsagePercentageRepository struct {
	PrometheusConfig InternalPromth.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 InternalPromth.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 ...DBCommon.Option) ([]InternalPromth.Entity, error)

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

type PodContainerMemoryUsageBytesRepository

type PodContainerMemoryUsageBytesRepository struct {
	PrometheusConfig InternalPromth.Config
}

PodContainerMemoryUsageBytesRepository Repository to access metric container_memory_usage_bytes from prometheus

func NewPodContainerMemoryUsageBytesRepositoryWithConfig

func NewPodContainerMemoryUsageBytesRepositoryWithConfig(cfg InternalPromth.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 ...DBCommon.Option) ([]InternalPromth.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