metrics

package
v0.0.0-...-7a5359b Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SynchronizedServiceCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "mesh_adapter_syn_service_total",
		Help: "The total number of services which has been synchronized",
	})

	DeletedServiceCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "mesh_adapter_delete_service_total",
		Help: "The total number of services which has been Deleted",
	})

	SynchronizedInstanceCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "mesh_adapter_syn_instance_total",
		Help: "The total number of instances which has been synchronized",
	})

	ReplacingInstancesHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
		Name:    "mesh_adapter_replace_instances_seconds_bucket",
		Help:    "The latency of replacing instances",
		Buckets: []float64{0.01, 0.1, 0.5, 1, 5, 10},
	})

	ReplacedAccessorInstancesCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "mesh_adapter_replace_accessor_instances_total",
		Help: "The total number of accessor instances which has been replaced",
	})

	AddedConfigurationCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "mesh_adapter_add_configuration_total",
		Help: "The total number of configuration which has been added",
	})

	ChangedConfigurationCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "mesh_adapter_change_configuration_total",
		Help: "The total number of configuration which has been changed",
	})

	DeletedConfigurationCounter = promauto.NewCounter(prometheus.CounterOpts{
		Name: "mesh_adapter_delete_configuration_total",
		Help: "The total number of configuration which has been deleted",
	})

	ChangingConfigurationHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
		Name:    "mesh_adapter_change_configuration_seconds_bucket",
		Help:    "The latency of changing configuration",
		Buckets: []float64{0.01, 0.1, 0.5, 1, 5, 10},
	})

	PathCacheLengthGauge = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "mesh_adapter_path_cache_gauge",
			Help: "The size of path cache",
		},
		[]string{"path"},
	)
)

promauto

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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