Skip to content

Record negative cpu / cu value as metic - #14945

Merged
mergify[bot] merged 7 commits into
matrixorigin:mainfrom
xzxiong:fix_cu
Mar 13, 2024
Merged

mergify[bot] merged 7 commits into
matrixorigin:mainfrom
xzxiong:fix_cu

Conversation

@xzxiong

@xzxiong xzxiong commented Mar 13, 2024

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #14926

What this PR does / why we need it:

change:

  1. pass negative cu value while collecting cu metric
  2. add new metric mo_trace_negative_cu_total to record negative cpu/cu case.

@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Mar 13, 2024
@mergify mergify Bot added the kind/bug Something isn't working label Mar 13, 2024
xzxiong added a commit to xzxiong/matrixone that referenced this pull request Mar 13, 2024
@xzxiong xzxiong mentioned this pull request Mar 13, 2024
1 of 7 tasks
@mergify
mergify Bot merged commit cf8704f into matrixorigin:main Mar 13, 2024
@xzxiong
xzxiong deleted the fix_cu branch March 13, 2024 10:03
mergify Bot pushed a commit that referenced this pull request Mar 13, 2024
cherry-pick #14871, #14927, #14945
changes
1. support calculate cu while collect statement_info
2. add new metric sql_statement_cu, group by sql_source_type
- add new table `system_metrics.sql_statement_cu` for this metric
3. add new buildin function: `mo_cu()` and `mo_cu_v1()`
4. add new configuration `OBCUConfig` to set price config.

Approved by: @daviszhen, @aptend, @nnsgmsone, @ouyuanning, @m-schen, @badboynt1, @heni02, @aunjgr, @zhangxu19830126, @sukki37
@xzxiong xzxiong changed the title Record negative cpu / cu value Record negative cpu / cu value as metic Mar 19, 2024
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
change:
1. pass negative cu value while collecting cu metric
2. add new metric `mo_trace_negative_cu_total` to record negative cpu/cu case.

Approved by: @aptend, @qingxinhome, @daviszhen, @zhangxu19830126
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants