Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Jolokia JMX to ganglia service

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Cakefile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

node-jolosrv build status

A jolokia JMX to ganglia service for handling monitor registration

REST Interface

Getting the version

curl -sL localhost:3000

Getting the list of clients

curl -sL localhost:3000/clients

Creating a client

curl -sL -H "Content-Type: application/json" -X POST localhost:3000/clients -d '
{
  "name": "zoidberg",
  "url": "http://localhost:1234/jolokia"
}'

Updating a client

curl -sL -H "Content-Type: application/json" -X POST localhost:3000/clients -d '
{
  "name": "zoidberg",
  "url": "http://localhost:1234/jolokia",
  "attributes": {
    "java.lang": {
      "name=ConcurrentMarkSweep,type=GarbageCollector": {
        "CollectionTime": {
          "graph": {
            "host": "examplehost.domain.com",
            "units": "gc/sec",
            "slope": "both",
            "tmax": 60,
            "dmax": 180
          }
        }
      }
    }
  }
}'

Getting detailed information for a client

curl -sL localhost:3000/clients/zoidberg

Getting detailed information for all clients

curl -sL localhost:3000/clients/zoidberg -d 'info=true'

Removing attributes for a client

curl -sL -X DELETE localhost:3000/clients/zoidberg/attributes

Removing a client

curl -sL -X DELETE localhost:3000/clients/zoidberg
Something went wrong with that request. Please try again.