-
Hello, we have a usecase where we expect all metrics to contain a filter/metric_label:
metrics:
include:
match_type: expr
expressions:
- HasLabel("service")
resource_attributes:
filter/metric_resource:
metrics:
include:
match_type: regexp
resource_attributes:
- Key: service
Value: ".*" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, Could you please go through my question below and help me out with what I am missing: Unable to Filter Metrics Using Resource Attributes - resource_attributes #4887 I am sorry I am asking my own question instead of answering your question. I hope you don't mind. Thanks |
Beta Was this translation helpful? Give feedback.
-
For processors:
groupbyattrs:
keys:
- service.name |
Beta Was this translation helpful? Give feedback.
For
statsd
this can be achieved with groupbyattrs processor. It can move record-level attributes to resource, e.g.: