-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(metrics): pvc namespace included in volume metrics
Signed-off-by: Antonin Ferrand <[email protected]>
- Loading branch information
1 parent
6999673
commit 7044532
Showing
2 changed files
with
47 additions
and
46 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...lease-specific/v1.6.0/test-pvc-name-and-namespace-included-in-volume-metrics.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Test PVC Name and Namespace included in the volume metrics | ||
--- | ||
|
||
## Related issues | ||
|
||
- https://github.com/longhorn/longhorn/issues/5297 | ||
- https://github.com/longhorn/longhorn-manager/pull/2284 | ||
|
||
## Test step | ||
|
||
**Given** created 2 volumes (volume-1, volume-2) | ||
|
||
**When** PVC created for volume (volume-1) | ||
And attached volumes (volume-1, volume-2) | ||
|
||
**Then** metrics with `longhorn_volume_` prefix should include `pvc="volume-1"` | ||
|
||
```bash | ||
curl -sSL http://10.0.2.212:32744/metrics | grep longhorn_volume | grep ip-10-0-2-151 | grep volume-1 | ||
longhorn_volume_actual_size_bytes{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_capacity_bytes{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 1.073741824e+09 | ||
longhorn_volume_read_iops{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_read_latency{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_read_throughput{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_robustness{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 1 | ||
longhorn_volume_state{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 2 | ||
longhorn_volume_write_iops{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_write_latency{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_write_throughput{namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
``` | ||
|
||
And metrics with `longhorn_volume_` prefix should include `pvc=""` for (volume-2) | ||
|
||
```bash | ||
> curl -sSL http://10.0.2.212:32744/metrics | grep longhorn_volume | grep ip-10-0-2-151 | grep volume-2 | ||
longhorn_volume_actual_size_bytes{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_capacity_bytes{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 1.073741824e+09 | ||
longhorn_volume_read_iops{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_read_latency{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_read_throughput{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_robustness{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 1 | ||
longhorn_volume_state{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 2 | ||
longhorn_volume_write_iops{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_write_latency{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_write_throughput{namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
``` |
46 changes: 0 additions & 46 deletions
46
...tent/manual/release-specific/v1.6.0/test-pvc-name-included-in-volume-metrics.md
This file was deleted.
Oops, something went wrong.