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 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 ¶ 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