Documentation
¶
Index ¶
- Constants
- func CalculateJobProfileSettingsWithViperConfig(c *CollectConf) (numberJobProfilesToCollect, jobProfilesNumHighQueryCost, ... int)
- func ParseConfig(configDir string, supportedExtensions []string, ...) (foundConfig string)
- func SetViperDefaults(defaultThreads int, hostName string, defaultCaptureSeconds int, ...)
- type CollectConf
- func (c *CollectConf) AcceptCollectionConsent() bool
- func (c *CollectConf) CaptureHeapDump() bool
- func (c *CollectConf) CollectAccelerationLogs() bool
- func (c *CollectConf) CollectAccessLogs() bool
- func (c *CollectConf) CollectDiskUsage() bool
- func (c *CollectConf) CollectDremioConfiguration() bool
- func (c *CollectConf) CollectGCLogs() bool
- func (c *CollectConf) CollectJFR() bool
- func (c *CollectConf) CollectJStack() bool
- func (c *CollectConf) CollectKVStoreReport() bool
- func (c *CollectConf) CollectMetaRefreshLogs() bool
- func (c *CollectConf) CollectNodeMetrics() bool
- func (c *CollectConf) CollectQueriesJSON() bool
- func (c *CollectConf) CollectReflectionLogs() bool
- func (c *CollectConf) CollectServerLogs() bool
- func (c *CollectConf) CollectSystemTablesExport() bool
- func (c *CollectConf) CollectWLM() bool
- func (c *CollectConf) ConfigurationOutDir() string
- func (c *CollectConf) DremioConfDir() string
- func (c *CollectConf) DremioEndpoint() string
- func (c *CollectConf) DremioGCFilePattern() string
- func (c *CollectConf) DremioJFRTimeSeconds() int
- func (c *CollectConf) DremioJStackFreqSeconds() int
- func (c *CollectConf) DremioJStackTimeSeconds() int
- func (c *CollectConf) DremioLogDir() string
- func (c *CollectConf) DremioLogsNumDays() int
- func (c *CollectConf) DremioPATToken() string
- func (c *CollectConf) DremioPID() int
- func (c *CollectConf) DremioQueriesJSONNumDays() int
- func (c *CollectConf) GcLogsDir() string
- func (c *CollectConf) HeapDumpsOutDir() string
- func (c *CollectConf) JFROutDir() string
- func (c *CollectConf) JobProfilesNumHighQueryCost() int
- func (c *CollectConf) JobProfilesNumRecentErrors() int
- func (c *CollectConf) JobProfilesNumSlowExec() int
- func (c *CollectConf) JobProfilesNumSlowPlanning() int
- func (c *CollectConf) JobProfilesOutDir() string
- func (c *CollectConf) KVstoreOutDir() string
- func (c *CollectConf) KubernetesOutDir() string
- func (c *CollectConf) LogsOutDir() string
- func (c *CollectConf) NodeInfoOutDir() string
- func (c *CollectConf) NodeMetricsCollectDurationSeconds() int
- func (c *CollectConf) NodeName() string
- func (c *CollectConf) NumberJobProfilesToCollect() int
- func (c *CollectConf) NumberThreads() int
- func (c *CollectConf) OutputDir() string
- func (c *CollectConf) QueriesOutDir() string
- func (c *CollectConf) SystemTablesOutDir() string
- func (c *CollectConf) Systemtables() []string
- func (c *CollectConf) ThreadDumpsOutDir() string
- func (c *CollectConf) WLMOutDir() string
Constants ¶
View Source
const ( KeyCollectAccelerationLog = "collect-acceleration-log" KeyCollectAccessLog = "collect-access-log" KeyDremioLogDir = "dremio-log-dir" KeyNumberThreads = "number-threads" KeyDremioUsername = "dremio-username" KeyDremioPatToken = "dremio-pat-token" // #nosec G101 KeyDremioConfDir = "dremio-conf-dir" KeyDremioRocksdbDir = "dremio-rocksdb-dir" KeyCollectDremioConfiguration = "collect-dremio-configuration" KeyCaptureHeapDump = "capture-heap-dump" KeyNumberJobProfiles = "number-job-profiles" KeyDremioEndpoint = "dremio-endpoint" KeyTmpOutputDir = "tmp-output-dir" KeyCollectMetrics = "collect-metrics" KeyCollectDiskUsage = "collect-disk-usage" KeyDremioLogsNumDays = "dremio-logs-num-days" KeyDremioQueriesJSONNumDays = "dremio-queries-json-num-days" KeyDremioGCFilePattern = "dremio-gc-file-pattern" KeyCollectQueriesJSON = "collect-queries-json" KeyCollectServerLogs = "collect-server-logs" KeyCollectMetaRefreshLog = "collect-meta-refresh-log" KeyCollectReflectionLog = "collect-reflection-log" KeyCollectGCLogs = "collect-gc-logs" KeyCollectJFR = "collect-jfr" KeyCollectJStack = "collect-jstack" KeyCollectSystemTablesExport = "collect-system-tables-export" KeyCollectWLM = "collect-wlm" KeyCollectKVStoreReport = "collect-kvstore-report" KeyDremioJStackTimeSeconds = "dremio-jstack-time-seconds" KeyDremioJFRTimeSeconds = "dremio-jfr-time-seconds" KeyNodeMetricsCollectDurationSeconds = "node-metrics-collect-duration-seconds" KeyDremioJStackFreqSeconds = "dremio-jstack-freq-seconds" KeyDremioGCLogsDir = "dremio-gclogs-dir" KeyNodeName = "node-name" KeyAcceptCollectionConsent = "accept-collection-consent" KeyAllowInsecureSSL = "allow-insecure-ssl" KeyJobProfilesNumHighQueryCost = "job-profiles-num-high-query-cost" KeyJobProfilesNumSlowExec = "job-profiles-num-slow-exec" KeyJobProfilesNumRecentErrors = "job-profiles-num-recent-errors" KeyJobProfilesNumSlowPlanning = "job-profiles-num-slow-planning" )
Variables ¶
This section is empty.
Functions ¶
func CalculateJobProfileSettingsWithViperConfig ¶
func CalculateJobProfileSettingsWithViperConfig(c *CollectConf) (numberJobProfilesToCollect, jobProfilesNumHighQueryCost, jobProfilesNumSlowExec, jobProfilesNumRecentErrors, jobProfilesNumSlowPlanning int)
func ParseConfig ¶
Types ¶
type CollectConf ¶
type CollectConf struct {
// contains filtered or unexported fields
}
func ReadConfFromExecLocation ¶
func ReadConfFromExecLocation(overrides map[string]*pflag.Flag) (*CollectConf, error)
func (*CollectConf) AcceptCollectionConsent ¶
func (c *CollectConf) AcceptCollectionConsent() bool
func (*CollectConf) CaptureHeapDump ¶
func (c *CollectConf) CaptureHeapDump() bool
func (*CollectConf) CollectAccelerationLogs ¶
func (c *CollectConf) CollectAccelerationLogs() bool
func (*CollectConf) CollectAccessLogs ¶
func (c *CollectConf) CollectAccessLogs() bool
func (*CollectConf) CollectDiskUsage ¶
func (c *CollectConf) CollectDiskUsage() bool
func (*CollectConf) CollectDremioConfiguration ¶
func (c *CollectConf) CollectDremioConfiguration() bool
func (*CollectConf) CollectGCLogs ¶
func (c *CollectConf) CollectGCLogs() bool
func (*CollectConf) CollectJFR ¶
func (c *CollectConf) CollectJFR() bool
func (*CollectConf) CollectJStack ¶
func (c *CollectConf) CollectJStack() bool
func (*CollectConf) CollectKVStoreReport ¶
func (c *CollectConf) CollectKVStoreReport() bool
func (*CollectConf) CollectMetaRefreshLogs ¶
func (c *CollectConf) CollectMetaRefreshLogs() bool
func (*CollectConf) CollectNodeMetrics ¶
func (c *CollectConf) CollectNodeMetrics() bool
func (*CollectConf) CollectQueriesJSON ¶
func (c *CollectConf) CollectQueriesJSON() bool
func (*CollectConf) CollectReflectionLogs ¶
func (c *CollectConf) CollectReflectionLogs() bool
func (*CollectConf) CollectServerLogs ¶
func (c *CollectConf) CollectServerLogs() bool
func (*CollectConf) CollectSystemTablesExport ¶
func (c *CollectConf) CollectSystemTablesExport() bool
func (*CollectConf) CollectWLM ¶
func (c *CollectConf) CollectWLM() bool
func (*CollectConf) ConfigurationOutDir ¶
func (c *CollectConf) ConfigurationOutDir() string
per node out directories
func (*CollectConf) DremioConfDir ¶
func (c *CollectConf) DremioConfDir() string
func (*CollectConf) DremioEndpoint ¶
func (c *CollectConf) DremioEndpoint() string
func (*CollectConf) DremioGCFilePattern ¶
func (c *CollectConf) DremioGCFilePattern() string
func (*CollectConf) DremioJFRTimeSeconds ¶
func (c *CollectConf) DremioJFRTimeSeconds() int
func (*CollectConf) DremioJStackFreqSeconds ¶
func (c *CollectConf) DremioJStackFreqSeconds() int
func (*CollectConf) DremioJStackTimeSeconds ¶
func (c *CollectConf) DremioJStackTimeSeconds() int
func (*CollectConf) DremioLogDir ¶
func (c *CollectConf) DremioLogDir() string
func (*CollectConf) DremioLogsNumDays ¶
func (c *CollectConf) DremioLogsNumDays() int
func (*CollectConf) DremioPATToken ¶
func (c *CollectConf) DremioPATToken() string
func (*CollectConf) DremioPID ¶
func (c *CollectConf) DremioPID() int
func (*CollectConf) DremioQueriesJSONNumDays ¶
func (c *CollectConf) DremioQueriesJSONNumDays() int
func (*CollectConf) GcLogsDir ¶
func (c *CollectConf) GcLogsDir() string
func (*CollectConf) HeapDumpsOutDir ¶
func (c *CollectConf) HeapDumpsOutDir() string
func (*CollectConf) JFROutDir ¶
func (c *CollectConf) JFROutDir() string
works on all nodes but includes node name in file name
func (*CollectConf) JobProfilesNumHighQueryCost ¶
func (c *CollectConf) JobProfilesNumHighQueryCost() int
func (*CollectConf) JobProfilesNumRecentErrors ¶
func (c *CollectConf) JobProfilesNumRecentErrors() int
func (*CollectConf) JobProfilesNumSlowExec ¶
func (c *CollectConf) JobProfilesNumSlowExec() int
func (*CollectConf) JobProfilesNumSlowPlanning ¶
func (c *CollectConf) JobProfilesNumSlowPlanning() int
func (*CollectConf) JobProfilesOutDir ¶
func (c *CollectConf) JobProfilesOutDir() string
func (*CollectConf) KVstoreOutDir ¶
func (c *CollectConf) KVstoreOutDir() string
func (*CollectConf) KubernetesOutDir ¶
func (c *CollectConf) KubernetesOutDir() string
func (*CollectConf) LogsOutDir ¶
func (c *CollectConf) LogsOutDir() string
func (*CollectConf) NodeInfoOutDir ¶
func (c *CollectConf) NodeInfoOutDir() string
func (*CollectConf) NodeMetricsCollectDurationSeconds ¶
func (c *CollectConf) NodeMetricsCollectDurationSeconds() int
func (*CollectConf) NodeName ¶
func (c *CollectConf) NodeName() string
func (*CollectConf) NumberJobProfilesToCollect ¶
func (c *CollectConf) NumberJobProfilesToCollect() int
func (*CollectConf) NumberThreads ¶
func (c *CollectConf) NumberThreads() int
func (*CollectConf) OutputDir ¶
func (c *CollectConf) OutputDir() string
func (*CollectConf) QueriesOutDir ¶
func (c *CollectConf) QueriesOutDir() string
func (*CollectConf) SystemTablesOutDir ¶
func (c *CollectConf) SystemTablesOutDir() string
func (*CollectConf) Systemtables ¶
func (c *CollectConf) Systemtables() []string
func (*CollectConf) ThreadDumpsOutDir ¶
func (c *CollectConf) ThreadDumpsOutDir() string
func (*CollectConf) WLMOutDir ¶
func (c *CollectConf) WLMOutDir() string
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
package autodetect looks at the system configuration and file names and tries to guess at the correct configuration
|
package autodetect looks at the system configuration and file names and tries to guess at the correct configuration |
Click to show internal directories.
Click to hide internal directories.