Documentation
¶
Index ¶
- Constants
- type App
- func (a *App) ApplyCLIParameters(c *types.CLI, commandName string)
- func (a *App) ApplyPredefinedRange(rangeOption string)
- func (a *App) ExecuteAndProcessSparklineQuery(query string, prefix string, fields []string, ...) error
- func (a *App) GenerateSparkline(values []float64) string
- func (a *App) GetContextList() string
- func (a *App) Run() error
- func (a *App) SetCategory(category string)
- func (a *App) SetCluster(cluster string)
- func (a *App) SetConnectByName(contextName string) bool
- func (a *App) SetFromTime(t time.Time)
- func (a *App) SetMetric(metric string)
- func (a *App) SetToTime(t time.Time)
- func (a *App) ShowAsynchronousMetricLog(fromTime, toTime time.Time, cluster string)
- func (a *App) ShowAudit()
- func (a *App) ShowDescription(name, description string)
- func (a *App) ShowExplain(categoryType CategoryType, categoryValue string, fromTime, toTime time.Time, ...)
- func (a *App) ShowExplainQuerySelectionForm(fromTime, toTime time.Time, cluster string)
- func (a *App) ShowExplainQuerySelectionFormWithPrefill(prefillHash string, fromTime, toTime time.Time, cluster string)
- func (a *App) ShowFlamegraphForm(params ...FlamegraphParams)
- func (a *App) ShowHeatmap()
- func (a *App) ShowMemory()
- func (a *App) ShowMetricLog(fromTime, toTime time.Time, cluster string)
- func (a *App) ShowProfileEvents(categoryType CategoryType, categoryValue string, fromTime, toTime time.Time, ...)
- func (a *App) SwitchToMainPage(mainMsg string)
- type AuditPanel
- type AuditResult
- type CategoryType
- type FlamegraphParams
- type HeatmapMetric
- type LogEntry
- type LogFilter
- type LogPanel
- type ScaleType
- type TraceType
Constants ¶
const ( CmdHelp = "help" CmdConnect = "connect" CmdQuit = "quit" CmdFlamegraph = "flamegraph" CmdExplain = "explain" CmdFrom = "from" CmdTo = "to" CmdRange = "range" CmdCluster = "cluster" CmdHeatmap = "heatmap" CmdCategory = "categoryType" CmdMetric = "heatmapMetric" CmdScale = "scale" CmdProfileEvents = "profile_events" CmdMetricLog = "metric_log" CmdAsyncMetricLog = "asynchronous_metric_log" CmdLogs = "logs" CmdMemory = "memory" CmdAudit = "audit" )
Available commands
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
func (*App) ApplyPredefinedRange ¶
func (*App) ExecuteAndProcessSparklineQuery ¶
func (*App) GenerateSparkline ¶
func (*App) GetContextList ¶
func (*App) SetCategory ¶
func (*App) SetCluster ¶
func (*App) SetConnectByName ¶
func (*App) SetFromTime ¶
func (*App) ShowAsynchronousMetricLog ¶
func (*App) ShowDescription ¶
func (*App) ShowExplain ¶ added in v0.0.2
func (a *App) ShowExplain(categoryType CategoryType, categoryValue string, fromTime, toTime time.Time, cluster string)
ShowExplain is the entry point for the explain flow. If categoryType == CategoryQueryHash (called from heatmap) we'll pre-fill the normalized hash. Otherwise, the selection form will be shown.
func (*App) ShowExplainQuerySelectionForm ¶ added in v0.0.2
ShowExplainQuerySelectionForm shows the form allowing to filter queries by normalized hash, tables and query_kind.
func (*App) ShowExplainQuerySelectionFormWithPrefill ¶ added in v0.0.2
func (a *App) ShowExplainQuerySelectionFormWithPrefill(prefillHash string, fromTime, toTime time.Time, cluster string)
ShowExplainQuerySelectionFormWithPrefill shows the same form but with an optional prefilled normalized_query_hash.
func (*App) ShowFlamegraphForm ¶
func (a *App) ShowFlamegraphForm(params ...FlamegraphParams)
func (*App) ShowHeatmap ¶
func (a *App) ShowHeatmap()
ShowHeatmap displays the heatmap visualization
func (*App) ShowMemory ¶ added in v0.0.2
func (a *App) ShowMemory()
ShowMemory displays memory usage aggregated from various system tables across the selected cluster. It builds a single UNION ALL SQL query using cluster('<cluster>','system','table') and adds hostName() as the first column. The resulting table has columns: Host, Group, Name, Value. The widget supports filtering by pressing '/' (handled by widgets.FilteredTable).
func (*App) ShowProfileEvents ¶
func (*App) SwitchToMainPage ¶
type AuditPanel ¶
type AuditPanel struct {
// contains filtered or unexported fields
}
AuditPanel manages the audit interface
type AuditResult ¶
type AuditResult struct {
ID string
Host string
Object string
Severity string
Details string
Values map[string]float64
}
AuditResult represents a single audit finding
type CategoryType ¶
type CategoryType string
CategoryType Category types for heatmap
const ( CategoryQueryHash CategoryType = "normalized_query_hash" CategoryTable CategoryType = "tables" CategoryHost CategoryType = "hosts" CategoryError CategoryType = "errors" )
type FlamegraphParams ¶
type FlamegraphParams struct {
CategoryType CategoryType
CategoryValue string
TraceType TraceType
FromTime time.Time
ToTime time.Time
SourcePage string // Tracks where the flamegraph was called from
}
FlamegraphParams Structure for storing flamegraph parameters
type HeatmapMetric ¶
type HeatmapMetric string
HeatmapMetric Heatmap metric types
const ( MetricCount HeatmapMetric = "count" MetricMemoryUsage HeatmapMetric = "memoryUsage" MetricCPUUsage HeatmapMetric = "cpuUsage" MetricNetworkSent HeatmapMetric = "networkSent" MetricNetworkReceive HeatmapMetric = "networkReceive" MetricReadRows HeatmapMetric = "readRows" MetricWrittenRows HeatmapMetric = "writtenRows" MetricReadBytes HeatmapMetric = "readBytes" MetricWrittenBytes HeatmapMetric = "writtenBytes" )
Source Files
¶
- asynchronous_metric_log_handler.go
- audit_handler.go
- cluster_handler.go
- commands.go
- connect_handler.go
- date_range_handler.go
- explain_handler.go
- flamegraph_handler.go
- heatmap_category_handler.go
- heatmap_handler.go
- heatmap_metric_handler.go
- logs_panel_handler.go
- memory_handler.go
- metric_description_modal.go
- metric_log_handler.go
- profile_events_handler.go
- quit_handler.go
- scale_handler.go
- sparkline_panel.go
- tui.go