Skip to content

[Q] Does aggregation-rule works with tagged metrics? #887

@whispererli

Description

@whispererli

Hello all,

I got a question regarding how to apply aggregation rules to tagged metrics.
My test metrics are looking like:
request_count;app=test;api=test1;status_code=400
and my aggregation rule is:
request_count;app=<env>;api=<api>;status_code=<status_code> (60) = sum request_count;app=<\<env>>;api=<\<api>>;status_code=<\<status_code>>
When inject the metrics to carbon-aggregator I got follow errors:
27/03/2020 17:09:37 :: [console] Couldn't match metric request_count;app=test;api=test1;status_code=400 with any aggregation rule. Passing on un-aggregated. 27/03/2020 17:09:37 :: [console] Couldn't match metric request_count;app=test;api=test1;status_code=200 with any aggregation rule. Passing on un-aggregated. 27/03/2020 17:09:37 :: [console] Couldn't match metric request_count;app=test;api=test3;status_code=200 with any aggregation rule. Passing on un-aggregated.
Changed aggregation rule to request_count (60) = sum request_count also not works.
Can't find an example about how to set aggregation rule with tagged metrics. Is there a way to do that? Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions