Documentation ¶
Index ¶
- Variables
- func ConvertLabels(point *rpc.Point) labels.Labels
- func DurationToSeconds(t time.Duration) float64
- func IsValidFloat(value float64) bool
- func MillisecondsToNanoseconds(ms int64) int64
- func MillisecondsToString(ms int64) string
- func MillisecondsToTime(ms int64) time.Time
- func NanosecondsToMilliseconds(ns int64) int64
- func SanitizeLabelName(name string) string
- func SanitizeMetricName(name string) string
- func SecondsToMilliseconds(s int64) int64
- func ToInfluxFilter(matcher *labels.Matcher) (*influxql.BinaryExpr, error)
- func ToInfluxFilters(matchers []*labels.Matcher) (influxql.Expr, error)
- func ToInfluxPoints(points []*rpc.Point) []models.Point
- type SeriesSetBuilder
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DurationToSeconds ¶ added in v1.2.1
func IsValidFloat ¶ added in v1.2.1
func MillisecondsToString ¶
func MillisecondsToTime ¶
func SanitizeLabelName ¶
PromQL Label Name Sanitization From: https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels First character: Match if it's NOT A-z or underscore [^A-z_] All others: Match if they're NOT alphanumeric or underscore [\w_]+?
func SanitizeMetricName ¶
PromQL Metric Name Sanitization https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels First character: Match if it's NOT A-z, underscore, or colon [^A-z_:] All others: Match if they're NOT alphanumeric, underscore, or colon [\w_:]+?
func SecondsToMilliseconds ¶
func ToInfluxFilter ¶
func ToInfluxFilter(matcher *labels.Matcher) (*influxql.BinaryExpr, error)
Types ¶
type SeriesSetBuilder ¶
func NewSeriesBuilder ¶
func NewSeriesBuilder() *SeriesSetBuilder
func (*SeriesSetBuilder) AddSeriesPoints ¶ added in v1.2.1
func (b *SeriesSetBuilder) AddSeriesPoints(seriesLabels labels.Labels, points []*query.FloatPoint)
func (*SeriesSetBuilder) Len ¶
func (b *SeriesSetBuilder) Len() int
func (*SeriesSetBuilder) SeriesSet ¶
func (b *SeriesSetBuilder) SeriesSet() storage.SeriesSet
Click to show internal directories.
Click to hide internal directories.