Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix(tests): call Metrics.load_from_file directly in the pods filter test (#12475)

Vikrant Gupta530c050b712b
diff --git a/tests/integration/tests/inframonitoring/02_pods.py b/tests/integration/tests/inframonitoring/02_pods.py
index dae249b2fc..4c66ffa694 100644
--- a/tests/integration/tests/inframonitoring/02_pods.py
+++ b/tests/integration/tests/inframonitoring/02_pods.py
@@ -468,8 +468,8 @@ def test_pods_filter_pagination_and_ordering(
crashloopbackoff matches 4 pods in pods_phases.jsonl: clbo-a, clbo-b, run-p, unk-p."""
now = datetime.now(tz=UTC).replace(microsecond=0)
insert_metrics(
- _load_pods_metrics(
- "inframonitoring/pods_phases.jsonl",
+ Metrics.load_from_file(
+ get_testdata_file_path("inframonitoring/pods_phases.jsonl"),
base_time=now - timedelta(minutes=4),
)
)