Todo
The creation of the production pages is prbably not working right
(The original entry is located in /tmp/cloud-metrics/doc/user_manual/source/manual.rst, line 582.)
Todo
Develop the documentation on how to set up the flask environment
(The original entry is located in /tmp/cloud-metrics/doc/user_manual/source/manual.rst, line 608.)
Todo
document the undocumented commands and include new output here once done.
(The original entry is located in /tmp/cloud-metrics/doc/user_manual/source/metrics.rst, line 112.)
Todo
Hyungro
(The original entry is located in /tmp/cloud-metrics/doc/user_manual/source/metrics.rst, line 139.)
Todo
Hyungro, what about the other commands? I do not think they are listed here.
(The original entry is located in /tmp/cloud-metrics/doc/user_manual/source/metrics.rst, line 146.)
Todo
integrate fg-=cleanup into fg-metric shell
(The original entry is located in /tmp/cloud-metrics/doc/user_manual/source/todo.rst, line 19.)
Todo
Hyungro, its unclear to me where this code is and how i can access it through the shell
(The original entry is located in /tmp/cloud-metrics/doc/user_manual/source/todo.rst, line 37.)
Todo
integrate fg-=cleanup into fg-metric shell
There is little need to have a second command to cleanup the table, this should become a plugin to the shell and be called with
fg-metric database .....
with the parameters from fg-clean-table
what is here cmd?
Todo
Hyungro, its unclear to me where this code is and how i can access it through the shell
Based on Jonathan’s code, we are able to get image counts via cmd2 tools. It’s established on ‘euca-describe-images’ command:
(Cmd) count_images
...
sazh72 1
debian-rm1984 1
pegasus-images 3
wchen-server-stage-1 2
...
There are additional options which might be useful,
(Cmd) count_image -u jdiaz jdiaz 7
(Cmd) count_images -u jdiaz -d jdiaz 7 IMAGE emi-1CA015A7 centos-image-bucket/centos.5-3.x86-64.img.manifest.xml taklwu available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-DBC4106B ubuntu-0904-saga-1.5.2/image.manifest.xml luckow available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-F840162A myubuntubucket/ubuntufloeserver.img.manifest.xml sreedharnat1 available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE eki-7A031340 mybucket/vmlinuz-2.6.28-11-generic.manifest.xml ajyounge available public x86_64 kernel instance-store IMAGE emi-E5D514DA jdiaz/ubuntunattyjdiaz3595279807.img_0.manifest.xml javidiaz available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-46861248 jdiaz/centos6jdiaz2698814667.img.manifest.xml javidiaz available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-431F1230 jdiaz/centos6jdiaz2710350825.img.manifest.xml javidiaz available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-0E0E165E ajyounge/ubuntu-twister-memcached.img.manifest.xml ajyounge available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-A5B6148A ajyounge/ubuntu-lucid-minimal.img.manifest.xml ajyounge available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-4A051306 ajyounge/ubuntu-lucid-mpj.img.manifest.xml ajyounge available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-48141244 ajyounge/ajyounge-1563160039.img.manifest.xml ajyounge available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store IMAGE emi-FC6A1197 ajyounge/ubuntu-natty.img.manifest.xml ajyounge available public x86_64 machine eki-78EF12D2 eri-5BB61255 instance-store
e.g. total image counts, total user counts, average image counts per user, and maximum image counts and userid:
(Cmd) count_images -s ... = Summary = Total image counts: 128 Total user counts: 71 Average image counts per user: 1.80281690141 Maximum image counts and userid: ajyounge has 12 ==========