Commit 46f52baa 46f52baa25b0b58c1e2fc059be3ac50e8960f279 by Christian Gerdes

Version 1.3 with a new method in JavaMonWeb for OraMon getPrometheus()

1 parent a4be1d68
......@@ -78,6 +78,18 @@ function getMetrics(type, input, pdb) {
client2.send();
}
function getPrometheus(type, input, pdb) {
// Get the metrics
var pdbAdd = "";
if(pdb != "" && pdb != null) pdbAdd = "pdbName=" + pdb + "&";
var client2 = new XMLHttpRequest();
client2.onreadystatechange = metricsHandler;
client2.open("GET", "" + type + "/getPrometheus?" + pdbAdd + "connectionString=" + encodeURIComponent(input));
client2.setRequestHeader('Cache-Control', 'no-cache');
client2.setRequestHeader('Pragma', 'no-cache');
client2.send();
}
function showGraph(type, input, pdb) {
// Get the metrics
var pdbAdd = "";
......@@ -98,7 +110,7 @@ function dataHandler() {
}
</script>
<h1>OraMon Web 1.2</h1>
<h1>OraMon Web 1.3</h1>
<h2>Status Oracle Monitors</h2>
<p>Number of monitors: <%= se.lil.om.Registry.getList().size() %></p>
......@@ -151,6 +163,7 @@ function dataHandler() {
<input type="button" value="graph" onClick="showGraph('viewOraMon','<%= URLEncoder.encode(mon.getConString(), "UTF-8") %>',this.form.pdbName.value)">
<input id="getDataButton" type="button" value="getData" onClick="getData('OraMonREST', '<%= mon.getConString() %>',this.form.pdbName.value)">
<input id="getMetricsButton" type="button" value="getMetrics" onClick="getMetrics('OraMonREST', '<%= mon.getConString() %>',this.form.pdbName.value)">
<input id="getPrometheusButton" type="button" value="getPrometheus" onClick="getPrometheus('OraMonREST', '<%= mon.getConString() %>',this.form.pdbName.value)">
<input id="pdbName" name="pdbName" size="10">
</form>
</td>
......
......@@ -2,3 +2,4 @@
/JmxMonRESTgetMetrics.class
/OraMonRESTgetData.class
/OraMonRESTgetMetrics.class
/OraMonRESTgetPrometheus.class
......
This file is too large to display.