From ca1fd6d7f2eea8809ecb5d2c0409914dd9bae46f Mon Sep 17 00:00:00 2001 From: Timofei Larkin Date: Mon, 27 Oct 2025 15:13:32 +0300 Subject: [PATCH] [seaweedfs] Record bucket disk usage This patch adds a sidecar to the SeaweedFS volume statefulset with the filestat exporter which records file metrics about the bucket-* files. This provides a way to meter the object storage disk usage. ```release-note [seaweedfs] Measure and record the disk size of S3 buckets. ``` Signed-off-by: Timofei Larkin --- packages/system/seaweedfs/values.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/system/seaweedfs/values.yaml b/packages/system/seaweedfs/values.yaml index 05792a48..da6d8901 100644 --- a/packages/system/seaweedfs/values.yaml +++ b/packages/system/seaweedfs/values.yaml @@ -30,6 +30,21 @@ seaweedfs: type: "persistentVolumeClaim" size: "10Gi" maxVolumes: 0 + sidecars: |- + - name: exporter + image: mdoubez/filestat_exporter:latest + ports: + - containerPort: 9943 + name: filemetrics + args: + - "-config.file" + - "none" + - "-path.cwd" + - "/data1" + - "bucket-*.dat" + volumeMounts: + - mountPath: /data1/ + name: data1 filer: replicas: 2 # replication type is XYZ: