-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processor/transform] introduce aggregate_on_attributes function for metrics #33334
[processor/transform] introduce aggregate_on_attributes function for metrics #33334
Conversation
6410117
to
bc8982a
Compare
9156fe4
to
2eb79ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on. I'm still working through it, just a few comments so far.
processor/transformprocessor/internal/metrics/func_agregate_label_value_metrics.go
Outdated
Show resolved
Hide resolved
processor/transformprocessor/internal/metrics/func_agregate_label_metrics.go
Outdated
Show resolved
Hide resolved
processor/transformprocessor/internal/metrics/func_agregate_label_metrics.go
Outdated
Show resolved
Hide resolved
processor/transformprocessor/internal/metrics/func_agregate_label_metrics.go
Outdated
Show resolved
Hide resolved
processor/transformprocessor/internal/metrics/func_agregate_label_metrics.go
Outdated
Show resolved
Hide resolved
processor/transformprocessor/internal/metrics/func_agregate_label_metrics.go
Outdated
Show resolved
Hide resolved
processor/transformprocessor/internal/metrics/func_aggregate_on_attributes_metrics.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At a high level this looks good to me, I only have one minor note on the documentation. The functionality here is complex, so I will do a deeper dive tomorrow on the aggregation itself.
@TylerHelmuth I'll comb over the aggregation logic in-depth, but do you agree with the overall design so far? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be very cool if metricstransformprocessor and transformprocessor could share a library for all the pdata manipulation parts of the business logic. That would make me feel more confident that the 2 processors are doing equivalent work.
Thanks for the reply, where would you prefer to place such a library? Since the logic is currently present in two separate packages. Would you prefer creating a new module for it? Thank you in advance! |
@odubajDT somewhere in Also let me know if you think that the way the metricstransformprocessor is setup will not allow this idea. I am hoping the fact that both processors use pdata makes it possible to share business logic. |
829b5c8
to
a1c9141
Compare
…metrics Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Co-authored-by: Evan Bradley <[email protected]>
Signed-off-by: odubajDT <[email protected]>
7a37f41
to
45a34ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@evan-bradley the readme updates look correct to me based on my understanding of the metrictransformprocessors functionality, please check
The new readme description is correct based on my understanding as well. Thanks for catching that. I may do some wordsmithing in the future since it's a slightly complex process, but I think what we have is sufficient for now. |
Link to tracking Issue: #16224
Changes:
aggregate_on_attributes
function (supporting sum/min/max/mean/median) for Sum, Gauge, Histogram, ExponentialHistogramDepends on #33669