From 9c4b87e733e5c9d70bb351b3db21c81fbfd543ae Mon Sep 17 00:00:00 2001 From: Josh Voravong Date: Wed, 1 Mar 2023 19:00:41 -0700 Subject: [PATCH] Add functional test coverage for Network Explorer metrics --- CHANGELOG.md | 4 ++++ ci_scripts/sck_otel_values.yaml | 10 ++++++++ test/k8s_metrics_test/test_config_metrics.py | 25 +++++++++++++++++++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31fbbefda5..71c029f6b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +### Added + +- Add functional test coverage for Network Explorer metrics ([#684](https://github.com/signalfx/splunk-otel-collector-chart/pull/684) + ## [0.71.0] - 2023-03-01 ### Added diff --git a/ci_scripts/sck_otel_values.yaml b/ci_scripts/sck_otel_values.yaml index d54df01020..86bf2dfd33 100644 --- a/ci_scripts/sck_otel_values.yaml +++ b/ci_scripts/sck_otel_values.yaml @@ -103,3 +103,13 @@ clusterReceiver: - name: nodes - name: events mode: watch + +gateway: + replicaCount: 1 + resources: + limits: + cpu: 300m + memory: 300Mi + +networkExplorer: + enabled: true diff --git a/test/k8s_metrics_test/test_config_metrics.py b/test/k8s_metrics_test/test_config_metrics.py index 3d43285a6c..98980aee14 100644 --- a/test/k8s_metrics_test/test_config_metrics.py +++ b/test/k8s_metrics_test/test_config_metrics.py @@ -139,7 +139,30 @@ ("system.processes.count"), ("system.processes.created"), #Up Metrics - ("up") + ("up"), + # Network Explorer Metrics + ("tcp.bytes"), + ("tcp.active"), + ("tcp.packets"), + ("tcp.retrans"), + ("tcp.syn.timeouts"), + ("tcp.new_sockets"), + ("tcp.resets"), + ("tcp.rtt.num_measurements"), + ("tcp.rtt.average"), + ("udp.bytes"), + ("udp.packets"), + ("udp.active"), + ("udp.drops"), + ("http.status_code"), + ("http.active_sockets"), + ("http.client.duration_average"), + ("http.server.duration_average"), + ("dns.active_sockets"), + ("dns.responses"), + ("dns.timeouts"), + ("dns.client.duration_average"), + ("dns.server.duration_average") ]) def test_metric_name(setup, metric): '''