-
Notifications
You must be signed in to change notification settings - Fork 30
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-1955: fix wrong metrics for conversation tracking #1096
base: main
Are you sure you want to change the base?
Conversation
@jotak: This pull request references NETOBSERV-1955 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1096 +/- ##
==========================================
+ Coverage 62.42% 62.66% +0.23%
==========================================
Files 77 77
Lines 11581 11599 +18
==========================================
+ Hits 7230 7269 +39
+ Misses 3896 3878 -18
+ Partials 455 452 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
/ok-to-test |
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:4a1ca36 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-4a1ca36 Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-4a1ca36
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
Need https://issues.redhat.com/browse/NETOBSERV-2108 fix to land to test this PR |
@Amoghrd until NETOBSERV-2108 is done it's still possible to test the operator via the other alternatives (with operator-sdk, or with |
oh yeah its been a while since I used it, so had forgotten about it. Will test it using make deploy |
@jotak Could you rebase the PR |
/ok-to-test |
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:b3f2bf0 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-b3f2bf0 Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-b3f2bf0
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
@jotak I am not understanding how to go about verifying this. I deployed the operator and flowcollector with Conversations enabled. I am looking at the metrics for conversation tracking below Should I be looking at something specific here? |
@Amoghrd just compare the metrics dashboards with & without conversation tracking. Enabling conversation tracking should not make the metrics look very different, but without this PR, it did screw them up
|
@Amoghrd I took some screenshots to help:
|
This is fixing wrong metrics that are due to accumulating bytes/packets counters from heartbits, which are not relevant for accumulation. However, conversation tracking is still bad at providing accurate metrics for long-standing connections, as the ConnectionEnded event may be very long to come. So this is going to remain as a known limitation of Conversation Tracking.
e1ba68d
to
625ed21
Compare
New changes are detected. LGTM label has been removed. |
@jotak: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
This is fixing wrong metrics that are due to accumulating bytes/packets counters from heartbits, which are not relevant for accumulation.
However, conversation tracking is still bad at providing accurate metrics for long-standing connections, as the ConnectionEnded event may be very long to come. So this is going to remain as a known limitation of Conversation Tracking.
I don't think there's any urgency to backport this on 1.8
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.