-
Notifications
You must be signed in to change notification settings - Fork 817
Renamed table-manager metrics to remove cortex_dynamo prefix #2307
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
Renamed table-manager metrics to remove cortex_dynamo prefix #2307
Conversation
@bboreham What's your take on this renaming? |
26aa87c
to
3374448
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to rename them more neutrally; I had a couple of comments on wording.
Maybe I'm out of the loop re prefixing metrics with component name, but table_manager
doesn't add much, and units
is opaque.
Do you want to do cortex_dynamo_consumed_capacity_total
at the same time?
fc35d7c
to
90cf30d
Compare
I 100% agree on removing the |
I'm not sure it's correct to remove the |
I cannot see that the consumed capacity is any more or less DynamoDB-specific than the provisioned capacity.
Until we move the place a metric is generated, split one service into two, etc. |
To my understanding, the consumed capacity metrics are increased only when you the DynamoDB client, while the provisioned capacity metric value is set regardless of backend index store used.
Given moving a piece of logic from a service to another doesn't look a frequent operation, we can always rename them, like we're renaming them in this PR. As of today, we have decided to not guarantee any non breaking changes in metrics even after Cortex 1.0, so until this policy won't change doesn't look a big deal to me (given it's not my/our intention to abuse of it, but it's option we'll have). |
It's set to zero for everything except DynamoDB. This is not a good basis to argue from. Any store could have a concept of provisioned and consumed capacity. The ones that I know do are DynamoDB and CosmosDB, but Cortex doesn't yet have any code to set and fetch CosmosDB capacity. |
No wait, it won't be zero, it will be the default flag values of 1000 and 300. |
Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
…ager_table_capacity Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Marco Pracucci <[email protected]>
7c9acd4
to
6b5e2c9
Compare
Signed-off-by: Marco Pracucci <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"doing synching tables" doesn't sound right to me, but I guess that text is unlikely to be read by many people.
Signed-off-by: Marco Pracucci <[email protected]> Co-Authored-By: Bryan Boreham <[email protected]>
@bboreham I think you already gave me this feedback previously and I lost the fix at some point. Sorry for that. Accepted your suggestion to fix it 🙏 |
What this PR does:
I've noticed that a couple of table-manager metrics have the
cortex_dynamo
prefix. I'm proposing to rename them to thecortex_table_manager
prefix for clarity.Which issue(s) this PR fixes:
N/A
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]