samples-yabt icon indicating copy to clipboard operation
samples-yabt copied to clipboard

Expose DB Server stats

Open AKlaus opened this issue 4 years ago • 3 comments

Idea The current instance of yabt.ravendb.net is running on a free AWS instance. It's snappy and it's free, so it would be great if could showcase it.

Task [back-end] Have an API end-point and an area on the UI (under "System") to show the following stats:

  • Memory:
    • PhysicalMem: "4 GBytes",
    • FreeMem: "2.38 GBytes"
    • WorkingSet: "572.73 MBytes"
    • TotalMemoryMapped: "803.5 MBytes"
  • CPU:
    • ProcessorAffinity: 3
    • UserProcessorTime: "00:46:21.9687500"
  • DB stats:
    • CountOfIndexes: 4,
    • CountOfDocuments: 1080
    • SizeOnDisk: "259 MBytes"
  • DB performance metrics:
    • RequestsPerSec (FiveMinuteRate): 0.2
    • IndexedPerSec (FiveMinuteRate): 0.2

Link to the docs.

Task [front-end] Under the "System" area add another page with the DB stats image

AKlaus avatar Jan 30 '21 02:01 AKlaus

Been following this repo for some while. Can I take this issue and contribute to the repo @AKlaus ? :) Thanks

yj7o5 avatar Jun 12 '21 17:06 yj7o5

Hey mate! Yes sure, any help would be appreciated. Are you thinking to take on the back-end implementation or also the front-end? If both, I'd suggest to submit a PR for the back-end first. Happy to flesh out more details if needed

AKlaus avatar Jun 13 '21 02:06 AKlaus

Sounds good, yea I have got the changes for back-end I'll go ahead and submit a PR just for that and then can submit a PR for front-end separately.

yj7o5 avatar Jun 13 '21 22:06 yj7o5