@kwirthmagnify/kwirth-plugin-metrics 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +51 -2
  2. package/back.js +756 -0
  3. package/front.js +838 -0
  4. package/package.json +15 -3
package/README.md CHANGED
@@ -1,3 +1,52 @@
1
- # Temporary Holding Version
1
+ # Metrics
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The channel that draws **real-time resource metrics** — CPU, memory, network and disk — as live charts in
4
+ **[Kwirth](https://kwirthmagnify.dev)**.
5
+
6
+ It reads straight from the kubelet/cAdvisor of your nodes through Kwirth's built-in `metrics` provider, so
7
+ there is **no Prometheus** (or any other scraping stack) to install. Pick a scope — a namespace, a
8
+ controller's pods, specific pods or a single container — choose the metrics, and the charts start filling.
9
+
10
+ > **Kwirth** is an open-source Kubernetes observability and operations tool: logs, metrics, events and more,
11
+ > in real time, extended with plugins like this one.
12
+ > Website: **https://kwirthmagnify.dev** · Source: **https://github.com/kwirthmagnify/kwirth**
13
+
14
+ ## What it is for
15
+
16
+ - **Watching CPU and memory** of a workload while it takes load.
17
+ - **Comparing** several namespaces or pods side by side (*merge*), or seeing them as a single total (*aggregate*).
18
+ - **A quick current value** of a metric, without a full chart.
19
+
20
+ It is also the channel Kwirth's **Magnify** opens when you ask for the metrics of a pod or a controller.
21
+
22
+ ## Installing it
23
+
24
+ From Kwirth: **☰ → Manage extensions → Plugins**, find **Metrics** in the marketplace and install it.
25
+
26
+ It needs the cluster's `metrics` provider, which ships with the Kwirth core on Kubernetes: nothing else to
27
+ install. Without a Kubernetes API (ECS, ACI, bare OS) there are no metrics to draw.
28
+
29
+ ## Configuration
30
+
31
+ The setup dialog picks the metrics (at least one), the depth of the charts (how many samples they keep),
32
+ how many charts per row, the sampling interval, and how several objects are drawn: one chart each, merged
33
+ into one chart, or aggregated into a single series. Each chart's menu changes its type (line, area, bar,
34
+ pie, value, treemap), stacking, labels, legend, and exports its data.
35
+
36
+ The user guide, with screenshots, lives in the Kwirth documentation:
37
+ **https://kwirthmagnify.dev** → Guide → Extensions → Plugins → Metrics.
38
+
39
+ ## Development
40
+
41
+ ```
42
+ npm install
43
+ node build.mjs # typechecks, then builds dist/ (front.js, back.js, package.json, README.md)
44
+ node watch.mjs # rebuilds on every change, without typecheck
45
+ ```
46
+
47
+ To run it from source, add it to `back/kwirth-dev.json` as `"metrics": "../plugins/metrics/dist"`. With
48
+ the watch running, a back change is hot-reloaded by the core; a front change needs a browser reload.
49
+
50
+ ## License
51
+
52
+ Same as Kwirth — see https://github.com/kwirthmagnify/kwirth.