Documentation
¶
Index ¶
Constants ¶
View Source
const ( CACHE_LABEL_STRING_TAG = "__cache_label_string__" PROMETHEUS_LABELS_INDEX = "__labels_index__" )
Variables ¶
View Source
var MatrixCallFunctions = []string{"topk", "bottomk",
"avg_over_time", "count_over_time", "last_over_time", "max_over_time", "min_over_time", "stddev_over_time", "sum_over_time", "present_over_time", "quantile_over_time",
"idelta", "delta", "increase", "irate", "rate"}
View Source
var RelabelFunctions = []string{"sum", "avg", "count", "min", "max", "group", "stddev", "stdvar", "count_values", "quantile"}
Functions ¶
This section is empty.
Types ¶
type DeepFlowPromRequest ¶
type PromMetaParams ¶
type PromQueryData ¶
type PromQueryParams ¶
type PromQueryResponse ¶
type PromQueryResponse struct {
Status string `json:"status"`
Data interface{} `json:"data,omitempty"`
ErrorType errorType `json:"errorType,omitempty"`
Error string `json:"error,omitempty"`
Stats []PromQueryStats `json:"stats,omitempty"`
}
type PromQueryStats ¶
type PromQueryWrapper ¶
type Querierable ¶
type QueryRequest ¶
type QueryRequest interface {
// GetStart returns the start timestamp of query, unit: ms
GetStart() int64
// GetEnd returns the end timestamp of query, unit: ms
GetEnd() int64
// GetStep returns the query step of range-query
GetStep() int64
// GetFunc returns the query aggregation functions of query
GetFunc() []string
// GetGrouping returns the group labels for query functions of query
GetGrouping(f string) []string
// GetBy returns the group way for group labels of query
GetBy() bool
// GetQuery returns the whole query promql of query
GetQuery() string
// GetMetric returns the metric name of query
GetMetric() string
// GetLables returns query labels of query
GetLabels() []*labels.Matcher
// GetRange returns the range of query function
GetRange(f string) int64
// GetFuncParam returns query params of query function, only for 'topk'/'quantile'/'bottomk'
GetFuncParam(f string) float64
// GetSubStep returns query step in subQuery, like [15m:1m], get `1m` (60000ms) from this
GetSubStep(f string) int64
}
type WrapHistorySeries ¶
Click to show internal directories.
Click to hide internal directories.