metrics

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementCacheHits

func IncrementCacheHits()

IncrementCacheHits increments the cache hits counter.

func IncrementCacheMisses

func IncrementCacheMisses()

IncrementCacheMisses increments the cache misses counter.

func IncrementTotalRequests

func IncrementTotalRequests()

IncrementTotalRequests increments the total requests counter.

func ObserveBackendResponseTime

func ObserveBackendResponseTime(duration float64)

ObserveBackendResponseTime records the response time from the backend.

func ObserveCacheHitResponseTime

func ObserveCacheHitResponseTime(duration float64)

ObserveCacheHitResponseTime records the response time for cache hits.

func ObserveCacheMissResponseTime

func ObserveCacheMissResponseTime(duration float64)

ObserveCacheMissResponseTime records the response time for cache misses.

func ObserveTotalResponseTime

func ObserveTotalResponseTime(duration float64)

ObserveTotalResponseTime records the overall response time.

func SetCacheItemCount

func SetCacheItemCount(count float64)

SetCacheItemCount sets the current number of items in the cache.

func StartMetricsServer

func StartMetricsServer(port int)

StartMetricsServer starts the Prometheus metrics server on the specified port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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