-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add skeleton for new delta to rate processor #4218
Add skeleton for new delta to rate processor #4218
Conversation
cdbee63
to
0e4680e
Compare
Hi @bogdandrutu and @jmacd , this is only the skeleton for a processor which converts delta to rate. Would you please take a look. |
Hi @bogdandrutu , would you please have a look? Can we get this merged so that I can rebase the acutal logic PR and get that reviewed? |
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.
In an ideal world, would this be part of a generic "metric transform processor" or the "generate metrics processor"?
Hi @bogdandrutu, I remember from our discussion (with you and @jmacd), we wanted to to make this an independent processor for the sake of decoupling features. I am not sure if I missed anything here. Also, this changes the metric types for the same metrics. So, I am OK to put them in the |
Both @jmacd and I suggested to decouple this logic from delta calculation, but my question was different. |
Thanks. I would prefer to put them in the metric transform processor as it does not generate new metrics but changes the type of the metrics. |
@punya as a leader of the metricstransform processor, I need your input :) |
@bogdandrutu and @punya I need a decision here. Please help to move forward with this. " CC: @alolita |
@bogdandrutu and @hossain-rayhan , sorry for the slow response here. I suggest we merge this as a separate processor. There are multiple ongoing efforts related to consolidating processors, and it is easier to merge than to split apart. |
Please fix lint issues, cannot merge |
Signed-off-by: Rayhan Hossain <[email protected]>
Co-authored-by: Anthony Mirabella <[email protected]>
Co-authored-by: Anthony Mirabella <[email protected]>
Co-authored-by: Anthony Mirabella <[email protected]>
7b74e11
to
2bbd7ef
Compare
Hi @bogdandrutu I rebased and I believe it passed the lint and unit test. Not sure why build-packages are on queue forever. |
* Add skeleton for delta to rate processor Signed-off-by: Rayhan Hossain <[email protected]> * Update processor/deltatorateprocessor/config.go Co-authored-by: Anthony Mirabella <[email protected]> * Update processor/deltatorateprocessor/doc.go Co-authored-by: Anthony Mirabella <[email protected]> * Update processor/deltatorateprocessor/factory.go Co-authored-by: Anthony Mirabella <[email protected]> Co-authored-by: Anthony Mirabella <[email protected]>
Signed-off-by: Rayhan Hossain [email protected]
Description:
This metric calculates rate (gauge) from delta (sum).
Link to tracking Issue: #3751
Testing: Unit tests added.
Documentation: README added.