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: support cpu profile api #3279

Merged
merged 7 commits into from
Oct 14, 2024
Merged

feat: support cpu profile api #3279

merged 7 commits into from
Oct 14, 2024

Conversation

Yisaer
Copy link
Collaborator

@Yisaer Yisaer commented Oct 10, 2024

No description provided.

Signed-off-by: Song Gao <[email protected]>
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 17.24138% with 24 lines in your changes missing coverage. Please review.

Project coverage is 70.51%. Comparing base (7efb9c4) to head (8f6297b).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
internal/server/rest.go 4.17% 23 Missing ⚠️
internal/server/server.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3279      +/-   ##
==========================================
- Coverage   70.53%   70.51%   -0.01%     
==========================================
  Files         400      400              
  Lines       45064    45086      +22     
==========================================
+ Hits        31782    31791       +9     
- Misses      10742    10755      +13     
  Partials     2540     2540              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Song Gao <[email protected]>
Signed-off-by: Song Gao <[email protected]>
Copy link
Collaborator

@ngjaying ngjaying left a comment

Choose a reason for hiding this comment

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

Markdown check fails

Signed-off-by: Song Gao <[email protected]>
@@ -80,6 +80,10 @@ After version 2.0.0, we added connection-related metrics for source/sink.

The numeric types of these metrics can all be monitored using Prometheus. In the next section we will describe how to configure the Prometheus service in eKuiper.

View CPU running metrics for a rule

- kuiper_rule_cpuUsage: The CPU running indicator of the rule represents the CPU time used by the CPU in the past 30 seconds, in ms.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it better to comply with the metrics naming pattern (https://prometheus.io/docs/practices/naming/): kuiper_rule_cpu_ms?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Doc is not updated

@ngjaying ngjaying merged commit a0589be into lf-edge:master Oct 14, 2024
59 of 60 checks passed
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.

2 participants