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

Add deadletter/read-from-source metrics to batch and stream ingestion #1223

Merged
merged 6 commits into from
Dec 24, 2020

Conversation

terryyylim
Copy link
Member

@terryyylim terryyylim commented Dec 9, 2020

Signed-off-by: Terence terencelimxp@gmail.com

What this PR does / why we need it:
There are several new metrics (reported by ingestion job) added:

  • read from source
  • wrote to deadletters

Also few bugs fixed:

  1. Counter reset after sending to statsd.
  2. Generating correct timestamp for test data

Some existing metrics were renamed to unify naming across all metrics.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Users can now view deadletter/read-from-source metrics in their configured monitoring system.

batchDF
.filter(!validator.checkAll)
.mapPartitions(iter => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we convert this lambda into method of DeadLetterMetrics

batchDF
.filter(!validator.checkAll)
.mapPartitions(iter => {
val res = iter
.map(row => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really need to iterate over all rows instead of just increment metric once by iter.length?

@pyalex
Copy link
Collaborator

pyalex commented Dec 10, 2020

@terryyylim please add some testing

terryyylim and others added 4 commits December 23, 2020 16:50
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
@pyalex pyalex changed the title Add deadletter metrics to batch and stream ingestion Add deadletter/read-from-source metrics to batch and stream ingestion Dec 24, 2020
@pyalex
Copy link
Collaborator

pyalex commented Dec 24, 2020

/test test-end-to-end-gcp

Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
@pyalex
Copy link
Collaborator

pyalex commented Dec 24, 2020

/test test-end-to-end

Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pyalex, terryyylim

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pyalex
Copy link
Collaborator

pyalex commented Dec 24, 2020

/lgtm

@feast-ci-bot feast-ci-bot merged commit 4dbdb76 into feast-dev:master Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants