metricskey

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPReqPerf = metrics.Describe{
		Name:         "http_requests_perf",
		Type:         metrics.TypeSample,
		RequiredTags: []string{"verb", "status", "uri"},
		Help:         "provides quantiles for HTTP request.",
	}
	HTTPReqByRole = metrics.Describe{
		Name:         "http_requests_role",
		Type:         metrics.TypeCounter,
		RequiredTags: []string{"verb", "status", "uri", "role"},
		Help:         "provides counts for HTTP request by role.",
	}

	GRPCReqPerf = metrics.Describe{
		Name:         "rpc_requests_perf",
		Type:         metrics.TypeSample,
		RequiredTags: []string{"api", "status"},
		Help:         "provides quantiles for gRPC request.",
	}
	GRPCReqByRole = metrics.Describe{
		Name:         "rpc_requests_role",
		Type:         metrics.TypeCounter,
		RequiredTags: []string{"api", "status", "role"},
		Help:         "provides counts for gRPC request by role.",
	}

	// StatsVersion is gauge metric for app version
	StatsVersion = metrics.Describe{
		Type: metrics.TypeGauge,
		Name: "version",
		Help: "version provides the deployed version",
	}
	// HealthLogErrors is counter metric for log errors
	HealthLogErrors = metrics.Describe{
		Type:         metrics.TypeCounter,
		Name:         "log_errors",
		Help:         "log_errors provides the counter of errors in logs",
		RequiredTags: []string{"pkg", "build"},
	}
)

Descriptions of emited metrics keys

Metrics returns slice of metrics from 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