6.7. metrics Script
With the release of OpenShift Enterprise 2.1, a metrics entry can be added to the cartridge’s
$cartridge_name/metadata/manifest.yml
to inform OpenShift Enterprise that it supports metrics.
Example 6.4. Metrics Entry
Metrics: - enabled
The
metrics
script must be an executable file in the $cartridge_name/bin/
directory.
Message Format
A metrics message must include the following fields and be written to standard out (STDOUT):
type=metric <metric name>=<metric value>
Example 6.5. Metrics Message Example
type=metric thread.count=5