metrics

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL