-
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
Expose Additional Realtime Ingestion Metrics #11685
Expose Additional Realtime Ingestion Metrics #11685
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.
Please refer to the definition for realtimeRowsConsumed
, where we can properly extract the topic and partition
Out of the scope of this PR, just realize we have different format for Gauge
(table name in the end), not sure if it is intentional. Ideally we should use the same format for Meter
, Timer
and Gauge
.
We may also consider updating the regex to match all meters following this format so that we don't need to keep updating it whenever adding a new meter |
I can add that but not sure of the regex preference rules. A metric can match multiple regex in that case. Any idea around this? |
Done |
table: "$1" | ||
tableType: "$2" | ||
topic: "$3" | ||
partition: "$5" |
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.
The partition label seems incorrect here. When I run your code I get the following
Input string 'pinot.server.meetupRsvp_OFFLINE-meetupRSVPEvents-1.realtimeRowsConsumed' matches the regex pattern: pinot.server.([^\.]*?)_(OFFLINE|REALTIME)\-(.+)\-(\w+).(invalidRealtimeRowsDropped|incompleteRealtimeRowsConsumed|rowsWithErrors|realtimeRowsConsumed)
metricName: pinot.server.meetupRsvp_OFFLINE-meetupRSVPEvents-1.realtimeRowsConsumed
Group 0: pinot.server.meetupRsvp_OFFLINE-meetupRSVPEvents-1.realtimeRowsConsumed
Group 1: meetupRsvp
Group 2: OFFLINE
Group 3: meetupRSVPEvents
Group 4: 1
Group 5: realtimeRowsConsumed
So it should be $4 and not $5, right?
And metric name should contain $5 instead of $4
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.
Changed as discussed
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.
LGTM!
invalidRealtimeRowsDropped
to measure decoding errors in stream.incompleteRealtimeRowsConsumed
to measure transformation errors whencontinueOnError
has been set to true.rowsWithErrors
to cover any error while processing a row (catch-all, covers both the cases above).JConsole output:
Regex test:
Output: