Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticsearchMetricsClient ¶
type ElasticsearchMetricsClient struct {
// contains filtered or unexported fields
}
func NewElasticsearchMetricsClient ¶
func NewElasticsearchMetricsClient(address string, conf map[string]string) (*ElasticsearchMetricsClient, error)
func (*ElasticsearchMetricsClient) NodeMetricsAvg ¶
func (e *ElasticsearchMetricsClient) NodeMetricsAvg(ctx context.Context, nodeName string, period string) (*NodeMetrics, error)
type MetricsClient ¶
type MetricsClient interface {
NodeMetricsAvg(ctx context.Context, nodeName string, period string) (*NodeMetrics, error)
}
func NewMetricsClient ¶
func NewMetricsClient(metricsConf map[string]string) (MetricsClient, error)
type NodeMetrics ¶
type PrometheusMetricsClient ¶
type PrometheusMetricsClient struct {
// contains filtered or unexported fields
}
func NewPrometheusMetricsClient ¶
func NewPrometheusMetricsClient(address string, conf map[string]string) (*PrometheusMetricsClient, error)
func (*PrometheusMetricsClient) NodeMetricsAvg ¶
func (p *PrometheusMetricsClient) NodeMetricsAvg(ctx context.Context, nodeName string, period string) (*NodeMetrics, error)
Click to show internal directories.
Click to hide internal directories.