CloudFoundry App Monitor

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?

Type the --help option to see the help.

$ python --help
Usage: usage [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:
  -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, consider as the DOMAIN. The APP is the application that needs to be monitored, and USERNAME and PASSWORD are credentials to the that hosted the APP. So the command would look like this. INTERVAL is optional, and can be at a minimum 5.

$ python -d -a app -u user -p pass -i 10

This would display the APP stats every 10 seconds.

Plese feel free to use it or build on it as you please.

Show Comments