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 calculating percentiles in testreport finalization #810

Open
wants to merge 3 commits into
base: ccip-develop
Choose a base branch
from

Conversation

emate
Copy link

@emate emate commented May 6, 2024

Motivation

Calculate and report percentiles at the finalization of CCIP tests to cover cases where it's impossible to calculate them from Loki due to the max log lines fetch limit.

Solution

Gather all durations per phase within the AggregatorMetrics and calculate percentiles at the finalization stage.

@emate emate force-pushed the emate/add-percentiles-calculation-for-ccip-tests branch from 01ba525 to fa9ea49 Compare May 6, 2024 10:16
integration-tests/ccip-tests/load/ccip_loadgen.go Outdated Show resolved Hide resolved
Min float64 `json:"min_duration_for_successful_requests(s),omitempty"`
Max float64 `json:"max_duration_for_successful_requests(s),omitempty"`
Avg float64 `json:"avg_duration_for_successful_requests(s),omitempty"`
Percentiles map[float64]float64 `json:"percentiles,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a way to directly calculate percentile from grafana queries? I am doing the same for min, max and avg

Copy link
Author

Choose a reason for hiding this comment

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

@AnieeG unfortunately, it's not possible in cases when the number of messages is larger than the limit for fetching log lines from Loki.

@emate emate marked this pull request as ready for review May 30, 2024 11:15
@emate emate requested review from jasonmci, mateusz-sekara and a team as code owners May 30, 2024 11:15
@emate emate requested a review from AnieeG May 30, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants