2.0.1 • Published 19 days ago
jolokia.js v2.0.1
Jolokia JavaScript Client library
The Jolokia JavaScript library provides a JavaScript API to the to the Jolokia agent. Refer to Reference Manual for more details on how to use the library.
This client provides the following three libraries:
jolokia.js
: Base library containing theJolokia
object definition which carries therequest()
jolokia-simple.js
: Library containing the Jolokia simple API and which builds up onjolokia.js
. It must be included afterjolokia.js
since it adds methods to theJolokia
object definition.jolokia-cubism.js
: Jolokia comes with a plugin for Cubism and can act as a data source.
Installation
NPM:
npm i jolokia.js
Yarn:
yarn add jolokia.js
Usage
Base library
import Jolokia from "jolokia.js";
const jolokia = new Jolokia("/jolokia");
const response = jolokia.request({
type: "read",
mbean: "java.lang:type=Memory",
attribute: "HeapMemoryUsage",
path: "used"
});
console.log("Heap Memory used:", response.value);
Simple API
import Jolokia from "jolokia.js";
import "jolokia.js/simple";
const jolokia = new Jolokia("/jolokia");
const value = jolokia.getAttribute("java.lang:type=Memory", "HeapMemoryUsage", "used");
console.log("Heap Memory used:", value);
Cubism source
import cubism from "cubism";
import "jolokia.js";
import "jolokia.js/cubism";
const context = cubism.context();
const jolokia = context.jolokia("/jolokia");
const metricMem = jolokia.metric({
type: "read",
mbean: "java.lang:type=Memory",
attribute: "HeapMemoryUsage",
path: "used"
}, "HeapMemory Usage");
...
2.0.1
19 days ago
2.0.0
5 months ago
2.0.0-dev.10
8 months ago
2.0.0-m4.0
7 months ago
2.0.0-dev.1
8 months ago
2.0.0-dev.3
8 months ago
2.0.0-dev.2
8 months ago
2.0.0-dev.5
8 months ago
2.0.0-dev.4
8 months ago
2.0.0-dev.7
8 months ago
2.0.0-dev.6
8 months ago
2.0.0-dev.9
8 months ago
2.0.0-dev.8
8 months ago
1.7.3-1
11 months ago
1.7.3-2
10 months ago
1.7.2
1 year ago
1.7.1-3
2 years ago
1.7.1-2
2 years ago
1.7.1-1
2 years ago
1.7.1-6
1 year ago
1.7.1-5
1 year ago
1.7.1-4
2 years ago
1.7.1
2 years ago
1.6.0-1
6 years ago
1.6.0
6 years ago