Skip to content

Add merge metric#7093

Merged
alexey-milovidov merged 5 commits intoClickHouse:masterfrom
millb:merges_counter_metric
Sep 26, 2019
Merged

Add merge metric#7093
alexey-milovidov merged 5 commits intoClickHouse:masterfrom
millb:merges_counter_metric

Conversation

@millb
Copy link
Copy Markdown
Contributor

@millb millb commented Sep 25, 2019

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • New Feature

Short description (up to few sentences):
New ProfileEvent Merge added. It counts the number of launched background merges.

M(SelectedRanges, "Number of (non-adjacent) ranges in all data parts selected to read from a MergeTree table.") \
M(SelectedMarks, "Number of marks (index granules) selected to read from a MergeTree table.") \
\
M(CountOfMerges, "") \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need description.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't have Count in the names of other metrics because counting is assumed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let it be named Merge.

@alexey-milovidov
Copy link
Copy Markdown
Member

Need to add a test that the value of this ProfileEvent is greater than zero after merge.

@alexey-milovidov
Copy link
Copy Markdown
Member

You should fill the description for changelog.

Add metric description.
Add test.
@millb millb changed the title Add CountOfMerges metric Add Merge metric Sep 26, 2019
@millb millb changed the title Add Merge metric Add merge metric Sep 26, 2019
@alexey-milovidov alexey-milovidov merged commit a2fc7e2 into ClickHouse:master Sep 26, 2019
@stavrolia stavrolia added the pr-feature Pull request with new product feature label Oct 1, 2019
@hustnn
Copy link
Copy Markdown
Contributor

hustnn commented Nov 21, 2019

Hi @alexey-milovidov

I want to add elapsed time for each stream like **BlockInputStream to get more detailed performance result? Is there any example on it?

Thanks.

@den-crane den-crane mentioned this pull request Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Pull request with new product feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants