 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
      Index ¶
- Constants
- Variables
- func Ceph(c *Collector, cephCollector *troubleshootv1beta2.Ceph) (map[string][]byte, error)
- func ClusterInfo(c *Collector) (map[string][]byte, error)
- func ClusterResources(c *Collector) (map[string][]byte, error)
- func Collectd(c *Collector, collectdCollector *troubleshootv1beta2.Collectd) (map[string][]byte, error)
- func Copy(c *Collector, copyCollector *troubleshootv1beta2.Copy) (map[string][]byte, error)
- func CreateCollector(client client.Client, scheme *runtime.Scheme, ownerRef metav1.Object, ...) (*corev1.ConfigMap, *corev1.Pod, error)
- func Data(c *Collector, dataCollector *troubleshootv1beta2.Data) (map[string][]byte, error)
- func DeterministicIDForCollector(collector *troubleshootv1beta2.Collect) string
- func Exec(c *Collector, execCollector *troubleshootv1beta2.Exec) (map[string][]byte, error)
- func GetCephCollectorFilepath(name, namespace string) string
- func HTTP(c *Collector, httpCollector *troubleshootv1beta2.HTTP) (map[string][]byte, error)
- func HostDiskUsageKey(name string) string
- func IsRBACError(err error) bool
- func Logs(c *Collector, logsCollector *troubleshootv1beta2.Logs) (map[string][]byte, error)
- func Mysql(c *Collector, databaseCollector *troubleshootv1beta2.Database) (map[string][]byte, error)
- func Postgres(c *Collector, databaseCollector *troubleshootv1beta2.Database) (map[string][]byte, error)
- func Redis(c *Collector, databaseCollector *troubleshootv1beta2.Database) (map[string][]byte, error)
- func Run(c *Collector, runCollector *troubleshootv1beta2.Run) (map[string][]byte, error)
- func Secret(c *Collector, secretCollector *troubleshootv1beta2.Secret) (map[string][]byte, error)
- type BlockDeviceInfo
- type CPUInfo
- type CephCommand
- type ClusterVersion
- type CollectHostBlockDevices
- type CollectHostCPU
- type CollectHostCertificate
- type CollectHostDiskUsage
- type CollectHostFilesystemPerformance
- type CollectHostHTTP
- type CollectHostHTTPLoadBalancer
- type CollectHostIPV4Interfaces
- type CollectHostMemory
- type CollectHostTCPConnect
- type CollectHostTCPLoadBalancer
- type CollectHostTCPPortStatus
- type CollectHostTime
- type Collector
- type Collectors
- type DatabaseConnection
- type DiskUsageInfo
- type Durations
- type FSPerfResults
- type FoundSecret
- type HTTPError
- type HTTPResponse
- type HostCollector
- type MemoryInfo
- type NTPStatus
- type NetworkStatus
- type NetworkStatusResult
- type RBACError
- type TimeInfo
Constants ¶
      View Source
      
  
    const ( NetworkStatusAddressInUse = "address-in-use" NetworkStatusConnectionRefused = "connection-refused" NetworkStatusConnectionTimeout = "connection-timeout" NetworkStatusConnected = "connected" NetworkStatusErrorOther = "error" NetworkStatusBindPermissionDenied = "bind-permission-denied" )
      View Source
      
  
    const (
	DefaultCephNamespace = "rook-ceph"
)
    
      View Source
      
  
    const KeyPairEncrypted = "key-pair-encrypted"
    
      View Source
      
  
    const KeyPairInvalid = "key-pair-invalid"
    
      View Source
      
  
    const KeyPairMismatch = "key-pair-mismatch"
    
      View Source
      
  
    const KeyPairMissing = "key-pair-missing"
    
      View Source
      
  
    const KeyPairSwitched = "key-pair-switched"
    
      View Source
      
  
const KeyPairValid = "key-pair-valid"
    Variables ¶
      View Source
      
  
var CephCommands = []CephCommand{ { ID: "status", Command: []string{"ceph", "status"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "fs", Command: []string{"ceph", "fs", "status"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "fs-ls", Command: []string{"ceph", "fs", "ls"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "osd-status", Command: []string{"ceph", "osd", "status"}, Args: []string{"-f", "json-pretty"}, Format: "txt", }, { ID: "osd-tree", Command: []string{"ceph", "osd", "tree"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "osd-pool", Command: []string{"ceph", "osd", "pool", "ls", "detail"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "health", Command: []string{"ceph", "health", "detail"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "auth", Command: []string{"ceph", "auth", "ls"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, }
Functions ¶
func CreateCollector ¶
func DeterministicIDForCollector ¶
func DeterministicIDForCollector(collector *troubleshootv1beta2.Collect) string
func GetCephCollectorFilepath ¶ added in v0.9.50
func HostDiskUsageKey ¶ added in v0.10.0
func IsRBACError ¶ added in v0.9.15
Types ¶
type BlockDeviceInfo ¶ added in v0.10.2
type BlockDeviceInfo struct {
	Name             string `json:"name"`
	KernelName       string `json:"kernel_name"`
	ParentKernelName string `json:"parent_kernel_name"`
	Type             string `json:"type"`
	Major            int    `json:"major"`
	Minor            int    `json:"minor"`
	Size             uint64 `json:"size"`
	FilesystemType   string `json:"filesystem_type"`
	Mountpoint       string `json:"mountpoint"`
	Serial           string `json:"serial"`
	ReadOnly         bool   `json:"read_only"`
	Removable        bool   `json:"removable"`
}
    type CephCommand ¶ added in v0.9.50
type ClusterVersion ¶
type CollectHostBlockDevices ¶ added in v0.10.8
type CollectHostBlockDevices struct {
	// contains filtered or unexported fields
}
    func (*CollectHostBlockDevices) Collect ¶ added in v0.10.8
func (c *CollectHostBlockDevices) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostBlockDevices) IsExcluded ¶ added in v0.10.8
func (c *CollectHostBlockDevices) IsExcluded() (bool, error)
func (*CollectHostBlockDevices) Title ¶ added in v0.10.8
func (c *CollectHostBlockDevices) Title() string
type CollectHostCPU ¶ added in v0.10.8
type CollectHostCPU struct {
	// contains filtered or unexported fields
}
    func (*CollectHostCPU) Collect ¶ added in v0.10.8
func (c *CollectHostCPU) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostCPU) IsExcluded ¶ added in v0.10.8
func (c *CollectHostCPU) IsExcluded() (bool, error)
func (*CollectHostCPU) Title ¶ added in v0.10.8
func (c *CollectHostCPU) Title() string
type CollectHostCertificate ¶ added in v0.10.8
type CollectHostCertificate struct {
	// contains filtered or unexported fields
}
    func (*CollectHostCertificate) Collect ¶ added in v0.10.8
func (c *CollectHostCertificate) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostCertificate) IsExcluded ¶ added in v0.10.8
func (c *CollectHostCertificate) IsExcluded() (bool, error)
func (*CollectHostCertificate) Title ¶ added in v0.10.8
func (c *CollectHostCertificate) Title() string
type CollectHostDiskUsage ¶ added in v0.10.8
type CollectHostDiskUsage struct {
	// contains filtered or unexported fields
}
    func (*CollectHostDiskUsage) Collect ¶ added in v0.10.8
func (c *CollectHostDiskUsage) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostDiskUsage) IsExcluded ¶ added in v0.10.8
func (c *CollectHostDiskUsage) IsExcluded() (bool, error)
func (*CollectHostDiskUsage) Title ¶ added in v0.10.8
func (c *CollectHostDiskUsage) Title() string
type CollectHostFilesystemPerformance ¶ added in v0.10.8
type CollectHostFilesystemPerformance struct {
	// contains filtered or unexported fields
}
    func (*CollectHostFilesystemPerformance) Collect ¶ added in v0.10.8
func (c *CollectHostFilesystemPerformance) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostFilesystemPerformance) IsExcluded ¶ added in v0.10.8
func (c *CollectHostFilesystemPerformance) IsExcluded() (bool, error)
func (*CollectHostFilesystemPerformance) Title ¶ added in v0.10.8
func (c *CollectHostFilesystemPerformance) Title() string
type CollectHostHTTP ¶ added in v0.10.8
type CollectHostHTTP struct {
	// contains filtered or unexported fields
}
    func (*CollectHostHTTP) Collect ¶ added in v0.10.8
func (c *CollectHostHTTP) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostHTTP) IsExcluded ¶ added in v0.10.8
func (c *CollectHostHTTP) IsExcluded() (bool, error)
func (*CollectHostHTTP) Title ¶ added in v0.10.8
func (c *CollectHostHTTP) Title() string
type CollectHostHTTPLoadBalancer ¶ added in v0.10.8
type CollectHostHTTPLoadBalancer struct {
	// contains filtered or unexported fields
}
    func (*CollectHostHTTPLoadBalancer) Collect ¶ added in v0.10.8
func (c *CollectHostHTTPLoadBalancer) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostHTTPLoadBalancer) IsExcluded ¶ added in v0.10.8
func (c *CollectHostHTTPLoadBalancer) IsExcluded() (bool, error)
func (*CollectHostHTTPLoadBalancer) Title ¶ added in v0.10.8
func (c *CollectHostHTTPLoadBalancer) Title() string
type CollectHostIPV4Interfaces ¶ added in v0.10.8
type CollectHostIPV4Interfaces struct {
	// contains filtered or unexported fields
}
    func (*CollectHostIPV4Interfaces) Collect ¶ added in v0.10.8
func (c *CollectHostIPV4Interfaces) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostIPV4Interfaces) IsExcluded ¶ added in v0.10.8
func (c *CollectHostIPV4Interfaces) IsExcluded() (bool, error)
func (*CollectHostIPV4Interfaces) Title ¶ added in v0.10.8
func (c *CollectHostIPV4Interfaces) Title() string
type CollectHostMemory ¶ added in v0.10.8
type CollectHostMemory struct {
	// contains filtered or unexported fields
}
    func (*CollectHostMemory) Collect ¶ added in v0.10.8
