Documentation
¶
Index ¶
- func IncrementCacheHits()
- func IncrementCacheMisses()
- func IncrementTotalRequests()
- func ObserveBackendResponseTime(duration float64)
- func ObserveCacheHitResponseTime(duration float64)
- func ObserveCacheMissResponseTime(duration float64)
- func ObserveTotalResponseTime(duration float64)
- func SetCacheItemCount(count float64)
- func StartMetricsServer(port int)
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.
Click to show internal directories.
Click to hide internal directories.