Skip to content

Commit ef2bf23

Browse files
committed
feat: drop subsystem name in Storage Box status
1 parent 139cd0c commit ef2bf23

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
This exporter collects statistics from all **Storage Boxes** in your **Hetzner Cloud project** and exposes them as Prometheus metrics.
44

5+
## Exported Metrics
6+
7+
| Metric | Description | Labels |
8+
|--------|-------------|--------|
9+
| `storage_box_status` | Storage box status (1 = current, 0 = not). Possible status values: `initializing`, `active`, `locked`. | `storage-box`, `status` |
10+
| `storage_box_stats_size` | Total size of the storage box (bytes used) | `storage-box` |
11+
| `storage_box_stats_size_data` | Size of data in the storage box (bytes used) | `storage-box` |
12+
| `storage_box_stats_size_snapshots` | Size of snapshots in the storage box (bytes used) | `storage-box` |
13+
| `storage_box_type_size` | Total capacity of the storage box type (bytes used) | `storage-box` |
14+
515
## Docker Compose
616

717
```yaml

main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ var StorageBoxStatusList = []hcloud.StorageBoxStatus{
2727
var (
2828
status = promauto.NewGaugeVec(prometheus.GaugeOpts{
2929
Namespace: "storage_box",
30-
Subsystem: "status",
3130
Name: "status",
3231
}, []string{"storage-box", "status"})
3332

0 commit comments

Comments
 (0)