func (c *CollectHostMemory) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostMemory) IsExcluded ¶ added in v0.10.8
func (c *CollectHostMemory) IsExcluded() (bool, error)
func (*CollectHostMemory) Title ¶ added in v0.10.8
func (c *CollectHostMemory) Title() string
type CollectHostTCPConnect ¶ added in v0.10.8
type CollectHostTCPConnect struct {
	// contains filtered or unexported fields
}
    func (*CollectHostTCPConnect) Collect ¶ added in v0.10.8
func (c *CollectHostTCPConnect) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostTCPConnect) IsExcluded ¶ added in v0.10.8
func (c *CollectHostTCPConnect) IsExcluded() (bool, error)
func (*CollectHostTCPConnect) Title ¶ added in v0.10.8
func (c *CollectHostTCPConnect) Title() string
type CollectHostTCPLoadBalancer ¶ added in v0.10.8
type CollectHostTCPLoadBalancer struct {
	// contains filtered or unexported fields
}
    func (*CollectHostTCPLoadBalancer) Collect ¶ added in v0.10.8
func (c *CollectHostTCPLoadBalancer) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostTCPLoadBalancer) IsExcluded ¶ added in v0.10.8
func (c *CollectHostTCPLoadBalancer) IsExcluded() (bool, error)
func (*CollectHostTCPLoadBalancer) Title ¶ added in v0.10.8
func (c *CollectHostTCPLoadBalancer) Title() string
type CollectHostTCPPortStatus ¶ added in v0.10.8
type CollectHostTCPPortStatus struct {
	// contains filtered or unexported fields
}
    func (*CollectHostTCPPortStatus) Collect ¶ added in v0.10.8
