Skip to content

Added documentation for CurrentMetrics #3010#3016

Merged
alexey-milovidov merged 1 commit intomasterfrom
metrics-documentation
Sep 1, 2018
Merged

Added documentation for CurrentMetrics #3010#3016
alexey-milovidov merged 1 commit intomasterfrom
metrics-documentation

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

No description provided.

@lfundaro
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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