metrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParserDuration = prometheus.NewHistogram(prometheus.HistogramOpts{
		Namespace: "arana",
		Subsystem: "parser",
		Name:      "duration_seconds",
		Help:      "histogram of processing time (s) in parse SQL.",
		Buckets:   prometheus.ExponentialBuckets(0.00004, 2, 25),
	})

	OptimizeDuration = prometheus.NewHistogram(prometheus.HistogramOpts{
		Namespace: "arana",
		Subsystem: "optimizer",
		Name:      "duration_seconds",
		Help:      "histogram of processing time (s) in optimizer.",
		Buckets:   prometheus.ExponentialBuckets(0.00004, 2, 25),
	})

	ExecuteDuration = prometheus.NewHistogram(prometheus.HistogramOpts{
		Namespace: "arana",
		Subsystem: "executor",
		Name:      "duration_seconds",
		Help:      "histogram of processing time (s) in execute.",
		Buckets:   prometheus.ExponentialBuckets(0.0001, 2, 30),
	})
)

Functions

func RegisterMetrics

func RegisterMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

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