querystats

package
v0.21.0-victorialogs Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled returns true of query stats tracking is enabled.

func RegisterQuery

func RegisterQuery(query string, timeRangeMsecs int64, startTime time.Time)

RegisterQuery registers the query on the given timeRangeMsecs, which has been started at startTime.

RegisterQuery must be called when the query is finished.

func WriteJSONQueryStats

func WriteJSONQueryStats(w io.Writer, topN int, maxLifetime time.Duration)

WriteJSONQueryStats writes query stats to given writer in json format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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