metrics

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides prometheus metrics

Index

Constants

View Source
const (
	// STATS_ARRAY_LEN size of array for statistical data
	STATS_ARRAY_LEN int = 100 //nolint
)

Variables

This section is empty.

Functions

func IncrementAPIRequests

func IncrementAPIRequests(uri, method string)

IncrementAPIRequests increments api endpoint request

func IncrementHealthzError

func IncrementHealthzError(check string)

IncrementHealthzError increments check for healthz error check

func IncrementHealthzSuccess

func IncrementHealthzSuccess(check string)

IncrementHealthzSuccess increments check for healthz success check

func IncrementLLMChannelReadTimeouts

func IncrementLLMChannelReadTimeouts()

IncrementLLMChannelReadTimeouts increments read timeouts from channels

func IncrementLLMChannelSendTimeouts

func IncrementLLMChannelSendTimeouts()

IncrementLLMChannelSendTimeouts increments send timeouts from channels

func IncrementLLMChannelsCreated

func IncrementLLMChannelsCreated()

IncrementLLMChannelsCreated increments created llm channels

func IncrementLLMChannelsDeleted

func IncrementLLMChannelsDeleted()

IncrementLLMChannelsDeleted increments deleted llm channels

func IncrementLLMChannelsStreams

func IncrementLLMChannelsStreams()

IncrementLLMChannelsStreams increments llm channel streams

func IncrementModels

func IncrementModels(model string)

IncrementModels increments model usage counter

func IncrementWSAuthFailures

func IncrementWSAuthFailures()

IncrementWSAuthFailures increments counter for websocket auth failures

func IncrementWorkloads

func IncrementWorkloads(wlType string)

IncrementWorkloads increments workload type

func NewMetrics

func NewMetrics()

NewMetrics initializes metrics

func SetVInfServerVersion

func SetVInfServerVersion(version, commit, date string)

SetVCDNServerVersion sets label version

Types

This section is empty.

Jump to

Keyboard shortcuts

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