func (c *CollectHostTCPPortStatus) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostTCPPortStatus) IsExcluded ¶ added in v0.10.8
func (c *CollectHostTCPPortStatus) IsExcluded() (bool, error)
func (*CollectHostTCPPortStatus) Title ¶ added in v0.10.8
func (c *CollectHostTCPPortStatus) Title() string
type CollectHostTime ¶ added in v0.10.8
type CollectHostTime struct {
	// contains filtered or unexported fields
}
    func (*CollectHostTime) Collect ¶ added in v0.10.8
func (c *CollectHostTime) Collect(progressChan chan<- interface{}) (map[string][]byte, error)
func (*CollectHostTime) IsExcluded ¶ added in v0.10.8
func (c *CollectHostTime) IsExcluded() (bool, error)
func (*CollectHostTime) Title ¶ added in v0.10.8
func (c *CollectHostTime) Title() string
type Collector ¶
type Collector struct {
	Collect      *troubleshootv1beta2.Collect
	Redact       bool
	RBACErrors   []error
	ClientConfig *rest.Config
	Namespace    string
}
    func (*Collector) GetDisplayName ¶ added in v0.9.5
func (*Collector) IsExcluded ¶ added in v0.9.52
checks if a given collector has a spec with 'exclude' that evaluates to true.
func (*Collector) RunCollectorSync ¶
type Collectors ¶ added in v0.9.15
type Collectors []*Collector
type DatabaseConnection ¶ added in v0.9.27
type DiskUsageInfo ¶ added in v0.10.0
type FSPerfResults ¶ added in v0.10.4
type FSPerfResults struct {
	Min     time.Duration
	Max     time.Duration
	Average time.Duration
	P1      time.Duration
	P5      time.Duration
	P10     time.Duration
	P20     time.Duration
	P30     time.Duration
	P40     time.Duration
	P50     time.Duration
	P60     time.Duration
	P70     time.Duration
	P80     time.Duration
	P90     time.Duration
	P95     time.Duration
	P99     time.Duration
	P995    time.Duration
	P999    time.Duration
	P9995   time.Duration
	P9999   time.Duration
	IOPS    int
}
    type FoundSecret ¶
type HTTPResponse ¶ added in v0.10.2
type HostCollector ¶ added in v0.10.0
type HostCollector interface {
	Title() string
	IsExcluded() (bool, error)
	Collect(progressChan chan<- interface{}) (map[string][]byte, error)
}
    func GetHostCollector ¶ added in v0.10.8
func GetHostCollector(collector *troubleshootv1beta2.HostCollect) (HostCollector, bool)
type MemoryInfo ¶ added in v0.10.0
type MemoryInfo struct {
	Total uint64 `json:"total"`
}
    type NetworkStatus ¶ added in v0.10.0
type NetworkStatus string
type NetworkStatusResult ¶ added in v0.10.0
type NetworkStatusResult struct {
	Status NetworkStatus `json:"status"`
}
    
       Source Files
      ¶
      Source Files
      ¶
    
- ceph.go
- cluster_info.go
- cluster_resources.go
- collectd.go
- collector.go
- copy.go
- data.go
- database_shared.go
- exec.go
- host_block_device.go
- host_certificate.go
- host_collector.go
- host_cpu.go
- host_disk_usage.go
- host_filesystem_performance.go
- host_filesystem_performance_linux.go
- host_http.go
- host_httploadbalancer.go
- host_ipv4interfaces.go
- host_memory.go
- host_network.go
- host_tcp_connect.go
- host_tcploadbalancer.go
- host_tcpportstatus.go
- host_time.go
- http.go
- logs.go
- mysql.go
- postgres.go
- rbac.go
- redact.go
- redis.go
- run.go
- runner.go
- secret.go
- util.go
 Click to show internal directories. 
   Click to hide internal directories.