# Adding label-type metadata to indices for monitoring agregation

**URL:** <https://discuss.elastic.co/t/adding-label-type-metadata-to-indices-for-monitoring-agregation/221474>\
**Category:** Elasticsearch\
**Created:** [February 28, 2020, 6:37pm UTC](https://discuss.elastic.co/t/adding-label-type-metadata-to-indices-for-monitoring-agregation/221474 "2020-02-28T18:37:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbr](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@vbr](https://discuss.elastic.co/u/vbr)\
**Post date:** [February 28, 2020, 6:37pm UTC](https://discuss.elastic.co/t/adding-label-type-metadata-to-indices-for-monitoring-agregation/221474/1 "2020-02-28T18:37:08Z")

</div>

Hi.  
I have daily indices, named on the patern `<project>-<client_id>-<date>`.  
I have monitoring enabled, and I am trying to create dashboards to figure out how much disk space is used by my indices.

The raw data is available (I'm using index\_stats.total.store.size\_in\_bytes). However, I would like to be able to group/filter based on the project or the client ID. The goal is to answer questions like "how much disk space is used by client X, and across which projects is that disk usage spread ?

While it's very easy to do outside of elastic (parse the name, add up everything, display the result), I haven't found a way to do this on kibana. I don't think scripted fields would work (since we want to do agregation), and I haven't found a way to attach metadata (such as client\_id) to the index.

Appart from having a batch or task update each index\_stats doc, is there a way I can group indexes on an arbitrary information ?

I haven't found a way to

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 27, 2020, 6:37pm UTC](https://discuss.elastic.co/t/adding-label-type-metadata-to-indices-for-monitoring-agregation/221474/2 "2020-03-27T18:37:13Z")

</div>

Closed on March 27, 2020, 6:37pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
