Skip to content

Conversation

@jpinsonneau
Copy link
Contributor

@jpinsonneau jpinsonneau commented Oct 28, 2025

Description

Simply add DNS Name to display / db

  • To generate some DNS traffic:
apiVersion: v1
kind: Namespace
metadata:
  labels:
  name: dns-test
---
apiVersion: v1
kind: Pod
metadata:
  name: dnsutils-udp
  namespace: dns-test
spec:
  securityContext:
    seccompProfile:
      type: RuntimeDefault
  containers:
    - name: utils
      image: tutum/dnsutils
      command: ["/bin/sh", "-ec", "while :; do dig www.google.com; sleep 10; done"]
      securityContext:
        allowPrivilegeEscalation: false
        capabilities:
          drop: ["ALL"]
---
apiVersion: v1
kind: Pod
metadata:
  name: dnsutils-tcp
  namespace: dns-test
spec:
  securityContext:
    seccompProfile:
      type: RuntimeDefault
  containers:
    - name: utils
      image: tutum/dnsutils
      command: ["/bin/sh", "-ec", "while :; do dig www.google.com +tcp; sleep 10; done"]
      securityContext:
        allowPrivilegeEscalation: false
        capabilities:
          drop: ["ALL"]
DnsErrno|Dscp|DstAddr    |DstPort|Interface|Proto|SrcAddr   |SrcPort|Bytes|Packets|PktDropLatestDropCause|PktDropBytes|PktDropPackets|DnsId|DnsName                    |DnsFlagsResponseCode|DnsLatencyMs|TimeFlowRTTNs|
--------+----+-----------+-------+---------+-----+----------+-------+-----+-------+----------------------+------------+--------------+-----+---------------------------+--------------------+------------+-------------+
        |   0|10.244.2.13|  47143|         |    6|10.96.0.10|     53|  404|      4|                      |            |              | 6893|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.2.13|  47143|         |    6|10.244.0.4|     53|  404|      4|                      |            |              | 6893|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|172.18.0.4 |  43215|         |   17|10.244.0.4|     53|  232|      1|                      |            |              |48277|_grpc_config.collector     |NXDomain            |0           |             |
        |   0|10.244.1.14|  42136|         |   17|10.244.0.4|     53|  172|      1|                      |            |              | 6893|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.2.13|  47143|         |    6|10.244.0.4|     53|  404|      4|                      |            |              | 6893|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|172.18.0.4 |  62007|         |   17|10.244.0.4|     53|  223|      1|                      |            |              |54591|collector.netobserv-cli.svc|NXDomain            |0           |             |
        |   0|10.244.1.14|  42136|         |   17|10.244.0.4|     53|  172|      1|                      |            |              | 6893|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.1.14|  42136|         |   17|10.96.0.10|     53|  172|      1|                      |            |              | 6893|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|172.18.0.4 |  62007|         |   17|10.244.0.4|     53|  223|      1|                      |            |              |54591|collector.netobserv-cli.svc|NXDomain            |0           |             |
        |   0|172.18.0.4 |  43215|         |   17|10.244.0.4|     53|  232|      1|                      |            |              |48277|_grpc_config.collector     |NXDomain            |0           |             |
        |   0|172.18.0.3 |  58887|         |   17|10.244.0.2|     53|  205|      1|                      |            |              |35219|collector.netobserv-cli.svc|NoError             |0           |             |
        |   0|172.18.0.3 |  43272|         |   17|10.244.0.4|     53|  219|      1|                      |            |              | 3594|collector.netobserv-cli.svc|NXDomain            |0           |             |
        |   0|172.18.0.3 |  57774|         |   17|10.244.0.4|     53|  219|      1|                      |            |              |33572|collector.netobserv-cli.svc|NXDomain            |0           |             |
        |   0|172.18.0.3 |  58887|         |   17|10.244.0.2|     53|  205|      1|                      |            |              |35219|collector.netobserv-cli.svc|NoError             |0           |             |
        |   0|172.18.0.3 |  43272|         |   17|10.244.0.4|     53|  219|      1|                      |            |              | 3594|collector.netobserv-cli.svc|NXDomain            |0           |             |
        |   0|172.18.0.3 |  57774|         |   17|10.244.0.4|     53|  219|      1|                      |            |              |33572|collector.netobserv-cli.svc|NXDomain            |0           |             |
        |   0|10.244.2.13|  41203|         |    6|10.244.0.2|     53|  404|      4|                      |            |              |22691|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.2.13|  41203|         |    6|10.96.0.10|     53|  404|      4|                      |            |              |22691|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.1.14|  39766|         |   17|10.244.0.2|     53|  172|      1|                      |            |              |22691|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.2.13|  41203|         |    6|10.244.0.2|     53|  404|      4|                      |            |              |22691|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.1.14|  39766|         |   17|10.244.0.2|     53|  172|      1|                      |            |              |22691|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.1.14|  39766|         |   17|10.96.0.10|     53|  172|      1|                      |            |              |22691|iamnotavaliddomain.com     |NXDomain            |0           |             |
        |   0|10.244.0.2 |  44522|         |    6|172.18.0.1|     53|  267|      3|                      |            |              |38776|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  47371|         |   17|10.244.0.4|     53|  115|      1|                      |            |              |52045|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  47371|         |   17|10.244.0.4|     53|  115|      1|                      |            |              |52045|www.google.com             |NoError             |1           |             |
        |   0|10.244.2.14|  47371|         |   17|10.96.0.10|     53|  115|      1|                      |            |              |52045|www.google.com             |NoError             |1           |             |
        |   0|10.244.2.14|  41865|         |   17|10.244.0.4|     53|     |       |                      |            |              |54455|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  41865|         |   17|10.244.0.4|     53|  115|      1|                      |            |              |54455|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  41865|         |   17|10.96.0.10|     53|  115|      1|                      |            |              |54455|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  59563|         |   17|10.96.0.10|     53|  115|      1|                      |            |              |12786|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  59563|         |   17|10.244.0.4|     53|  115|      1|                      |            |              |12786|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  59563|         |   17|10.244.0.4|     53|  115|      1|                      |            |              |12786|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  55601|         |   17|10.244.0.4|     53|  115|      1|                      |            |              |29279|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  55601|         |   17|10.96.0.10|     53|  115|      1|                      |            |              |29279|www.google.com             |NoError             |0           |             |
        |   0|10.244.2.14|  55601|         |   17|10.244.0.4|     53|  115|      1|                      |            |              |29279|www.google.com             |NoError             |0           |             |

Dependencies

netobserv/netobserv-ebpf-agent#820
netobserv/network-observability-operator#2114

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.

  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

@openshift-ci
Copy link

openshift-ci bot commented Oct 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kalmanmeth for approval. For more information see the Code Review Process.

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

@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 13.87%. Comparing base (1654142) to head (ad21e6a).

Files with missing lines Patch % Lines
cmd/flow_db.go 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #406      +/-   ##
==========================================
+ Coverage   13.84%   13.87%   +0.03%     
==========================================
  Files          18       18              
  Lines        2731     2278     -453     
==========================================
- Hits          378      316      -62     
+ Misses       2329     1938     -391     
  Partials       24       24              
Flag Coverage Δ
unittests 13.87% <60.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cmd/flow_db.go 51.96% <60.00%> (+0.61%) ⬆️

... and 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant