Add metrics for "API JSON caching for tags endpoint"
The following discussion from !54975 (merged) should be addressed:
-
@smcgivern started a discussion: (+4 comments) Could we please add metrics to this? I think two counters would be fine to start with:
- Total number of calls.
- Number of calls where the result was found in the cache.
They don't have to be in this method necessarily, but I would like to be able to see the hit ratio of this caching. In future we'd also consider accepting a label value for the caller to set so we can view hit ratio by endpoint.