Documentation
¶
Index ¶
- type EncryptionCollector
- func (c *EncryptionCollector) Collect(ch chan<- prometheus.Metric)
- func (c *EncryptionCollector) Describe(ch chan<- *prometheus.Desc)
- func (c *EncryptionCollector) RecordCanaryValidation(strategy, keyID, status string)
- func (c *EncryptionCollector) RecordError(operation, strategy, keyID, errorType string)
- func (c *EncryptionCollector) RecordOperation(operation, strategy, keyID, status string, duration time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionCollector ¶
type EncryptionCollector struct {
// contains filtered or unexported fields
}
EncryptionCollector implements prometheus.Collector for encryption metrics.
func NewEncryptionCollector ¶
func NewEncryptionCollector(manager *enc.Manager) *EncryptionCollector
NewEncryptionCollector creates a new EncryptionCollector.
func (*EncryptionCollector) Collect ¶
func (c *EncryptionCollector) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*EncryptionCollector) Describe ¶
func (c *EncryptionCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
func (*EncryptionCollector) RecordCanaryValidation ¶
func (c *EncryptionCollector) RecordCanaryValidation(strategy, keyID, status string)
RecordCanaryValidation records a canary validation attempt.
func (*EncryptionCollector) RecordError ¶
func (c *EncryptionCollector) RecordError(operation, strategy, keyID, errorType string)
RecordError records an encryption error.
func (*EncryptionCollector) RecordOperation ¶
func (c *EncryptionCollector) RecordOperation(operation, strategy, keyID, status string, duration time.Duration)
RecordOperation records a successful or failed encryption/decryption operation.
Click to show internal directories.
Click to hide internal directories.