Aggregate a metric if another metric matches

Hi @all,

I have the following structure of metrics:

folder1.size_in_bytes
folder1.status

folder2.size_in_bytes
folder2.status

[…]

Now I want to sum all metrics “size_in bytes” where the metric “status” has the value 1.
Is that possible?
What I have to do?

BR

Hi,

Are you using Graphite as data source?

Marcus

Hi,

yes, I am using graphite.

BR

Jan

Hi,

With your current setup of metrics naming you can’t do filtering. I would suggest you to change naming schema so that the status are part of the naming schema for size_in_bytes, i.e.

folder1.status.1.size_in_bytes
folder2.status.1.size_in_bytes

Marcus