conf

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func ParseConfig(configDir string, supportedExtensions []string, overrides map[string]*pflag.Flag) (foundConfig string)

func SetViperDefaults

func SetViperDefaults(defaultThreads int, hostName string, defaultCaptureSeconds int, outputDir string)

Types

type CollectConf

type CollectConf struct {
	// contains filtered or unexported fields
}

func ReadConf

func ReadConf(overrides map[string]*pflag.Flag, configDir string) (*CollectConf, error)

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL