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 App ¶
type App struct {
// contains filtered or unexported fields
}
App is the main struct for this collector.
type AppConfig ¶
type AppConfig struct { K8sClient k8sclient.Interface Logger micrologger.Logger AppTeamMappings map[string]string DefaultTeam string Provider string RetiredTeamsMapping map[string]string }
AppConfig is this collector's configuration struct.
type AppOperator ¶
type AppOperator struct {
// contains filtered or unexported fields
}
AppOperator is the main struct for this collector.
func NewAppOperator ¶
func NewAppOperator(config AppOperatorConfig) (*AppOperator, error)
NewAppOperator creates a new AppOperator metrics collector
func (*AppOperator) Collect ¶
func (a *AppOperator) Collect(ch chan<- prometheus.Metric) error
Collect is the main metrics collection function.
func (*AppOperator) Describe ¶
func (a *AppOperator) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
type AppOperatorConfig ¶
type AppOperatorConfig struct { K8sClient k8sclient.Interface Logger micrologger.Logger }
AppOperatorConfig is this collector's configuration struct.
Click to show internal directories.
Click to hide internal directories.