Skip to content

Instantly share code, notes, and snippets.

@toburger
Created May 29, 2013 07:58
Show Gist options
  • Save toburger/5668679 to your computer and use it in GitHub Desktop.
Save toburger/5668679 to your computer and use it in GitHub Desktop.
Based on this blog entry I've created a PowerShell single liner to retrieve to total database size: http://code-inside.de/blog/2013/05/28/wieviel-speicher-belegt-meine-ravendb-und-welchen-plan-bentige-ich-bei-cloudbird-oder-ravenhq/
"{0:N2} MB" -f ((((Invoke-WebRequest -uri http://localhost:8080/admin/stats -UseDefaultCredentials).Content | ConvertFrom-Json).LoadedDatabases | Measure-Object -Sum TotalDatabaseSize).Sum / 1MB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment