Documentation ¶
Overview ¶
Package metrics provides an abstraction around metrics collection in order to bundle all metrics related calls in one location
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector contains all required methods to collect metrics and to populate them into the Handler
func (Collector) CountSecretCreateError ¶
CountSecretCreateError signalizes an error occurred during secret creation. The reason must not be the error.Error() but a simple static string describing the error.
func (Collector) CountSecretCreated ¶
func (c Collector) CountSecretCreated()
CountSecretCreated signalizes a secret has successfully been created
func (Collector) CountSecretRead ¶
func (c Collector) CountSecretRead()
CountSecretRead signalizes a secret has successfully been read and destroyed
func (Collector) CountSecretReadError ¶
CountSecretReadError signalizes an error occurred during secret read. The reason must not be the error.Error() but a simple static string describing the error.
func (Collector) UpdateSecretsCount ¶
UpdateSecretsCount sets the current amount of secrets stored in the backend storage