Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidExecution ¶
IsInvalidExecution asserts invalidExecutionError.
Types ¶
type AppResource ¶
type AppResource struct {
// contains filtered or unexported fields
}
AppResource is the main struct for this collector.
func NewAppResource ¶
func NewAppResource(config AppResourceConfig) (*AppResource, error)
NewAppResource creates a new AppResource metrics collector
func (*AppResource) Collect ¶
func (c *AppResource) Collect(ch chan<- prometheus.Metric) error
Collect is the main metrics collection function.
func (*AppResource) Describe ¶
func (c *AppResource) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type AppResourceConfig ¶
type AppResourceConfig struct { G8sClient versioned.Interface K8sClient kubernetes.Interface Logger micrologger.Logger AppTeamMapping map[string]string DefaultTeam string }
AppResourceConfig is this collector's configuration struct.
Click to show internal directories.
Click to hide internal directories.