Platform

Dragonfly cache Prometheus metrics

Exposes legacy Dragonfly cache metrics in Prometheus text exposition format: lifetime hit/miss/error/operation counters plus current-window gauges for hit ratio, health score, average latency and throughput. Requires no authentication.

GET
/metrics/cache

Exposes legacy Dragonfly cache metrics in Prometheus text exposition format: lifetime hit/miss/error/operation counters plus current-window gauges for hit ratio, health score, average latency and throughput. Requires no authentication.

Response Body

text/plain

text/plain

curl -X GET "https://example.com/metrics/cache"
"# HELP cache_hits_total Total number of cache hits\n# TYPE cache_hits_total counter\ncache_hits_total 482910\n\n# HELP cache_misses_total Total number of cache misses\n# TYPE cache_misses_total counter\ncache_misses_total 13402\n\n# HELP cache_errors_total Total number of cache errors\n# TYPE cache_errors_total counter\ncache_errors_total 0\n\n# HELP cache_operations_total Total number of cache operations\n# TYPE cache_operations_total counter\ncache_operations_total 496312\n\n# HELP cache_hit_ratio Current cache hit ratio\n# TYPE cache_hit_ratio gauge\ncache_hit_ratio 0.97\n\n# HELP cache_health_score Cache health score (0-100)\n# TYPE cache_health_score gauge\ncache_health_score 99.20\n\n# HELP cache_avg_latency_ms Average cache operation latency in milliseconds\n# TYPE cache_avg_latency_ms gauge\ncache_avg_latency_ms 0.41\n\n# HELP cache_requests_per_second Current requests per second\n# TYPE cache_requests_per_second gauge\ncache_requests_per_second 1284.00\n"
"# Cache service not available\n"