csrmetrics

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package csrmetrics (Compute and Storage Resource Metrics) contains metrics definitions to be recorded for monitoring purposes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutboundRPCStartRecorder

func OutboundRPCStartRecorder(kind string) func(status OutboundRPCStatus)

OutboundRPCStartRecorder marks the start of a outbound RPC operation. Caller is responsible for calling the returned function, which records Prometheus metrics for this operation.

Types

type OutboundRPCStatus

type OutboundRPCStatus string

OutboundRPCStatus is a status string of the outbound RPC metric contains either status code or status string

const (
	OutboundRPCStatusNotFound OutboundRPCStatus = "not_found"
	OutboundRPCStatusError    OutboundRPCStatus = "error"
	OutboundRPCStatusOK       OutboundRPCStatus = "ok"
)

Status constants for metrics

Jump to

Keyboard shortcuts

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