I've setup a server using gitolite3 to host repositories for our users. All these repos share the same disk (2.5 Tb ;-). They're mainly used as backup of all contents.
I'd like to monitor disk usage (possibly with statistics related to git-annex specificities) for these repos.
Would anyone suggest a solution (web based maybe), for easily monitoring the growth of the repos storage ?
Thanks in advance.
If you go to one of the repos and run
git annex info --json --bytes
you'll get a json object that has keys including "local annex size". You can extract that value, and feed it into a graphing engine, such as graphite, or whatever to generate graphs of the repo sizes over time.(Of course, you could do the same thing with
du
)