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

Added documentation for CurrentMetrics #3010 #3016

Merged
merged 1 commit into from
Sep 1, 2018

Conversation

alexey-milovidov
Copy link
Member

No description provided.

@lfundaro
Copy link

lfundaro commented Sep 7, 2018

Hey guys, I didn't see/understand in this documentation, if one can know what's the time a select query takes. From my clickhouse logs I see how much it takes, but I was wondering if i can get the same in metrics sent to graphite. Thanks !

@alexey-milovidov
Copy link
Member Author

alexey-milovidov commented Sep 7, 2018

There is no such metric.

Explanation of related metrics:

ProfileEvents.Query
ProfileEvents.SelectQuery
ProfileEvents.InsertQuery

  • number of queries started in time interval (for example, one minute, if you export per-minute metrics to Graphite)

Metrics.Query

  • number of queries currently executing and the point of time.

We can add a metric about total time spent in queries execution. For example, we already have MergesTimeMilliseconds.

Also in current master version of ClickHouse there are other related metrics:

ClickHouse.ProfileEvents.UserTimeMicroseconds
ClickHouse.ProfileEvents.SystemTimeMicroseconds
ClickHouse.ProfileEvents.RealTimeMicroseconds
ClickHouse.ProfileEvents.OSCPUVirtualTimeMicroseconds

(that may be very similar to what you expect)

PS. For detailed info, I recommend to enable query_log.
https://clickhouse.yandex/docs/en/operations/settings/settings/#log_queries

@lfundaro
Copy link

Thank you @alexey-milovidov . Looking forward to see the addition of total time spent in queries execution

@Felixoid Felixoid deleted the metrics-documentation branch April 10, 2022 12:34
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