Looked around a bit to see if there was a way to monitor your application’s resource utilization. Found none, so got down write one myself, and here is a crued way to monitor the resource utilization stats at minimum 5s intervals.
How to Use it?
--help option to see the help.
$ python appmonitor.py --help Usage: usage appmonitor.py [options] Options: --version show program's version number and exit -h, --help show this help message and exit -d DOMAIN, --domain=DOMAIN Domain of your cloudfound installation, eg: cf.mydomain.com[Mandatory] -u USERNAME, --username=USERNAME Username to use to login[Mandatory] -p PASSWORD, --password=PASSWORD Password to use to login[Mandatory] -a APP, --app=APP Application to monitor[Mandatory] -i INTERVAL, --interval=INTERVAL Time interval between every check [Optional]
Assuming CF API endpoint is api.cf.domain.com, consider cf.domain.com as the
APP is the application that needs to be monitored, and
PASSWORD are credentials to the api.cf.domain.com that hosted the
APP. So the command would look like this.
INTERVAL is optional, and can be at a minimum
$ python appmonitor.py -d cf.domain.com -a app -u user -p pass -i 10
This would display the
APP stats every
Plese feel free to use it or build on it as you please.