Files
openobserve/src
Hengfei Yang 8feab009f8 feat: add metrics for agg cache (#7230)
### **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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</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>&nbsp;
&nbsp; </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>
2025-06-18 19:38:10 +08:00
..
2025-06-17 21:08:48 +05:30
2025-06-17 21:08:48 +05:30
2025-06-17 21:08:48 +05:30
2025-06-17 21:08:48 +05:30