Coder Social home page Coder Social logo

jboss-openshift-metrics-extension's Introduction

jboss-openshift-metrics-extension

Prerequisites

Create the following directory structure if it does not exist: $JBOSS_HOME/modules/org/quartz/main

Create $JBOSS_HOME/modules/org/quartz/main/module.xml with the following contents:

<module xmlns="urn:jboss:module:1.1" name="org.quartz">
  <resources>
    <resource-root path="quartz.jar"/>
  </resources>
  <dependencies>
    <module name="org.slf4j"/>
    <module name="javax.api"/>
  </dependencies>
</module>

Copy quartz.jar to $JBOSS_HOME/modules/org/quartz/main (e.g. from Maven Central, such as http://repo1.maven.org/maven2/org/quartz-scheduler/quartz/2.2.1/quartz-2.2.1.jar). Note that the jar must be called quartz.jar, or you'll need to adjust the module.xml file you created above.

Installation

  1. Run mvn package
  2. Create the following directory structure if it does not exist: $JBOSS_HOME/modules/com/openshift/metrics/main
  3. From your project directory, copy the contents of target/module/com/openshift/metrcis/main to the corresponding directory you created in the previous step

Configuration

In standalone.xml, add the following inside the <extensions> section:

<extension module="com.openshift.metrics"/>

Next, configure the metrics subsystem inside the <profile> section. Here is an example:

<subsystem xmlns="urn:redhat:openshift:metrics:1.0">
  <max-line-length>1024</max-line-length> <!-- optional, defaults to 1024 -->

  <metrics-group cron="*/5 * * * * ?">

    <source type="jboss" path="core-service=platform-mbean/type=memory-pool/name=CMS_Old_Gen">
      <metric source-key="usage.used" publish-key="oldgen.used" />

      <metric source-key="usage.max" publish-key="oldgen.max" />

      <metric source-key="usage.committed" publish-key="oldgen.committed" />
    </source>

    <source path="java.lang:type=Memory" type="mbean">
      <metric source-key="HeapMemoryUsage.used" publish-key="jmx.heap.used"/>
    </source>

  </metrics-group>
</subsystem>

You may also optionally add enabled="false" to a <metrics-group>, <source>, or <metric> to disable that element from being gathered and published.

jboss-openshift-metrics-extension's People

Contributors

ncdc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.