Following the work on T418499: Attribution API MVP: Provide initial-pass base reference count we've implemented a basic count for references in articles requested through the Attribution API based on their HTML. We're requesting HTML from Parser cache or FlaggedRevs cache (see T421011: Implement support for FlaggedRevs in citation count for Attribution API).
Cache misses behavior is different to both of those cases:
- Using parser cache, a cache miss would trigger a parsing operation and eventually return the HTML.
- Using FlaggedRevs a cache miss will *not* trigger a parsing operation and there's a fallback for "no available answer".
This ticket aims to add monitoring and observability to this operations so we can continue to validate and monitor:
- How many cache misses we have in either cases
- Specifically how many cache misses we have that result in parsing action (which is expensive)
- How many pages requested from the Attribution API utilize FlaggedRevs
- How many of those pages have a FlaggedRevs cache-miss
Acceptance criteria
- [X ] Add monitoring data for the cases above.
- Add grafana dashboard --> Determine if new metrics require us to create a new dashboard, or if we can include these metrics in the new "per module" view.
- * New breakdown by modules --> Preferred