Documentation ¶
Index ¶
- func NewAppMetricsWithConfig(config InternalPromth.Config, appDAO DaoClusterStatusTypes.ApplicationDAO, ...) DaoMetricTypes.AppMetricsDAO
- func NewClusterMetricsWithConfig(config InternalPromth.Config, ...) DaoMetricTypes.ClusterMetricsDAO
- func NewControllerMetricsWithConfig(promCfg InternalPromth.Config, ...) DaoMetricTypes.ControllerMetricsDAO
- func NewNamespaceMetricsWithConfig(config InternalPromth.Config, namespaceDAO DaoClusterStatusTypes.NamespaceDAO, ...) DaoMetricTypes.NamespaceMetricsDAO
- func NewNodeMetricsWithConfig(config InternalPromth.Config, nodeDAO DaoClusterStatusTypes.NodeDAO, ...) DaoMetricTypes.NodeMetricsDAO
- func NewPodMetricsWithConfig(config InternalPromth.Config, podDAO DaoClusterStatusTypes.PodDAO, ...) DaoMetricTypes.PodMetricsDAO
- type AppMetrics
- type ClusterMetrics
- type ControllerMetrics
- type NamespaceMetrics
- type NodeMetrics
- type PodMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppMetricsWithConfig ¶
func NewAppMetricsWithConfig(config InternalPromth.Config, appDAO DaoClusterStatusTypes.ApplicationDAO, clusterUID string) DaoMetricTypes.AppMetricsDAO
NewAppMetricsWithConfig Constructor of prometheus app metric dao
func NewClusterMetricsWithConfig ¶
func NewClusterMetricsWithConfig(config InternalPromth.Config, clusterStatusDAO DaoClusterStatusTypes.ClusterDAO, nodeDAO DaoClusterStatusTypes.NodeDAO, clusterUID string) DaoMetricTypes.ClusterMetricsDAO
NewClusterMetricsWithConfig Constructor of prometheus namespace metric dao
func NewControllerMetricsWithConfig ¶
func NewControllerMetricsWithConfig(promCfg InternalPromth.Config, controllerDAO DaoClusterStatusTypes.ControllerDAO, clusterUID string) DaoMetricTypes.ControllerMetricsDAO
NewControllerMetricsWithConfig Constructor of prometheus controller metric dao
func NewNamespaceMetricsWithConfig ¶
func NewNamespaceMetricsWithConfig(config InternalPromth.Config, namespaceDAO DaoClusterStatusTypes.NamespaceDAO, clusterUID string) DaoMetricTypes.NamespaceMetricsDAO
NewNamespaceMetricsWithConfig Constructor of prometheus namespace metric dao
func NewNodeMetricsWithConfig ¶
func NewNodeMetricsWithConfig(config InternalPromth.Config, nodeDAO DaoClusterStatusTypes.NodeDAO, clusterUID string) DaoMetricTypes.NodeMetricsDAO
NewNodeMetricsWithConfig Constructor of prometheus node metric dao
func NewPodMetricsWithConfig ¶
func NewPodMetricsWithConfig(config InternalPromth.Config, podDAO DaoClusterStatusTypes.PodDAO, clusterUID string) DaoMetricTypes.PodMetricsDAO
NewPodMetricsWithConfig Constructor of prometheus pod metric dao
Types ¶
type AppMetrics ¶
type AppMetrics struct { PrometheusConfig InternalPromth.Config // contains filtered or unexported fields }
func (AppMetrics) CreateMetrics ¶
func (p AppMetrics) CreateMetrics(ctx context.Context, m DaoMetricTypes.AppMetricMap) error
func (AppMetrics) ListMetrics ¶
func (p AppMetrics) ListMetrics(ctx context.Context, req DaoMetricTypes.ListAppMetricsRequest) (DaoMetricTypes.AppMetricMap, error)
type ClusterMetrics ¶
type ClusterMetrics struct { PrometheusConfig InternalPromth.Config // contains filtered or unexported fields }
func (ClusterMetrics) CreateMetrics ¶
func (p ClusterMetrics) CreateMetrics(ctx context.Context, m DaoMetricTypes.ClusterMetricMap) error
func (ClusterMetrics) ListMetrics ¶
func (p ClusterMetrics) ListMetrics(ctx context.Context, req DaoMetricTypes.ListClusterMetricsRequest) (DaoMetricTypes.ClusterMetricMap, error)
type ControllerMetrics ¶
type ControllerMetrics struct { PrometheusConfig InternalPromth.Config // contains filtered or unexported fields }
func (ControllerMetrics) CreateMetrics ¶
func (p ControllerMetrics) CreateMetrics(ctx context.Context, m DaoMetricTypes.ControllerMetricMap) error
func (ControllerMetrics) ListMetrics ¶
func (p ControllerMetrics) ListMetrics(ctx context.Context, req DaoMetricTypes.ListControllerMetricsRequest) (DaoMetricTypes.ControllerMetricMap, error)
ListMetrics returns controller metrics, if length of req.ControllerObjectMetas equals 0, fetch all kinds of controller metrics in the cluster otherwise listing controller metadatas by function listControllerMetasFromRequest and fetching the returned controllers' metrics.
type NamespaceMetrics ¶
type NamespaceMetrics struct { PrometheusConfig InternalPromth.Config // contains filtered or unexported fields }
func (NamespaceMetrics) CreateMetrics ¶
func (p NamespaceMetrics) CreateMetrics(ctx context.Context, m DaoMetricTypes.NamespaceMetricMap) error
func (NamespaceMetrics) ListMetrics ¶
func (p NamespaceMetrics) ListMetrics(ctx context.Context, req DaoMetricTypes.ListNamespaceMetricsRequest) (DaoMetricTypes.NamespaceMetricMap, error)
type NodeMetrics ¶
type NodeMetrics struct { PrometheusConfig InternalPromth.Config // contains filtered or unexported fields }
func (*NodeMetrics) CreateMetrics ¶
func (p *NodeMetrics) CreateMetrics(ctx context.Context, metrics DaoMetricTypes.NodeMetricMap) error
CreateMetrics Method implementation of NodeMetricsDAO
func (*NodeMetrics) ListMetrics ¶
func (p *NodeMetrics) ListMetrics(ctx context.Context, req DaoMetricTypes.ListNodeMetricsRequest) (DaoMetricTypes.NodeMetricMap, error)
ListMetrics Method implementation of NodeMetricsDAO
type PodMetrics ¶
type PodMetrics struct { PrometheusConfig InternalPromth.Config // contains filtered or unexported fields }
func (*PodMetrics) CreateMetrics ¶
func (p *PodMetrics) CreateMetrics(ctx context.Context, metrics DaoMetricTypes.PodMetricMap) error
CreateMetrics Method implementation of PodMetricsDAO
func (*PodMetrics) ListMetrics ¶
func (p *PodMetrics) ListMetrics(ctx context.Context, req DaoMetricTypes.ListPodMetricsRequest) (DaoMetricTypes.PodMetricMap, error)
ListMetrics Method implementation of PodMetricsDAO