prometheus

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package prometheus contains the implementation of Prometheus (monitoring system and time series database) based data source

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyTimeSeries = errors.New("empty time series")
)

Functions

Types

type CloseFunc

type CloseFunc func()

type PromQLBuilder

type PromQLBuilder struct {
	// contains filtered or unexported fields
}

func NewPromQLBuilder

func NewPromQLBuilder(logger *zap.Logger) PromQLBuilder

func (PromQLBuilder) From

func (p PromQLBuilder) From(from string) PromQLBuilder

func (PromQLBuilder) ToQuery

func (p PromQLBuilder) ToQuery() (*prompb.Query, error)

func (PromQLBuilder) WithEndTime

func (p PromQLBuilder) WithEndTime(end time.Time) PromQLBuilder

func (PromQLBuilder) WithStartTime

func (p PromQLBuilder) WithStartTime(start time.Time) PromQLBuilder

func (PromQLBuilder) WithYdbWhere

type ReadClient

type ReadClient struct {
	// contains filtered or unexported fields
}

func (*ReadClient) Read

func (rc *ReadClient) Read(ctx context.Context, pbQuery *prompb.Query) (storage.SeriesSet, CloseFunc, error)

func (*ReadClient) Schema

func (rc *ReadClient) Schema(ctx context.Context, metric string) ([]*Ydb.Column, error)

Directories

Path Synopsis
analysis
bench command

Jump to

Keyboard shortcuts

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