Skip to content

ttljob: add metrics to row level TTL#76701

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:metrics
Feb 21, 2022
Merged

ttljob: add metrics to row level TTL#76701
craig[bot] merged 1 commit intocockroachdb:masterfrom
otan-cockroach:metrics

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

@otan otan requested a review from rafiss February 16, 2022 20:23
@otan otan mentioned this pull request Feb 16, 2022
30 tasks
@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
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

@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

Comments