-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add segment size metric on segment push #8387
add segment size metric on segment push #8387
Conversation
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.
Let's add some release notes on this added metrics.
Also note that different controller will have their own gauge value based on the segment uploaded to them
@@ -69,6 +69,10 @@ | |||
// Estimated size of offline table | |||
OFFLINE_TABLE_ESTIMATED_SIZE("OfflineTableEstimatedSize", false), | |||
|
|||
// Size of an uploaded offline segment | |||
OFFLINE_SEGMENT_SIZE("OfflineSegmentSize", false), |
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.
Let's name it LAST_PUSHED_SEGMENT_SIZE
to be more specific
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.
great suggestion
added. let me know if it's sufficient, please?
that's ok for us as we can aggregate the metric across dimension that do not include the controller host. any concerns on your end? |
Description
Adds an offline segment size metric only when a new segment is pushed. this is stored as a gauge and based on table name. This is useful to build detectors in case:
I tested this by deploying this change to one of our clusters, manually uploading a CSV file, and observing the metric in our metrics platform.
Upgrade Notes
Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)
backward-incompat
, and complete the section below on Release Notes)Does this PR fix a zero-downtime upgrade introduced earlier?
backward-incompat
, and complete the section below on Release Notes)Does this PR otherwise need attention when creating release notes? Things to consider:
release-notes
and complete the section on Release Notes)Release Notes
This adds a metric for the last pushed segment size in bytes after the segment is successfully pushed.
Documentation