metrics

package
v0.9.28 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UsecaseDuration = metrics.MustNewHistogramWithTags(metrics.HistogramOptions{
		Namespace: "indexer",
		Subsystem: "usecase",
		Name:      "duration",
		Desc:      "The time spent executing a usecase",
		Tags:      []string{"task"},
	})

	ServerRequestDuration = metrics.MustNewHistogramWithTags(metrics.HistogramOptions{
		Namespace: "indexer",
		Subsystem: "server",
		Name:      "request_duration",
		Desc:      "The time spent handling an HTTP request",
		Tags:      []string{"request"},
	})

	DatabaseQueryDuration = metrics.MustNewHistogramWithTags(metrics.HistogramOptions{
		Namespace: "indexer",
		Subsystem: "database",
		Name:      "query_duration",
		Desc:      "The time spent executing a database query",
		Tags:      []string{"query"},
	})

	DatabaseSizeBytes = metrics.MustNewGaugeWithTags(metrics.Options{
		Namespace: "indexer",
		Subsystem: "database",
		Name:      "size_bytes",
		Desc:      "The size of the database in bytes",
	})
)

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