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-602 Fix query stats computed for topology #226

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

jotak
Copy link
Member

@jotak jotak commented Nov 8, 2022

https://issues.redhat.com/browse/NETOBSERV-602 (follow-up)

The biggest issue was stats being picked up only for the first metric, which obviously could not produce correct global statistics

On top of that, I did the following changes:

  • Use the already computed rates instead of computing it again
  • Decouple FlowsQuerySummary vs MetricsQuerySummary (separation of concerns; the two resulting components end up being quite different)
  • For overview, add more info in stats tooltip to help user understand what the 2 compared values are.

@jotak
Copy link
Member Author

jotak commented Nov 8, 2022

@memodi stats between flow table and topology are much more consistent:
Capture d’écran du 2022-11-08 14-27-38

Capture d’écran du 2022-11-08 14-27-31

@memodi
Copy link
Contributor

memodi commented Nov 8, 2022

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 8, 2022
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

New image: ["quay.io/netobserv/network-observability-console-plugin:4adc912"]. It will expire after two weeks.

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 8, 2022
@memodi
Copy link
Contributor

memodi commented Nov 8, 2022

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 8, 2022
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

New image: ["quay.io/netobserv/network-observability-console-plugin:894d882"]. It will expire after two weeks.

@jpinsonneau
Copy link
Contributor

/retest

Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

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

LGTM, just a small remark on tooltips

Comment on lines +191 to +218
"Filtered sum of top-k bytes / filtered total bytes": "Filtered sum of top-k bytes / filtered total bytes",
"Filtered top-k byte rate / filtered total byte rate": "Filtered top-k byte rate / filtered total byte rate",
"Filtered byte rate": "Filtered byte rate",
"Filtered sum of top-k packets / filtered total packets": "Filtered sum of top-k packets / filtered total packets",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep "Filtered" mention when we don't have filters ?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could have something more detailed per context, e.g.:

  • For flow queries: "Filtered sum of bytes" => "Sum of bytes from resulting flows"
  • For topology queries: "Filtered sum of bytes" => "Sum of bytes from resulting graph"
  • For overview queries: "Filtered sum of top-k bytes / filtered total bytes" => "Sum of bytes from resulting top-k metrics / from resulting total"

I don't know, it doesn't sound perfect either, I'm glad if someone comes up with a better proposal

@openshift-ci
Copy link

openshift-ci bot commented Nov 9, 2022

New changes are detected. LGTM label has been removed.

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 9, 2022
@memodi
Copy link
Contributor

memodi commented Nov 15, 2022

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 15, 2022
@github-actions
Copy link

New image: ["quay.io/netobserv/network-observability-console-plugin:6d872f1"]. It will expire after two weeks.

@jotak
Copy link
Member Author

jotak commented Nov 16, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Nov 16, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

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

The biggest issue was stats being picked up only for the first metric,
which obviously could not produce correct global statistics

On top of that, I did the following changes:
- Use the already computed rates instead of computing it again (in a different way)
- Decouple FlowsQuerySummary vs MetricsQuerySummary (separation of
  concerns; the two resulting components end up being quite different)
- For overview, add more info in stats tooltip to help user understand
  what the 2 compared values are.

fix merge issues

i18n gen
@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Nov 16, 2022
@jotak
Copy link
Member Author

jotak commented Nov 16, 2022

merging (@jpinsonneau previously approve, it was just rebased)

@jotak jotak merged commit fe0b8eb into netobserv:main Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants