Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultPrometheusClientFactory(p *db.Project) (*prom.Client, error)
- func QueryId(projectId db.ProjectId, query string) (string, timeseries.Duration)
- type Cache
- type Client
- type CompactionConfig
- type CompactionTask
- type Compactor
- type Config
- type GcConfig
- type PrometheusClientFactory
- type PrometheusQueryState
- type Status
Constants ¶
View Source
const ( QueryConcurrency = 10 BackFillInterval = 4 * timeseries.Hour MinRefreshInterval = timeseries.Minute )
Variables ¶
View Source
var DefaultCompactionConfig = CompactionConfig{ Interval: time.Second * 10, WorkersNum: 1, Compactors: []Compactor{ {SrcChunkDuration: 3600, DstChunkDuration: 4 * 3600}, {SrcChunkDuration: 4 * 3600, DstChunkDuration: 12 * 3600}, }, }
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetStep ¶ added in v0.17.7
func (c *Client) GetStep(from, to timeseries.Time) (timeseries.Duration, error)
func (*Client) QueryRange ¶
func (c *Client) QueryRange(ctx context.Context, query string, from, to timeseries.Time, step timeseries.Duration) ([]model.MetricValues, error)
type CompactionConfig ¶
type CompactionTask ¶
type CompactionTask struct {
// contains filtered or unexported fields
}
func (CompactionTask) String ¶
func (ct CompactionTask) String() string
type Compactor ¶
type Compactor struct { SrcChunkDuration timeseries.Duration `yaml:"src_chunk_duration_seconds"` DstChunkDuration timeseries.Duration `yaml:"dst_chunk_duration_seconds"` }
type Config ¶
type Config struct { Path string GC *GcConfig Compaction *CompactionConfig }
type PrometheusClientFactory ¶
type PrometheusQueryState ¶
type Status ¶
type Status struct { Error string LagMax timeseries.Duration LagAvg timeseries.Duration }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.