Skip to content

Implementation of new system metrics provider (Procfs)#10544

Merged
Akazz merged 17 commits intomasterfrom
akz/procfs_metrics
May 1, 2020
Merged

Implementation of new system metrics provider (Procfs)#10544
Akazz merged 17 commits intomasterfrom
akz/procfs_metrics

Conversation

@Akazz
Copy link
Copy Markdown
Contributor

@Akazz Akazz commented Apr 27, 2020

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

Changelog category (leave one):

  • New feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
(Only Linux) Clickhouse server now tries to fallback to ProcfsMetricsProvider when clickhouse binary is not attributed with CAP_NET_ADMIN capability to collect per-query system metrics (for CPU and I/O)

Detailed description / Documentation draft:
Several system metrics are now collected, provided that procfs is supported and enabled on the system:

  • OSCPUVirtualTimeMicroseconds
  • OSCPUWaitMicroseconds
  • OSIOWaitMicroseconds
  • OSReadChars
  • OSWriteChars
  • OSReadBytes
  • OSWriteBytes

This PR resolves #8787

@blinkov blinkov added the pr-improvement Pull request with some product improvements label Apr 27, 2020
@Akazz Akazz added the pr-feature Pull request with new product feature label Apr 27, 2020
Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

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

If I remember correctly, NETLINK is not working in Sandbox.
It means that there are perfect conditions to add a test for this PR.
(just check that some metrics has non-zero value)

@Akazz Akazz marked this pull request as ready for review April 28, 2020 15:03
@Akazz Akazz merged commit e9baaa4 into master May 1, 2020
@Akazz Akazz deleted the akz/procfs_metrics branch May 1, 2020 18:47
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 pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OS metrics without CAP_NET_ADMIN.

4 participants