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