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 ¶ added in v0.3.8
type NodeMemoryBytesTotalRepository struct {
PrometheusConfig InternalPromth.Config
}
NodeMemoryBytesTotalRepository Repository to access metric from prometheus
func NewNodeMemoryBytesTotalRepositoryWithConfig ¶ added in v0.3.8
func NewNodeMemoryBytesTotalRepositoryWithConfig(cfg InternalPromth.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 ...DBCommon.Option) ([]InternalPromth.Entity, error)
type NodeMemoryUsageBytesRepository ¶
type NodeMemoryUsageBytesRepository struct {
PrometheusConfig InternalPromth.Config
}
NodeMemoryUsageBytesRepository Repository to access metric from prometheus
func NewNodeMemoryUsageBytesRepositoryWithConfig ¶
func NewNodeMemoryUsageBytesRepositoryWithConfig(cfg InternalPromth.Config) NodeMemoryUsageBytesRepository
NewNodeMemoryUsageBytesRepositoryWithConfig New node cpu usage percentage repository with prometheus configuration
func (NodeMemoryUsageBytesRepository) ListMetricsByNodeName ¶
func (n NodeMemoryUsageBytesRepository) 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 ¶ added in v0.3.8
type NodeMemoryUtilizationRepository struct {
PrometheusConfig InternalPromth.Config
}
NodeMemoryUtilizationRepository Repository to access metric from prometheus
func NewNodeMemoryUtilizationRepositoryWithConfig ¶ added in v0.3.8
func NewNodeMemoryUtilizationRepositoryWithConfig(cfg InternalPromth.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 ...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