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

feat: change wasm metrics method #358

Merged
merged 2 commits into from
Nov 16, 2021

Conversation

brew0722
Copy link
Contributor

@brew0722 brew0722 commented Oct 26, 2021

Description

closes: #357

The metrics method for observing the wasm was the telemetry.
However, telemetry had performance degradation issues.
Change the method to use prometheus directly. In testing, this did not cause any performance degradation.

In addition to telemetry, wasm already had prometheus metrics for observing the cache of the VM internal implementation.
However, the observation method between our need and exist cache metrics is different .
Existing cache metrics are periodic observation by subscription of prometheus collector,
What we want is to happen at a point in time that run.

So add a new structure without refactoring the existing cache metrics.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

Jiyong Ha added 2 commits October 26, 2021 09:43
@brew0722 brew0722 self-assigned this Oct 26, 2021
@brew0722 brew0722 marked this pull request as draft October 26, 2021 01:04
@codecov
Copy link

codecov bot commented Oct 26, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@ae8b167). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #358   +/-   ##
=======================================
  Coverage        ?   53.09%           
=======================================
  Files           ?      643           
  Lines           ?    67383           
  Branches        ?        0           
=======================================
  Hits            ?    35778           
  Misses          ?    28659           
  Partials        ?     2946           

Copy link
Contributor

@whylee259 whylee259 left a comment

Choose a reason for hiding this comment

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

LGTM

@brew0722 brew0722 marked this pull request as ready for review November 16, 2021 01:22
Copy link
Contributor

@shiki-tak shiki-tak left a comment

Choose a reason for hiding this comment

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

LGTM

@loloicci
Copy link
Contributor

This looks not a refactor and looks like a changing feature. Isn't it? (this is tagged refactor in the title)

@brew0722 brew0722 changed the title refactor: change wasm metrics method feat: change wasm metrics method Nov 16, 2021
@brew0722
Copy link
Contributor Author

This looks not a refactor and looks like a changing feature. Isn't it? (this is tagged refactor in the title)

right, changed

Copy link
Contributor

@loloicci loloicci left a comment

Choose a reason for hiding this comment

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

LGTM! Fill the checkboxes in the description next time 🙇

@brew0722 brew0722 merged commit dfe56ef into Finschia:main Nov 16, 2021
@brew0722 brew0722 mentioned this pull request Nov 16, 2021
9 tasks
@brew0722 brew0722 deleted the feat/wasm-prometheus-metrics branch November 16, 2021 02:47
@zemyblue zemyblue mentioned this pull request Jan 26, 2022
5 tasks
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.

Support wasm telemetry items as Prometheus
4 participants