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

NETOBSERV-226 matrix merger implementation #120

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

jpinsonneau
Copy link
Contributor

@jpinsonneau jpinsonneau commented Apr 11, 2022

Following #105 Matrix merger was not implemented

This adds the missing backend part to run topology queries keeping the fetchParallel approach.

I have some concerns about performances since we are replacing Loki Query Frontend role by splitting queries on our side. This can generate thousands internal queries.
https://grafana.com/docs/loki/latest/configuration/query-frontend/#parallelization

We can unlock the situation with this PR and decide what to do next after performance testing.

@openshift-ci
Copy link

openshift-ci bot commented Apr 11, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from jpinsonneau after the PR has been reviewed.

The full list of commands accepted by this bot can be found 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

pmodel "github.com/prometheus/common/model"
)

type MatrixMerger struct {

Choose a reason for hiding this comment

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

I'd document what MatrixMerger is

for r := range resChan {
//TODO: resp.Data.Stats are incorrect doing that
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@openshift-ci
Copy link

openshift-ci bot commented Apr 11, 2022

New changes are detected. LGTM label has been removed.

@jpinsonneau jpinsonneau merged commit 14fe7c0 into netobserv:main Apr 11, 2022
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.

2 participants