Documentation
¶
Index ¶
- func Run(cfg Config) error
- type CHQuerier
- func (q *CHQuerier) Close() error
- func (q *CHQuerier) LabelNames(ctx context.Context, hints *storage.LabelHints, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)
- func (q *CHQuerier) LabelValues(ctx context.Context, name string, hints *storage.LabelHints, ...) ([]string, annotations.Annotations, error)
- func (q *CHQuerier) Select(ctx context.Context, sortSeries bool, hints *storage.SelectHints, ...) storage.SeriesSet
- type CHQueryable
- type ClickHouseClient
- func (c *ClickHouseClient) Exec(ctx context.Context, sql string) error
- func (c *ClickHouseClient) InsertColumns(ctx context.Context, sql string, ...) error
- func (c *ClickHouseClient) InsertColumnsSync(ctx context.Context, sql string, ...) error
- func (c *ClickHouseClient) Ping(ctx context.Context) error
- func (c *ClickHouseClient) QueryRows(ctx context.Context, sql string, handle func(clickHouseRow) error) error
- func (c *ClickHouseClient) QueryRowsWithExternalUInt64s(ctx context.Context, table, column string, values []uint64, sql string, ...) error
- type Config
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CHQuerier ¶
type CHQuerier struct {
// contains filtered or unexported fields
}
func (*CHQuerier) LabelNames ¶
func (q *CHQuerier) LabelNames(ctx context.Context, hints *storage.LabelHints, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)
func (*CHQuerier) LabelValues ¶
func (q *CHQuerier) LabelValues(ctx context.Context, name string, hints *storage.LabelHints, matchers ...*labels.Matcher) ([]string, annotations.Annotations, error)
type CHQueryable ¶
type CHQueryable struct {
// contains filtered or unexported fields
}
func NewCHQueryable ¶
func NewCHQueryable(client *ClickHouseClient, cfg Config) *CHQueryable
type ClickHouseClient ¶
type ClickHouseClient struct {
// contains filtered or unexported fields
}
func NewClickHouseClient ¶
func NewClickHouseClient(cfg Config, metrics ...*bridgeMetrics) *ClickHouseClient
func (*ClickHouseClient) Exec ¶
func (c *ClickHouseClient) Exec(ctx context.Context, sql string) error
func (*ClickHouseClient) InsertColumns ¶
func (*ClickHouseClient) InsertColumnsSync ¶
func (*ClickHouseClient) QueryRowsWithExternalUInt64s ¶
type Config ¶
type Config struct {
CHAddr string
CHUser string
CHPassword string
AllowUnauthenticated bool
CHDatabase string
SchemaLayout string
SeriesTable string
SamplesTable string
LabelIndexTable string
AttributeTable string
MetricNamesTable string
// AttributeTableHasMetricName allows filtered label discovery to read the
// attribute table. The legacy metric_attributes2 table has no metric_name.
AttributeTableHasMetricName bool
LabelPostingsTable string
ActivityTable string
MetricsTable string
MetricsInputTable string
LogSchemaLayout string
LogsTable string
LogStreamsTable string
LogStreamLabelsTable string
LogAttributesTable string
LogStreamStatsTable string
HistogramsTable string
ExemplarsTable string
HTTPHost string
HTTPPort string
TLSEnabled bool
TLSCertFile string
TLSKeyFile string
CHTimeout time.Duration
CHCompression string
QueryTimeout time.Duration
LookbackDelta time.Duration
MaxSamples int
MaxSeries int
IDChunkSize int
AggregateThreads int
RangePushdown bool
RangeQueryThreads int
RangePushdownMaxExpansion int
RemoteWriteInterval time.Duration
SampleAttributes bool
TeamID uint64
DefaultTeamID uint64
TeamHeader string
TeamQueryParam string
QueryTagsHeader string
Pprof bool
PostHogCompactHistograms bool
SelfScrapeEnabled bool
SelfScrapeInterval time.Duration
SelfScrapeTeamID uint64
SelfScrapeJob string
SelfScrapeInstance string
LogRetention time.Duration
LogQueryMaxRows int
MetricsRetention time.Duration
}
func ConfigFromEnv ¶
func ConfigFromEnv() Config
Source Files
¶
- api.go
- clickhouse.go
- config.go
- fastpath.go
- fastpath_range.go
- fastpath_range_native.go
- logging.go
- logql.go
- logql_sql.go
- loki_api.go
- metrics.go
- metricsql_compat.go
- metricsql_statistics.go
- posthog_histogram.go
- posthog_histogram_compact.go
- posthog_histogram_decode.go
- posthog_storage.go
- query_tags.go
- remote.go
- remote_fast.go
- sample_predicates.go
- schema_layout.go
- staleness.go
- storage.go
- tls.go
Click to show internal directories.
Click to hide internal directories.