-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchart.php
More file actions
29 lines (27 loc) · 1.21 KB
/
Copy pathchart.php
File metadata and controls
29 lines (27 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
date_default_timezone_set('Asia/Calcutta'); //Set to your timezone
require_once dirname(__FILE__) . '/cloudwatch.chart.php';
?>
<html lang="en">
<head>
<title>Stats</title>
<!--you can replace the below stylesheet with your own style sheet -->
<link href="css/style.css" rel="stylesheet" type="text/css">
<!--need to include the following javascripts for graphing tool flot-->
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="jquery/excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="jquery/jquery.js"></script>
<script language="javascript" type="text/javascript" src="jquery/jquery.flot.js"></script>
<script language="javascript" type="text/javascript" src="jquery/jquery.flot.time.js"></script>
</head>
<body>
<h2> AWS CloudWatch Charts</h2>
<!--the div where chart has to be plotted should have an id="divname_div", use divname on cloudwatch.chart.php-->
<h3>REQUEST COUNT:</h3>
<div class='chart' id='d1_div'></div>
<hr/>
<h3>ELB LATENCY:</h3>
<div class='chart' id='d2_div'></div>
<!--call this function in body division at end, this starts rendering chart after the page is loaded until here -->
<?php print_cloudwatch_charts(); ?>
</body>
</html>