Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional observability #14

Open
samber opened this issue Dec 30, 2024 · 0 comments
Open

Add optional observability #14

samber opened this issue Dec 30, 2024 · 0 comments

Comments

@samber
Copy link
Owner

samber commented Dec 30, 2024

metricTTLSecondDesc = prometheus.NewDesc(
	"cache_settings_ttl_second",
	"In-memory cache TTL duration.",
	[]string{"name"}, nil,
)

metricCapacityDesc = prometheus.NewDesc(
	"cache_settings_capacity",
	"In-memory cache capacity.",
	[]string{"name"}, nil,
)

metricMemByteDesc = prometheus.NewDesc(
	"cache_mem_byte",
	"In-memory cache RAM usage.",
	[]string{"name"}, nil,
)

metricLengthDesc = prometheus.NewDesc(
	"cache_length",
	"In-memory cache length.",
	[]string{"name"}, nil,
)

metricInsertionDesc = prometheus.NewDesc(
	"cache_insertion_total",
	"In-memory cache insertions.",
	[]string{"name"}, nil,
)

metricHitDesc = prometheus.NewDesc(
	"cache_hit_total",
	"In-memory cache hits.",
	[]string{"name"}, nil,
)

metricMissDesc = prometheus.NewDesc(
	"cache_miss_total",
	"In-memory cache misses.",
	[]string{"name"}, nil,
)

metricEvictionDesc = prometheus.NewDesc(
	"cache_eviction_total",
	"In-memory cache evictions.",
	[]string{"name"}, nil,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant