mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 08:09:22 +00:00
### **User description** Add new metrics for aggregation cache: - zo_query_aggregation_cache_items - zo_query_aggregation_cache_bytes ___ ### **PR Type** Enhancement ___ ### **Description** - Add gauge metric for query aggregation cache items - Add gauge metric for query aggregation cache bytes - Register new aggregation cache metrics ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>metrics.rs</strong><dd><code>Add aggregation cache metrics</code> </dd></summary> <hr> src/config/src/metrics.rs <li>Define <code>QUERY_AGGREGATION_CACHE_ITEMS</code> IntGaugeVec<br> <li> Define <code>QUERY_AGGREGATION_CACHE_BYTES</code> IntGaugeVec<br> <li> Register both new metrics in <code>register_metrics</code> </details> </td> <td><a href="https://github.com/openobserve/openobserve/pull/7230/files#diff-950d37bdd77aa533539acd818a3fcdebd90ccb1f09acb5490b9c0f9b51cb2090">+32/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details>