Documentation ¶
Index ¶
- Variables
- type CoreMigratorMetrics
- func (m *CoreMigratorMetrics) ObserveFailedMigration(resource string)
- func (m *CoreMigratorMetrics) ObserveObjectsMigrated(added int, resource string)
- func (m *CoreMigratorMetrics) ObserveObjectsRemaining(count int, resource string)
- func (m *CoreMigratorMetrics) ObserveSucceededMigration(resource string)
- func (m *CoreMigratorMetrics) Reset()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Metrics provides access to all core migrator metrics.
Metrics = newCoreMigratorMetrics()
)
Functions ¶
This section is empty.
Types ¶
type CoreMigratorMetrics ¶
type CoreMigratorMetrics struct {
// contains filtered or unexported fields
}
CoreMigratorMetrics instruments core migrator with prometheus metrics.
func (*CoreMigratorMetrics) ObserveFailedMigration ¶ added in v0.0.2
func (m *CoreMigratorMetrics) ObserveFailedMigration(resource string)
ObserveFailedMigration increments the number of failed migrations for a resource type..
func (*CoreMigratorMetrics) ObserveObjectsMigrated ¶
func (m *CoreMigratorMetrics) ObserveObjectsMigrated(added int, resource string)
ObserveObjectsMigrated adds the number of migrated objects for a resource type..
func (*CoreMigratorMetrics) ObserveObjectsRemaining ¶
func (m *CoreMigratorMetrics) ObserveObjectsRemaining(count int, resource string)
ObserveObjectsRemaining records the number of objects pending-migration for a particular resource type.
func (*CoreMigratorMetrics) ObserveSucceededMigration ¶ added in v0.0.2
func (m *CoreMigratorMetrics) ObserveSucceededMigration(resource string)
ObserveSucceededMigration increments the number of successful migrations for a resource type..
func (*CoreMigratorMetrics) Reset ¶
func (m *CoreMigratorMetrics) Reset()
Click to show internal directories.
Click to hide internal directories.