Search

6.7. metrics Script

download PDF
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
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.

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.

© 2024 Red Hat, Inc.