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

pkg/sql/sqlstats: rework SQL stats flush metrics #120709

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

abarganier
Copy link
Contributor

Informs: #119779

Epic: CRDB-24527

This patch renames a few of the core metrics used to track the SQL stats
flush job to be more in-line with how the SQL activity update job's
metrics work.

Primarily, it renames them for consistency. It also changes the general
count metric to only track successful executions, so we can more
easily discern between failed and successful executions.

Release note (ops change): Metrics used to track the SQL stats
subsystem's task that flushes in-memory stats to persisted storage have
been reworked slightly to be more consistent with other metrics used in
the subsystem. The metrics are:

  • sql.stats.flushes.successful: Number of times SQL Stats are flushed
    successfully to persistent storage
  • sql.stats.flushes.failed: Number of attempted SQL Stats flushes that
    failed with errors
  • sql.stats.flush.latency: The latency of SQL Stats flushes to
    persistent storage. Includes failed flush attempts

Informs: cockroachdb#119779

This patch renames a few of the core metrics used to track the SQL stats
flush job to be more in-line with how the SQL activity update job's
metrics work.

Primarily, it renames them for consistency. It also changes the general
`count` metric to only track successful executions, so we can more
easily discern between failed and successful executions.

Release note (ops change): Metrics used to track the SQL stats
subsystem's task that flushes in-memory stats to persisted storage have
been reworked slightly to be more consistent with other metrics used in
the subsystem. The metrics are:

- `sql.stats.flushes.successful`: Number of times SQL Stats are flushed
   successfully to persistent storage
- `sql.stats.flushes.failed`: Number of attempted SQL Stats flushes that
   failed with errors
- `sql.stats.flush.latency`: The latency of SQL Stats flushes to
   persistent storage. Includes failed flush attempts
Fix a type in the measurement description for the
`sql.stats.activity.updates.failed` metric.

Release note: none
@abarganier abarganier requested review from a team and xinhaoz and removed request for a team March 19, 2024 17:47
Copy link

blathers-crl bot commented Mar 19, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@xinhaoz xinhaoz left a comment

Choose a reason for hiding this comment

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

nice!

@abarganier
Copy link
Contributor Author

TFTR!

bors r=xinhaoz

@craig
Copy link
Contributor

craig bot commented Mar 20, 2024

@craig craig bot merged commit ecedafa into cockroachdb:master Mar 20, 2024
21 of 22 checks passed
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.

3 participants