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

ttljob: add metrics to row level TTL #76701

Merged
merged 1 commit into from
Feb 21, 2022
Merged

Conversation

otan
Copy link
Contributor

@otan otan commented Feb 16, 2022

This commit adds metrics about the row-level TTL job. Note new metrics
are created on a per-TTL table basis, which forms the basis of the
"relation" label. This allows monitoring of TTL jobs per table.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan force-pushed the metrics branch 2 times, most recently from 45d547d to a2c2dba Compare February 17, 2022 10:04
@otan otan marked this pull request as ready for review February 17, 2022 10:04
@otan otan requested a review from a team as a code owner February 17, 2022 10:04
@otan otan requested review from samiskin and removed request for a team February 17, 2022 10:04
pkg/sql/ttl/ttljob/ttljob.go Outdated Show resolved Hide resolved
pkg/jobs/registry.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

minor nits and questions

pkg/sql/ttl/ttljob/ttljob.go Outdated Show resolved Hide resolved
pkg/sql/ttl/ttljob/ttljob.go Show resolved Hide resolved
pkg/sql/ttl/ttljob/ttljob.go Show resolved Hide resolved
pkg/sql/ttl/ttljob/ttljob.go Show resolved Hide resolved
pkg/sql/ttl/ttljob/ttljob.go Show resolved Hide resolved
pkg/sql/ttl/ttljob/ttljob.go Show resolved Hide resolved
@rafiss
Copy link
Collaborator

rafiss commented Feb 17, 2022

double post'd!

@otan otan force-pushed the metrics branch 2 times, most recently from d6f2ad4 to 3102d51 Compare February 18, 2022 03:08
@otan otan requested a review from rafiss February 18, 2022 03:10
@otan otan force-pushed the metrics branch 2 times, most recently from a782405 to 86690e8 Compare February 18, 2022 11:18
This commit adds metrics about the row-level TTL job. Note new metrics
are created on a per-TTL table basis, which forms the basis of the
"relation" label. This allows monitoring of TTL jobs per table.

Release note: None
@otan
Copy link
Contributor Author

otan commented Feb 21, 2022

bors r+

assuming nits are non-blocking, they've all been addressed!

@craig
Copy link
Contributor

craig bot commented Feb 21, 2022

Build succeeded:

@craig craig bot merged commit 1a89121 into cockroachdb:master Feb 21, 2022
}

func makeRowLevelTTLAggMetrics(histogramWindowInterval time.Duration) metric.Struct {
sigFigs := 2
Copy link
Contributor

Choose a reason for hiding this comment

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

btw, are we sure we want sigFigs=2? Wouldn't 1 be sufficient?

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.

4 participants