Documentation
¶
Index ¶
- Variables
- func RunSpaceManagerForProjects(ctx context.Context, cfg config.ClickHouseSpaceManager, projects []*db.Project, ...) error
- type Client
- func (c *Client) Close() error
- func (c *Client) GetDiskInfo(ctx context.Context) ([]DiskInfo, error)
- func (c *Client) GetInboundSpans(ctx context.Context, q SpanQuery, clients []string, listens []model.Listen) ([]*model.TraceSpan, error)
- func (c *Client) GetInboundSpansHistogram(ctx context.Context, q SpanQuery, clients []string, listens []model.Listen) ([]model.HistogramBucket, error)
- func (c *Client) GetKubernetesEvents(ctx context.Context, from, to timeseries.Time, limit int) ([]*model.LogEntry, error)
- func (c *Client) GetLogFilters(ctx context.Context, query LogQuery, name string) ([]string, error)
- func (c *Client) GetLogs(ctx context.Context, query LogQuery) ([]*model.LogEntry, error)
- func (c *Client) GetLogsHistogram(ctx context.Context, query LogQuery) ([]model.LogHistogramBucket, error)
- func (c *Client) GetParentSpans(ctx context.Context, spans []*model.TraceSpan) ([]*model.TraceSpan, error)
- func (c *Client) GetProfile(ctx context.Context, q ProfileQuery) (*model.FlameGraphNode, error)
- func (c *Client) GetProfileTypes(ctx context.Context, from timeseries.Time) (map[string][]model.ProfileType, error)
- func (c *Client) GetRootSpans(ctx context.Context, q SpanQuery) ([]*model.TraceSpan, error)
- func (c *Client) GetRootSpansHistogram(ctx context.Context, q SpanQuery) ([]model.HistogramBucket, error)
- func (c *Client) GetSelectionAndBaselineTraces(ctx context.Context, q SpanQuery) ([]*model.Trace, []*model.Trace, error)
- func (c *Client) GetServicesFromLogs(ctx context.Context, from timeseries.Time) ([]string, error)
- func (c *Client) GetServicesFromTraces(ctx context.Context, from timeseries.Time) ([]string, error)
- func (c *Client) GetSpansByServiceName(ctx context.Context, q SpanQuery) ([]*model.TraceSpan, error)
- func (c *Client) GetSpansByServiceNameHistogram(ctx context.Context, q SpanQuery) ([]model.HistogramBucket, error)
- func (c *Client) GetSpansByTraceId(ctx context.Context, traceId string) ([]*model.TraceSpan, error)
- func (c *Client) GetTableSizes(ctx context.Context) ([]TableInfo, error)
- func (c *Client) GetTraceErrors(ctx context.Context, q SpanQuery) (map[model.TraceSpanKey]*model.TraceErrorsStat, error)
- func (c *Client) GetTraceSpanStats(ctx context.Context, q SpanQuery) (map[model.TraceSpanKey]*model.TraceSpanStats, error)
- func (c *Client) GetTracesViolatingSLOs(ctx context.Context, from, to timeseries.Time, world *model.World, ...) (*model.Trace, *model.Trace, error)
- func (c *Client) IsCloud(ctx context.Context) (bool, error)
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) Project() *db.Project
- func (c *Client) Query(ctx context.Context, query string, args ...interface{}) (driver.Rows, error)
- func (c *Client) QueryRow(ctx context.Context, query string, args ...interface{}) driver.Row
- type Clients
- type ClusterInfo
- type ClusterNode
- type DiskInfo
- type LogFilter
- type LogQuery
- type PartitionInfo
- type ProfileQuery
- type ServerDiskInfo
- type ServerResult
- type SpaceManager
- type SpanFilter
- type SpanQuery
- func (q *SpanQuery) AddFilter(field, op, value string)
- func (q *SpanQuery) DurationFilter() (string, []any)
- func (q *SpanQuery) Filter() ([]string, []any)
- func (q *SpanQuery) IsSelectionDefined() bool
- func (q *SpanQuery) RootSpansFilter() ([]string, []any)
- func (q *SpanQuery) SpansByServiceNameFilter() ([]string, []any)
- type TableInfo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RunSpaceManagerForProjects ¶ added in v1.13.0
func RunSpaceManagerForProjects(ctx context.Context, cfg config.ClickHouseSpaceManager, projects []*db.Project, globalClickHouse *db.IntegrationClickhouse) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *db.IntegrationClickhouse, chInfo ch.ClickHouseInfo, project *db.Project) (*Client, error)
func (*Client) GetDiskInfo ¶ added in v1.13.0
func (*Client) GetInboundSpans ¶
func (*Client) GetInboundSpansHistogram ¶ added in v0.29.4
func (*Client) GetKubernetesEvents ¶ added in v1.14.0
func (*Client) GetLogFilters ¶ added in v1.11.0
func (*Client) GetLogsHistogram ¶ added in v1.11.0
func (*Client) GetParentSpans ¶
func (*Client) GetProfile ¶
func (c *Client) GetProfile(ctx context.Context, q ProfileQuery) (*model.FlameGraphNode, error)
func (*Client) GetProfileTypes ¶
func (c *Client) GetProfileTypes(ctx context.Context, from timeseries.Time) (map[string][]model.ProfileType, error)
func (*Client) GetRootSpans ¶ added in v1.0.0
func (*Client) GetRootSpansHistogram ¶ added in v1.0.0
func (*Client) GetSelectionAndBaselineTraces ¶ added in v1.17.0
func (*Client) GetServicesFromLogs ¶
func (*Client) GetServicesFromTraces ¶
func (*Client) GetSpansByServiceName ¶
func (*Client) GetSpansByServiceNameHistogram ¶ added in v0.29.4
func (*Client) GetSpansByTraceId ¶
func (*Client) GetTableSizes ¶ added in v1.13.0
func (*Client) GetTraceErrors ¶ added in v1.0.0
func (c *Client) GetTraceErrors(ctx context.Context, q SpanQuery) (map[model.TraceSpanKey]*model.TraceErrorsStat, error)
func (*Client) GetTraceSpanStats ¶ added in v1.17.0
func (c *Client) GetTraceSpanStats(ctx context.Context, q SpanQuery) (map[model.TraceSpanKey]*model.TraceSpanStats, error)
func (*Client) GetTracesViolatingSLOs ¶ added in v1.14.3
type ClusterInfo ¶ added in v1.13.0
type ClusterInfo struct {
Topology []ClusterNode `json:"topology,omitempty"`
TableSizes []TableInfo `json:"table_sizes,omitempty"`
ServerDisks []ServerDiskInfo `json:"server_disks,omitempty"`
}
func GetClusterInfo ¶ added in v1.13.0
func GetClusterInfo(ctx context.Context, cfg *db.IntegrationClickhouse, info ch.ClickHouseInfo, project *db.Project) (*ClusterInfo, error)
type ClusterNode ¶ added in v1.13.0
type LogFilter ¶ added in v1.11.0
type PartitionInfo ¶ added in v1.13.0
type ProfileQuery ¶ added in v1.6.6
type ProfileQuery struct {
Type model.ProfileType
From timeseries.Time
To timeseries.Time
Diff bool
Services []string
Containers []string
Namespace string
Pod string
}
type ServerDiskInfo ¶ added in v1.13.0
type ServerResult ¶ added in v1.13.0
type SpaceManager ¶ added in v1.13.0
type SpaceManager struct {
// contains filtered or unexported fields
}
func (*SpaceManager) CheckAndCleanup ¶ added in v1.13.0
type SpanFilter ¶ added in v1.0.6
type SpanQuery ¶ added in v1.0.0
type SpanQuery struct {
Ctx timeseries.Context
TsFrom timeseries.Time
TsTo timeseries.Time
DurFrom time.Duration
DurTo time.Duration
Errors bool
Limit int
Filters []SpanFilter
ExcludePeerAddrs []string
Diff bool
}
func (*SpanQuery) DurationFilter ¶ added in v1.0.0
func (*SpanQuery) IsSelectionDefined ¶ added in v1.0.0
func (*SpanQuery) RootSpansFilter ¶ added in v1.0.0
func (*SpanQuery) SpansByServiceNameFilter ¶ added in v1.0.0
type TableInfo ¶ added in v1.13.0
type TableInfo struct {
Database string `json:"database"`
Table string `json:"table"`
BytesOnDisk uint64 `json:"bytes_on_disk"`
DataUncompressedBytes uint64 `json:"data_uncompressed_bytes"`
CompressionRatio float64 `json:"compression_ratio"`
TTLInfo string `json:"ttl_info,omitempty"`
TTLSeconds *uint64 `json:"ttl_seconds,omitempty"`
DataSince *time.Time `json:"data_since,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.