metrics

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RPC            = metrics.RPC
	CacheHitsTotal = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "trustengine_cache_lookups_total",
			Help: "Total number of cache hits in the trust engine.",
		},
		[]string{"type", prom.LabelResult},
	)
)

Exported metrics. This is a transitional hack until the new metrics approach is used everywhere.

Functions

func WrapDB

func WrapDB(driver string, trustDB trust.DB) trust.DB

WrapDB wraps the given trust database into one that also exports metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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