Giter Site home page Giter Site logo

buffalo's Introduction

buffalo

web application instrumenting JBoss 7 to provide resource metrics to JBison

  1. Deploy the war file (copy into JBOSS_HOME/standalone/deployments)

  2. Start JBoss

  3. Navigate to http://127.0.0.1:8080/buffalo/rest/datasource/ExampleDS to gather metrics for the ExampleDS data source

  4. Deploy another data source (via mysql-ds.xml) and navigate to http://127.0.0.1:8080/buffalo/rest/datasource/TestDS/mysql-ds.xml

  5. Create a JSON monitor in JBison (https://jbison.com) to monitor the metrics exposed by buffalo

More details on my blog http://kijanowski.blogspot.com/2013/02/collecting-monitoring-and-charting.html

It is possible to collect one particular metric of all data sources, for example the number of available connections in the pool: http://127.0.0.1:8080/buffalo/rest/datasources/pool/AvailableCount Available parameters are:

  • ActiveCount
  • AvailableCount
  • AverageBlockingTime
  • AverageCreationTime
  • CreatedCount
  • DestroyedCount
  • MaxCreationTime
  • MaxUsedCount
  • MaxWaitTime
  • TimedOut
  • TotalBlockingTime
  • TotalCreationTime

Or the number of Prepared Statement Cache Access: http://127.0.0.1:8080/buffalo/rest/datasources/jdbc/PreparedStatementCacheAccessCount Available parameters are:

  • PreparedStatementCacheAccessCount
  • PreparedStatementCacheAddCount
  • PreparedStatementCacheCurrentSize
  • PreparedStatementCacheDeleteCount
  • PreparedStatementCacheHitCount
  • PreparedStatementCacheMissCount

The JVM memory stats are available at: http://127.0.0.1:8080/buffalo/rest/jvm/memory/heap-memory-usage http://127.0.0.1:8080/buffalo/rest/jvm/memory/non-heap-memory-usage

The JVM memory pool stats are available at: http://127.0.0.1:8080/buffalo/rest/jvm/memory-pool/{name}/{type}

where {name} is:

  • Par_Eden_Space
  • CMS_Old_Gen
  • Par_Survivor_Space
  • CMS_Perm_Gen
  • Code_Cache

where {type} is:

  • collection-usage-threshold
  • collection-usage-threshold-count
  • usage
  • peak-usage
  • collection-usage

The Thread usage metrics are available at: http://127.0.0.1:8080/buffalo/rest/jvm/threading

The http/https connector metrics are available at: http://127.0.0.1:8080/buffalo/rest/connector/http http://127.0.0.1:8080/buffalo/rest/connector/https

The JMS metrics are available at: http://127.0.0.1:8080/buffalo/rest/messaging/default/jms-queue/testQueue http://127.0.0.1:8080/buffalo/rest/messaging/default/jms-topic/testTopic

buffalo's People

Contributors

kijanowski avatar

Stargazers

Chris Howard avatar Lukas H avatar Oliver Carr avatar stackdump avatar Ricardo A. Gorosito avatar

Watchers

 avatar James Cloos avatar Ricardo A. Gorosito avatar Chris Howard 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.