Skip to content

Commit

Permalink
feat: k3s pod dashboard
Browse files Browse the repository at this point in the history
This dashboard gives an overview of the k3s cluster as whole and a collapsable
and repeatable section for each pod.

The cpu metric was identified to be instantaneous cpu time in ns for a given
second. This makes the metric a bit tricky to work with as it does not play
nice with graphana/prometheus' rate intervals, but each value can be computed on
the whole by dividing it by 1bn.
  • Loading branch information
Reanmachine committed Sep 30, 2024
1 parent fee80e9 commit 0594833
Show file tree
Hide file tree
Showing 2 changed files with 996 additions and 1 deletion.
2 changes: 1 addition & 1 deletion METRICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Both memeory statistics from TrueNAS are exported on the onside the physical mem

|Metric name|Labels|Unit|Description|
|-----------|------|----|-----------|
|`k3s_pod_cpu`|`pod` the pod name|`ms/ns`|A number that represents the cpu usage of the pod. (cpu time in ms or ns needs to be tested)|
|`k3s_pod_cpu`|`pod` the pod name|`ns`|A number that represents the cpu usage of the pod. (cpu time in ns)|
|`k3s_pod_mem`|`pod` the pod name|`bytes`|The number of bytes of memory this pod is using.|
|`k3s_pod_net`|<ul><li>`pod` the pod name</li><li>`direction` the direction of network traffic</li></ul>|`bytes`|The number of bytes in/out of the pod over the network interface.|

Loading

0 comments on commit 0594833

Please sign in to comment.