metricskey

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PerfDbOperation is perf metric
	PerfDbOperation = metrics.Describe{
		Type:         metrics.TypeSample,
		Name:         "perf_db_query",
		Help:         "perf_db_query provides the sample metrics of db query",
		RequiredTags: []string{"method"},
	}

	// PerfTaskRun is perf metric
	PerfTaskRun = metrics.Describe{
		Type:         metrics.TypeSample,
		Name:         "perf_task_run",
		Help:         "perf_task_run provides the sample metrics of task run",
		RequiredTags: []string{"task"},
	}

	// PerfMethodRun is perf metric
	PerfMethodRun = metrics.Describe{
		Type:         metrics.TypeSample,
		Name:         "perf_method_run",
		Help:         "perf_method_run provides the sample metrics of method run",
		RequiredTags: []string{"pkg", "method"},
	}
)

Perf

View Source
var (
	// StatsDbTableRowsTotal is base for gauge metric for total rows in a table
	StatsDbTableRowsTotal = metrics.Describe{
		Type:         metrics.TypeGauge,
		Name:         "stats_table_rows",
		Help:         "provides total rows in a table",
		RequiredTags: []string{"table"},
	}
	StatsDbQueryCount = metrics.Describe{
		Type:         metrics.TypeCounter,
		Name:         "stats_db_query_count",
		Help:         "stats_db_query_count provides counter of DB queries",
		RequiredTags: []string{"method"},
	}
)

Stats

Metrics provides the list of emitted metrics by this repo

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