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
Copy to Clipboard Toggle word wrap
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>
Copy to Clipboard Toggle word wrap

Example 6.5. Metrics Message Example

type=metric thread.count=5
Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat