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

sql, ui: introduce sql.crud_query.count QPS metric #132922

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dhartunian
Copy link
Collaborator

Previously, customers struggled to get an accurate picture of "QPS" on a cluster, due to a number of factors.

First, our sql.query.count metric includes counts of transaction control statements which greatly inflate the "QPS" in a confusing way to a customer.

Second, the Metrics page in DB Console included a "QPS" metric which was a client-side sum of the insert/update/delete/select counters. This metric wasn't available to scrape or view in line graphs which led to confusion.

In this PR we introduce the sql.crud_query.count and sql.crud_query.started.count metric which is incremented along with the insert/update/delete/select counters.

This metric is added to the SQL chart at the top of the overview dashboard. That chart is renamed to have the title SQL Queries Per Second for clarity and the box on the right hand side now uses this metric directly.

Resolves: CRDB-25876
Epic: CRDB-37557

Release note (ops change): Two new metrics are available sql.crud_query.count and sql.crud_query.started.count which measure the number of insert/update/delete/select queries executed and started respectively.

@dhartunian dhartunian requested review from a team, arjunmahishi and aa-joshi and removed request for a team October 18, 2024 15:58
@dhartunian dhartunian requested a review from a team as a code owner October 18, 2024 15:58
@dhartunian dhartunian requested review from angles-n-daemons and removed request for a team October 18, 2024 15:58
Previously, customers struggled to get an accurate picture of "QPS" on
a cluster, due to a number of factors.

First, our `sql.query.count` metric includes counts of transaction
control statements which greatly inflate the "QPS" in a confusing way
to a customer.

Second, the Metrics page in DB Console included a "QPS" metric which
was a client-side sum of the insert/update/delete/select counters.
This metric wasn't available to scrape or view in line graphs which
led to confusion.

In this PR we introduce the `sql.crud_query.count` and
`sql.crud_query.started.count` metric which is incremented along with
the insert/update/delete/select counters.

This metric is added to the SQL chart at the top of the overview
dashboard. That chart is renamed to have the title `SQL Queries Per
Second` for clarity and the box on the right hand side now uses this
metric directly.

Resolves: CRDB-25876
Epic: CRDB-37557

Release note (ops change): Two new metrics are available
`sql.crud_query.count` and `sql.crud_query.started.count` which
measure the number of insert/update/delete/select queries executed and
started respectively.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@dhartunian dhartunian changed the title sql, ui: introduce crud_query.count QPS metric sql, ui: introduce sql.crud_query.count QPS metric Oct 18, 2024
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