Documentation ¶
Index ¶
- Constants
- type PrometheusService
- func (p PrometheusService) GetMetadata(namespace string) []dto.Metadata
- func (p PrometheusService) GetMetricLabelSet(expr string, start, end time.Time) []map[string]string
- func (p PrometheusService) GetNamedMetrics(metrics []string, ts time.Time, opts *dto.QueryOptions) []dto.Metric
- func (p PrometheusService) GetNamedMetricsOverTime(opts *dto.QueryOptions) []dto.Metric
Constants ¶
View Source
const MeteringDefaultTimeout = 20 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusService ¶
type PrometheusService struct {
// contains filtered or unexported fields
}
func NewPrometheusService ¶
func NewPrometheusService(Endpoint string) (PrometheusService, error)
func (PrometheusService) GetMetadata ¶
func (p PrometheusService) GetMetadata(namespace string) []dto.Metadata
func (PrometheusService) GetMetricLabelSet ¶
func (PrometheusService) GetNamedMetrics ¶
func (p PrometheusService) GetNamedMetrics(metrics []string, ts time.Time, opts *dto.QueryOptions) []dto.Metric
func (PrometheusService) GetNamedMetricsOverTime ¶
func (p PrometheusService) GetNamedMetricsOverTime(opts *dto.QueryOptions) []dto.Metric
Click to show internal directories.
Click to hide internal directories.