Show Table of Contents
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

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.