prometheus

package
v4.2.716+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

type ClusterMetrics

type ClusterMetrics struct {
	PrometheusConfig InternalPromth.Config
	// contains filtered or unexported fields
}

func (ClusterMetrics) CreateMetrics

type ControllerMetrics

type ControllerMetrics struct {
	PrometheusConfig InternalPromth.Config
	// contains filtered or unexported fields
}

func (ControllerMetrics) CreateMetrics

func (ControllerMetrics) ListMetrics

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

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

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

ListMetrics Method implementation of PodMetricsDAO

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL