Skip to content
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

[Merged by Bors] - feat(metrics): added metrics to smartengine #2726

Closed
wants to merge 3 commits into from
Closed

[Merged by Bors] - feat(metrics): added metrics to smartengine #2726

wants to merge 3 commits into from

Conversation

galibey
Copy link
Contributor

@galibey galibey commented Oct 20, 2022

So far, due to current implementation details, we can't send the following metrics:

  1. Input records count for chain and smartmodules.
  2. Output bytes count for chain and smartmodules.
  3. Smartmodule name for all metrics.

We will be able to add these metrics later, but it will require changes in the current implementation.

@galibey galibey requested review from sehz and nacardin October 20, 2022 16:26
Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice start

@galibey galibey marked this pull request as ready for review October 20, 2022 18:09
.u64_counter("fluvio.smartengine.chain.invocations")
.init();
let records = meter.u64_counter("fluvio.smartengine.chain.records").init();
let bytes = meter.u64_counter("fluvio.smartengine.chain.bytes").init();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the conventions, I think they use io instead of bytes because "bytes" is a unit used in the unit field.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. We will change it later. It won't be used in first version on UI, anyway

Copy link
Contributor

@nacardin nacardin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works, lets ship it!

@nacardin
Copy link
Contributor

bors r+

bors bot pushed a commit that referenced this pull request Oct 20, 2022
So far, due to current implementation details, we can't send the following metrics:
1. Input records count for chain and smartmodules.
2. Output bytes count for chain and smartmodules.
3. Smartmodule name for all metrics.

We will be able to add these metrics later, but it will require changes in the current implementation.
@bors
Copy link

bors bot commented Oct 20, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(metrics): added metrics to smartengine [Merged by Bors] - feat(metrics): added metrics to smartengine Oct 20, 2022
@bors bors bot closed this Oct 20, 2022
@galibey galibey deleted the feat/add-metrics-to-smartengine branch October 20, 2022 19:19
davidbeesley pushed a commit to davidbeesley/fluvio that referenced this pull request Oct 31, 2022
So far, due to current implementation details, we can't send the following metrics:
1. Input records count for chain and smartmodules.
2. Output bytes count for chain and smartmodules.
3. Smartmodule name for all metrics.

We will be able to add these metrics later, but it will require changes in the current implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants