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, startTime, endTime *time.Time, stepTime *time.Duration) ([]prometheus.Entity, error)
ListMetricsByPodNamespacedName Provide metrics from response of querying request contain namespace, pod_name and default labels
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, startTime, endTime *time.Time, stepTime *time.Duration) ([]prometheus.Entity, error)
ListMetricsByPodNamespacedName Provide metrics from response of querying request contain namespace, pod_name and default labels
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, startTime, endTime *time.Time, stepTime *time.Duration) ([]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, startTime, endTime *time.Time, stepTime *time.Duration) ([]prometheus.Entity, error)
ListMetricsByPodNamespacedName Provide metrics from response of querying request contain namespace, pod_name and default labels