Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ktop for openSUSE:Factory checked in 
at 2026-11-26 18:32:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ktop (Old)
 and      /work/SRC/openSUSE:Factory/.ktop.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ktop"

Thu Nov 26 18:32:15 2026 rev:13 rq:1400868 version:0.7.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/ktop/ktop.changes        2026-11-24 
17:02:50.210515656 +0100
+++ /work/SRC/openSUSE:Factory/.ktop.new.1340718/ktop.changes   2026-11-26 
18:32:26.463048581 +0100
@@ -1,0 +2,84 @@
+Thu Nov 26 06:35:56 UTC 2026 - Johannes Kastl 
<[email protected]>
+
+- Update to version 0.7.8:
+  ktop v0.7.8 resolves unbounded memory growth and scrape-time heap
+  spikes in the built-in Prometheus metrics collector (#176), fixes
+  ~/.ktop/config.yaml Prometheus configuration loading, and updates
+  Prometheus and CLI memory-tuning documentation.
+  * Prometheus Store & Ring Buffer Memory Fixes (prom)
+    - Lazy Ring Buffer Allocation (prom/ring_buffer.go): RingBuffer
+      now allocates backing storage lazily starting at 16 slots and
+      doubles up to its configured capacity rather than
+      pre-allocating MaxSamples (10,000 × 24 bytes = 240 KB)
+      immediately per series. Clear() zeroes backing elements to
+      avoid retaining references.
+      - Retention-Bounded Per-Series Capacity (prom/storage.go):
+        InMemoryStore bounds effective per-series ring buffer
+        capacity to what RetentionTime / ScrapeInterval (+
+        headroom) can produce, clamped to MaxSamples, preventing
+        long-running active series from growing to 10,000 slots
+        over extended uptime.
+      - Metadata & Stale Series Reclamation (prom/storage.go,
+        prom/controller.go):
+        - Removed the unbounded stringHandles map and delegated
+          InternString directly to unique.Make(s).Value() so
+          interned strings for deleted pods, containers, and cgroup
+          paths are eligible for garbage collection.
+        - Rebuilt labelNames and labelValues and compacted heavily
+          shrunk per-metric series maps during
+          cleanupExpiredSamples.
+        - Capped the periodic cleanup interval to at most 2 minutes
+          so expired series are reclaimed promptly.
+      - Reduced Query Allocations (prom/storage.go): Added
+        QueryLatestPerSeries for single-sample lookups and
+        batch-allocated MetricSample slices in QueryRangePerSeries.
+  * Streaming Scrape Filtering & cAdvisor Cardinality Reduction
+    (prom/scraper.go)
+    - Stream-Filtered Parsing: scrapeTarget streams responses via
+      req.Stream and filters Prometheus exposition lines against
+      DefaultMetricAllowlist before invoking expfmt.TextParser,
+      avoiding protobuf DTO allocation for non-allowlisted metric
+      families.
+    - Bounded Node Concurrency: scrapeAllTargets caps concurrent
+      node scrapes at 6 to bound peak heap usage on multi-node
+      clusters.
+    - cAdvisor Series Filtering: Drops unqueried cAdvisor series
+      during ingestion—including non-root/non-pod systemd and slice
+      cgroups (/system.slice/*, /kubepods.slice), pause containers
+      (container="POD"), per-core pod CPU series, pod-level network
+      series, and non-workload CFS/PSI series—while preserving all
+      queried node (id="/", including cgroups v1 per-core CPU
+      fallback) and pod/container series (including static-pod
+      container="" memory fallback).
+  * Refresh Allocation & Config Wiring Fixes (metrics/prom, k8s,
+    views/node, cmd, docs)
+    - Latest-Sample Memory Lookups (metrics/prom/prom_source.go):
+      GetAllPodMetrics and queryLatestSumFiltered use
+      QueryLatestPerSeries for working-set memory instead of
+      scanning 5-minute ranges on every 3-second pod refresh.
+    - Informer Read Without Deep Copy (k8s/pods_controller.go):
+      GetPodModels reads node allocatable resources directly from
+      the node informer lister without deep-copying full Node
+      objects.
+    - Reusable Node Info Header (views/node/detail.go): Reuses a
+      single tview.TextView in drawInfoHeader across refreshes.
+    - Config File Prometheus Settings (cmd/ktop.go): Applied
+      metrics.scrape_interval, metrics.retention,
+      metrics.max_samples, and metrics.components from
+      ~/.ktop/config.yaml when not overridden by CLI flags.
+    - Documentation (docs/prometheus.md, docs/cli.md): Updated
+      default --prometheus-scrape-interval documentation to 5s and
+      added a Memory Tuning guide covering CLI flags,
+      ~/.ktop/config.yaml, --ksm=off,
+      --metrics-source=metrics-server, and GOMEMLIMIT.
+  * Upgrade & Compatibility Notes
+    - Backward Compatibility: Fully backward compatible with
+      existing CLI flags, kubectl ktop plugin usage,
+      ~/.ktop/config.yaml files, and --noui JSON/JSONL output.
+    - Deprecations & Retractions: None.
+    - Migration Actions: None required. Existing
+      ~/.ktop/config.yaml files with max_samples: 10000 benefit
+      automatically from lazy ring-buffer allocation and
+      retention-bounded per-series caps.
+
+-------------------------------------------------------------------

Old:
----
  ktop-0.7.7.obscpio

New:
----
  ktop-0.7.8.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ktop.spec ++++++
--- /var/tmp/diff_new_pack.NkIH1N/_old  2026-11-26 18:32:28.458133109 +0100
+++ /var/tmp/diff_new_pack.NkIH1N/_new  2026-11-26 18:32:28.460133193 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           ktop
-Version:        0.7.7
+Version:        0.7.8
 Release:        0
 Summary:        A top-like tool for your Kubernetes clusters
 License:        Apache-2.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.NkIH1N/_old  2026-11-26 18:32:28.553137134 +0100
+++ /var/tmp/diff_new_pack.NkIH1N/_new  2026-11-26 18:32:28.564137600 +0100
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/vladimirvivien/ktop.git</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">refs/tags/v0.7.7</param>
+    <param name="revision">refs/tags/v0.7.8</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
     <param name="versionrewrite-pattern">v(.*)</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.NkIH1N/_old  2026-11-26 18:32:28.644140989 +0100
+++ /var/tmp/diff_new_pack.NkIH1N/_new  2026-11-26 18:32:28.654141413 +0100
@@ -3,6 +3,6 @@
                 <param 
name="url">https://github.com/vladimirvivien/ktop</param>
               <param 
name="changesrevision">741794d89c63c4e9898e31d14799317ee4aa7cfb</param></service><service
 name="tar_scm">
                 <param 
name="url">https://github.com/vladimirvivien/ktop.git</param>
-              <param 
name="changesrevision">17f09b0f53ea44f77ba6611139415271cb3f4a76</param></service></servicedata>
+              <param 
name="changesrevision">99b2fb7bd6d8a190c0c17ad16f5817d08e9a9696</param></service></servicedata>
 (No newline at EOF)
 

++++++ ktop-0.7.7.obscpio -> ktop-0.7.8.obscpio ++++++
++++ 1605 lines of diff (skipped)

++++++ ktop.obsinfo ++++++
--- /var/tmp/diff_new_pack.NkIH1N/_old  2026-11-26 18:32:29.187163996 +0100
+++ /var/tmp/diff_new_pack.NkIH1N/_new  2026-11-26 18:32:29.198164462 +0100
@@ -1,5 +1,5 @@
 name: ktop
-version: 0.7.7
-mtime: 1795483818
-commit: 17f09b0f53ea44f77ba6611139415271cb3f4a76
+version: 0.7.8
+mtime: 1795630982
+commit: 99b2fb7bd6d8a190c0c17ad16f5817d08e9a9696
 

++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/ktop/vendor.tar.gz 
/work/SRC/openSUSE:Factory/.ktop.new.1340718/vendor.tar.gz differ: char 79, 
line 1

Reply via email to