Skip to content

Add DatafeedTimingStats.average_search_time_per_bucket_ms and TimingStats.total_bucket_processing_time_ms stats #44125

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

Merged
merged 4 commits into from
Jul 16, 2019

Conversation

przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Jul 9, 2019

This PR adds three new fields:

  • timing_stats.bucket_count and timing_stats.average_search_time_per_bucket_ms to _ml/datafeeds/_stats
  • timing_stats.total_bucket_processing_time_ms to _ml/jobs/_stats

Fields {average_search_time_per_bucket_ms, total_bucket_processing_time_ms} are calculated from other fields and not persisted in the job results index

Related to #29857

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@przemekwitek przemekwitek force-pushed the datafeed-more-timing-stats branch 4 times, most recently from 96e4f2a to 7335f8f Compare July 12, 2019 10:53
@przemekwitek przemekwitek changed the title Add average_bucket_search_time_ms field to DatafeedTimingStats Add average_search_time_per_bucket_ms field to DatafeedTimingStats Jul 12, 2019
@przemekwitek przemekwitek changed the title Add average_search_time_per_bucket_ms field to DatafeedTimingStats Add DatafeedTimingStats.average_search_time_per_bucket_ms and TimingStats. total_bucket_processing_time_ms metrics Jul 12, 2019
@przemekwitek przemekwitek changed the title Add DatafeedTimingStats.average_search_time_per_bucket_ms and TimingStats. total_bucket_processing_time_ms metrics Add DatafeedTimingStats.average_search_time_per_bucket_ms and TimingStats.total_bucket_processing_time_ms stats Jul 12, 2019
@przemekwitek przemekwitek force-pushed the datafeed-more-timing-stats branch 2 times, most recently from 581dc3b to 9ffd0dc Compare July 12, 2019 11:59
@przemekwitek przemekwitek marked this pull request as ready for review July 12, 2019 12:00
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample

1 similar comment
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample

@benwtrent benwtrent self-assigned this Jul 12, 2019
jobId,
getOrDefault(bucketCount, 0L),
getOrDefault(totalBucketProcessingTimeMs, 0.0),
minBucketProcessingTimeMs,
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure why we are NOT allowing bucketCount and totalBucketProcessingTimeMs to be null but we ARE allowing all the other stats to be null. It seems to be that we should do logical zero values across the board.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My thinking was that we should provide non-null values wherever possible to simplify dealing with the resulting stats.
We can do it for bucketCount and totalBucketProcessingTimeMs because "0" is natural default value for them.
However, Min, Max and AVG need at least one data point to be calculated so there is no natural default value here.
WDYT?

@przemekwitek przemekwitek force-pushed the datafeed-more-timing-stats branch from f6fedac to 1355f4f Compare July 15, 2019 12:43
@przemekwitek przemekwitek merged commit e2bdd43 into elastic:master Jul 16, 2019
@przemekwitek przemekwitek deleted the datafeed-more-timing-stats branch July 16, 2019 07:32
przemekwitek added a commit to przemekwitek/elasticsearch that referenced this pull request Jul 16, 2019
przemekwitek added a commit that referenced this pull request Jul 16, 2019
…imingStats.total_bucket_processing_time_ms stats (#44125) (#44404)
russcam added a commit to elastic/elasticsearch-net that referenced this pull request Oct 21, 2019
…e_ms to ml stats

Relates: elastic/elasticsearch#44125

This commit adds DatafeedTimingStats to DatafeedStats, and ExponentialAverageBucketProcessingTimePerHourMilliseconds to
JobStats.
russcam added a commit to elastic/elasticsearch-net that referenced this pull request Oct 21, 2019
…e_ms to ml stats (#4163)

Relates: elastic/elasticsearch#44125

This commit adds DatafeedTimingStats to DatafeedStats, and ExponentialAverageBucketProcessingTimePerHourMilliseconds to
JobStats.
russcam added a commit to elastic/elasticsearch-net that referenced this pull request Oct 21, 2019
…e_ms to ml stats (#4163)

Relates: elastic/elasticsearch#44125

This commit adds DatafeedTimingStats to DatafeedStats, and ExponentialAverageBucketProcessingTimePerHourMilliseconds to
JobStats.

(cherry picked from commit 83bf3e3)
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.

4 participants