Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stats): add nexus stats grpc #1582

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

abhilashshetty04
Copy link
Member

@abhilashshetty04 abhilashshetty04 commented Jan 24, 2024

Sample nexus stats command

[nix-shell:~/dataplane/mayastor]# ./target/debug/io-engine-client -b 10.1.0.5 stats nexus
NAME                                 NUM_RD_OPS TOTAL_RD NUM_WR_OPS TOTAL_WR NUM_UNMAP_OPS TOTAL_UNMAPPED RD_LAT WR_LAT UNMAP_LATENCY MAX_RD_LAT MIN_RD_LAT       MAX_WR_LAT MIN_WR_LAT      
ec4e66fd-3b33-4439-b504-d49aba53da26 0          0 B      0          0 B      0             0 B            0      0      0             0          6611736227136040 0          6611736227136040

Added support to select a particular resource name as arg in io-engine-client command.

[nix-shell:~/dataplane/mayastor]# ./target/debug/io-engine-client -b 10.1.0.5 stats pool pool-1
NAME   NUM_RD_OPS TOTAL_RD  NUM_WR_OPS TOTAL_WR  NUM_UNMAP_OPS TOTAL_UNMAPPED RD_LAT WR_LAT UNMAP_LATENCY MAX_RD_LAT MIN_RD_LAT MAX_WR_LAT MIN_WR_LAT
pool-1 5          20.00 KiB 6          24.00 KiB 0             0 B            96     55     0             89         1          24         1         

[nix-shell:~/dataplane/mayastor]# ./target/debug/io-engine-client -b 10.1.0.5 stats pool pool-2
NAME   NUM_RD_OPS TOTAL_RD  NUM_WR_OPS TOTAL_WR  NUM_UNMAP_OPS TOTAL_UNMAPPED RD_LAT WR_LAT UNMAP_LATENCY MAX_RD_LAT MIN_RD_LAT MAX_WR_LAT MIN_WR_LAT
pool-2 3          12.00 KiB 4          16.00 KiB 0             0 B            88     15     0             84         1          9          1
  
[nix-shell:~/dataplane/mayastor]# ./target/debug/io-engine-client -b 10.1.0.5 stats nexus ec4e66fd-3b33-4439-b504-d49aba53da26
NAME                                 NUM_RD_OPS TOTAL_RD NUM_WR_OPS TOTAL_WR NUM_UNMAP_OPS TOTAL_UNMAPPED RD_LAT WR_LAT UNMAP_LATENCY MAX_RD_LAT MIN_RD_LAT       MAX_WR_LAT MIN_WR_LAT      
ec4e66fd-3b33-4439-b504-d49aba53da26 0          0 B      0          0 B      0             0 B            0      0      0             0          6611736227136040 0          6611736227136040



@abhilashshetty04 abhilashshetty04 changed the title feat(nexus_stats): add nexus stats grpc feat(stats): add nexus stats grpc Jan 24, 2024
Signed-off-by: Abhilash Shetty <abhilash.shetty@datacore.com>
@abhilashshetty04
Copy link
Member Author

bors merge

@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit 5ed2160 into develop Jan 30, 2024
3 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the nexus_stats branch January 30, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants