collect

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigDump

type ConfigDump struct {
	BundlePath   string
	Namespace    string
	ClientConfig *rest.Config
}

ConfigDump defines a collector that dumps the envoy configuration of the proxy pod.

func (ConfigDump) CheckRBAC

func (ConfigDump) Collect

func (cd ConfigDump) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)

func (ConfigDump) GetRBACErrors

func (cd ConfigDump) GetRBACErrors() []error

func (ConfigDump) HasRBACErrors

func (cd ConfigDump) HasRBACErrors() bool

func (ConfigDump) IsExcluded

func (cd ConfigDump) IsExcluded() (bool, error)

func (ConfigDump) Title

func (cd ConfigDump) Title() string

type CustomResource

type CustomResource struct {
	BundlePath    string
	Namespace     string
	ClientConfig  *rest.Config
	Namespaces    []string
	IncludeGroups []string
}

CustomResource defines a custom resource collector, which collect custom resources from the cluster, with the given IncludeGroups and Namespaces.

func (CustomResource) CheckRBAC

func (CustomResource) Collect

func (cr CustomResource) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)

func (CustomResource) GetRBACErrors

func (cr CustomResource) GetRBACErrors() []error

func (CustomResource) HasRBACErrors

func (cr CustomResource) HasRBACErrors() bool

func (CustomResource) IsExcluded

func (cr CustomResource) IsExcluded() (bool, error)

func (CustomResource) Title

func (cr CustomResource) Title() string

type EnvoyGatewayResource

type EnvoyGatewayResource struct {
	BundlePath   string
	Namespace    string
	ClientConfig *rest.Config
}

EnvoyGatewayResource defines a collector for the Envoy Gateway resource from the given namespace. This is most like the CusterResource collector, but remove unnecessary types like StatefulSet, CornJob etc.

func (EnvoyGatewayResource) CheckRBAC

func (EnvoyGatewayResource) Collect

func (eg EnvoyGatewayResource) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)

func (EnvoyGatewayResource) GetRBACErrors

func (eg EnvoyGatewayResource) GetRBACErrors() []error

func (EnvoyGatewayResource) HasRBACErrors

func (eg EnvoyGatewayResource) HasRBACErrors() bool

func (EnvoyGatewayResource) IsExcluded

func (eg EnvoyGatewayResource) IsExcluded() (bool, error)

func (EnvoyGatewayResource) Title

func (eg EnvoyGatewayResource) Title() string

type PrometheusMetric

type PrometheusMetric struct {
	BundlePath   string
	Namespace    string
	ClientConfig *rest.Config
}

PrometheusMetric defines a collector scraping Prometheus metrics from the selected pods.

func (PrometheusMetric) CheckRBAC

func (PrometheusMetric) Collect

func (p PrometheusMetric) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)

func (PrometheusMetric) GetRBACErrors

func (p PrometheusMetric) GetRBACErrors() []error

func (PrometheusMetric) HasRBACErrors

func (p PrometheusMetric) HasRBACErrors() bool

func (PrometheusMetric) IsExcluded

func (p PrometheusMetric) IsExcluded() (bool, error)

func (PrometheusMetric) Title

func (p PrometheusMetric) Title() string

Jump to

Keyboard shortcuts

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