Commit dc5ec3a8 authored by Gilbert Kim's avatar Gilbert Kim
Browse files

update git to use server

parent 4d5f5d5c
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
/*
var imported = document.createElement('script');
imported.type = "text/javascript"
imported.src = 'hostname.js';
document.head.appendChild(imported);
setTimeout(function () {
	console.log(hostname)
    }, 5000);
*/

function fillPanels() {
		for (var i = 0; i < number_panels; i++) {
			if (i == 0) {
@@ -98,7 +108,7 @@ function makeGraph(i) {

			try {
            	$.ajax({
              	url: "http://134.82.132.5:8888/query",
              	url: "http://"+hostname+":8888/query",
                dataType: "json",
                error: showError,
                success: createGraph,
+10 −2
Original line number Diff line number Diff line
var imported = document.createElement('script');
imported.type = "text/javascript"
imported.src = 'hostname.js';
document.head.appendChild(imported);
setTimeout(function () {
	console.log(hostname)
    }, 5000);

function fillPanels() {
		for (var i = 0; i < number_panels; i++) {
			if (i == 0) {
@@ -17,7 +25,7 @@ function fillPanels() {
				}
				$("#Body-"+i).append('</div>')

				$("#Body-"+i).append('<div class="chart_container"><div style="float:right" id="legend"></div><div class="y_axis" id="y_axis-'+i+'"></div><div class="chart" id="chart-'+i+'"></div></div>')
				$("#Body-"+i).append('<div class="chart_container"><div style="float:right;" id="legend"></div><div class="y_axis" id="y_axis-'+i+'"></div><div class="chart" id="chart-'+i+'"></div></div>')
				makeGraph(i)
				links.push("testCombinedData.html")
			} 
@@ -98,7 +106,7 @@ function makeGraph(i) {

			try {
            	$.ajax({
              	url: "http://134.82.132.5:8888/query",
              	url: "http://"+hostname+":8888/query",
                dataType: "json",
                error: showError,
                success: createGraph,
+3 −2
Original line number Diff line number Diff line


/* get all information necessary from MySQL and openTSDB */
function getAllParameters() {
	mysqllookup()
@@ -11,7 +12,7 @@ function getAllParameters() {
function mysqllookup() {
	try {
		$.ajax({
			url: "http://134.82.56.223:8888/mysqllookup",
			url: "http://"+hostname+":8888/mysqllookup",
            dataType: "json",
            error: showError,
            success: getMySQLParams,
@@ -49,7 +50,7 @@ function opentsdblookup() {
        lookup = { "metric": tag_metrics[i] }
        try {
            $.ajax({
                url: "http://134.82.56.223:8888/opentsdblookup",
                url: "http://"+hostname+":8888/opentsdblookup",
                dataType: "json",
                error: showError,
                success: getOpenTSDBParams,
+11 −2
Original line number Diff line number Diff line
var imported = document.createElement('script');
imported.type ="text/javascript"
imported.src = 'hostname.js';
document.head.appendChild(imported);
setTimeout(function () {
	console.log(hostname)
    }, 5000);



/* get all information necessary from MySQL and openTSDB */
function getAllParameters() {
@@ -11,7 +20,7 @@ function getAllParameters() {
function mysqllookup() {
	try {
		$.ajax({
			url: "http://134.82.132.5:8888/mysqllookup",
			url: "http://"+hostname+":8888/mysqllookup",
            dataType: "json",
            error: showError,
            success: getMySQLParams,
@@ -49,7 +58,7 @@ function opentsdblookup() {
        lookup = { "metric": tag_metrics[i] }
        try {
            $.ajax({
                url: "http://134.82.132.5:8888/opentsdblookup",
                url: "http://"+hostname+":8888/opentsdblookup",
                dataType: "json",
                error: showError,
                success: getOpenTSDBParams,

GUI/IWrote/hostname.js

0 → 100644
+1 −0
Original line number Diff line number Diff line
var hostname = "amm-csr2.bucknell.edu"
Loading