usagereport-plugin

command module
v0.0.0-...-dfd5709 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

UsageReport Plugin

This CF CLI Plugin to shows memory consumption and application instances for each org and space you have permission to access.

wercker status

#Usage

For human readable output:

➜  usagereport-plugin git:(master) ✗ cf usage-report
Gathering usage information
Org platform-eng is consuming 53400 MB of 204800 MB.
	Space CFbook is consuming 128 MB memory (0%) of org quota.
		1 apps: 1 running, 0 stopped
		1 instances: 1 running, 0 stopped
Org krujos is consuming 512 MB of 10240 MB.
	Space development is consuming 0 MB memory (0%) of org quota.
		4 apps: 0 running, 4 stopped
		4 instances: 0 running, 4 stopped
	Space production is consuming 512 MB memory (5%) of org quota.
		1 apps: 1 running, 0 stopped
		2 instances: 2 running, 0 stopped
Org pcfp is consuming 7296 MB of 102400 MB.
	Space development is consuming 0 MB memory (0%) of org quota.
		0 apps: 0 running, 0 stopped
		0 instances: 0 running, 0 stopped
	Space docs-staging is consuming 512 MB memory (0%) of org quota.
		2 apps: 1 running, 1 stopped
		4 instances: 2 running, 2 stopped
	Space docs-prod is consuming 512 MB memory (0%) of org quota.
		3 apps: 1 running, 2 stopped
		5 instances: 2 running, 3 stopped
	Space guillermo-playground is consuming 2560 MB memory (2%) of org quota.
		1 apps: 1 running, 0 stopped
		5 instances: 5 running, 0 stopped
	Space haydon-playground is consuming 1024 MB memory (1%) of org quota.
		1 apps: 1 running, 0 stopped
		1 instances: 1 running, 0 stopped
	Space jkruck-playground is consuming 128 MB memory (0%) of org quota.
		1 apps: 1 running, 0 stopped
		1 instances: 1 running, 0 stopped
	Space rsalas-dev is consuming 0 MB memory (0%) of org quota.
		0 apps: 0 running, 0 stopped
		0 instances: 0 running, 0 stopped
	Space shekel-dev is consuming 1536 MB memory (1%) of org quota.
		3 apps: 3 running, 0 stopped
		3 instances: 3 running, 0 stopped
	Space shekel-qa is consuming 0 MB memory (0%) of org quota.
		0 apps: 0 running, 0 stopped
		0 instances: 0 running, 0 stopped
	Space hd-playground is consuming 0 MB memory (0%) of org quota.
		0 apps: 0 running, 0 stopped
		0 instances: 0 running, 0 stopped
	Space dwallraff-dev is consuming 1024 MB memory (1%) of org quota.
		1 apps: 1 running, 0 stopped
		1 instances: 1 running, 0 stopped
You are running 18 apps in 3 orgs, with a total of 27 instances.
		18 apps: 11 running, 7 stopped
		27 instances: 18 running, 9 stopped

CSV output:

➜  usagereport-plugin git:(master) ✗ cf usage-report -f csv
OrgName, SpaceName, SpaceMemoryUsed, OrgMemoryQuota, AppsDeployed, AppsRunning, AppInstancesDeployed, AppInstancesRunning
test-org, test-space, 256, 4096, 2, 1, 3, 2

##Installation #####Install from CLI

$ cf add-plugin-repo CF-Community http://plugins.cloudfoundry.org/
$ cf install-plugin 'Usage Report' -r CF-Community

#####Install from Source (need to have Go installed)

$ go get github.com/cloudfoundry/cli
$ go get github.com/krujos/usagereport-plugin
$ cd $GOPATH/src/github.com/krujos/usagereport-plugin
$ go build
$ cf install-plugin usagereport-plugin

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/cloudfoundry/cli/plugin/fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
_workspace/src/github.com/cloudfoundry/cli/plugin/rpc/fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
_workspace/src/github.com/onsi/ginkgo
Ginkgo is a BDD-style testing framework for Golang The godoc documentation describes Ginkgo's API.
Ginkgo is a BDD-style testing framework for Golang The godoc documentation describes Ginkgo's API.
_workspace/src/github.com/onsi/ginkgo/config
Ginkgo accepts a number of configuration options.
Ginkgo accepts a number of configuration options.
_workspace/src/github.com/onsi/ginkgo/ginkgo
The Ginkgo CLI The Ginkgo CLI is fully documented [here](http://onsi.github.io/ginkgo/#the_ginkgo_cli) You can also learn more by running: ginkgo help Here are some of the more commonly used commands: To install: go install github.com/onsi/ginkgo/ginkgo To run tests: ginkgo To run tests in all subdirectories: ginkgo -r To run tests in particular packages: ginkgo <flags> /path/to/package /path/to/another/package To pass arguments/flags to your tests: ginkgo <flags> <packages> -- <pass-throughs> To run tests in parallel ginkgo -p this will automatically detect the optimal number of nodes to use.
The Ginkgo CLI The Ginkgo CLI is fully documented [here](http://onsi.github.io/ginkgo/#the_ginkgo_cli) You can also learn more by running: ginkgo help Here are some of the more commonly used commands: To install: go install github.com/onsi/ginkgo/ginkgo To run tests: ginkgo To run tests in all subdirectories: ginkgo -r To run tests in particular packages: ginkgo <flags> /path/to/package /path/to/another/package To pass arguments/flags to your tests: ginkgo <flags> <packages> -- <pass-throughs> To run tests in parallel ginkgo -p this will automatically detect the optimal number of nodes to use.
_workspace/src/github.com/onsi/ginkgo/internal/remote
Aggregator is a reporter used by the Ginkgo CLI to aggregate and present parallel test output coherently as tests complete.
Aggregator is a reporter used by the Ginkgo CLI to aggregate and present parallel test output coherently as tests complete.
_workspace/src/github.com/onsi/ginkgo/reporters
Ginkgo's Default Reporter A number of command line flags are available to tweak Ginkgo's default output.
Ginkgo's Default Reporter A number of command line flags are available to tweak Ginkgo's default output.
_workspace/src/github.com/onsi/gomega
Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.
Gomega is the Ginkgo BDD-style testing framework's preferred matcher library.
_workspace/src/github.com/onsi/gomega/format
Gomega's format package pretty-prints objects.
Gomega's format package pretty-prints objects.
_workspace/src/github.com/onsi/gomega/gbytes
Package gbytes provides a buffer that supports incrementally detecting input.
Package gbytes provides a buffer that supports incrementally detecting input.
_workspace/src/github.com/onsi/gomega/gexec
Package gexec provides support for testing external processes.
Package gexec provides support for testing external processes.
_workspace/src/github.com/onsi/gomega/ghttp
Package ghttp supports testing HTTP clients by providing a test server (simply a thin wrapper around httptest's server) that supports registering multiple handlers.
Package ghttp supports testing HTTP clients by providing a test server (simply a thin wrapper around httptest's server) that supports registering multiple handlers.
_workspace/src/github.com/onsi/gomega/matchers
Gomega matchers This package implements the Gomega matchers and does not typically need to be imported.
Gomega matchers This package implements the Gomega matchers and does not typically need to be imported.
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL