mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-11 08:04:04 -08:00
73 lines
2.9 KiB
HTML
73 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Prometheus Expression Browser</title>
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
|
|
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="css/prometheus.css">
|
|
|
|
<!-- copy all these CSSen/JSen to our own location -->
|
|
<link type="text/css" rel="stylesheet" href="http://code.shutterstock.com/rickshaw/rickshaw.min.css">
|
|
<script src="http://code.shutterstock.com/rickshaw/vendor/d3.min.js"></script>
|
|
<script src="http://code.shutterstock.com/rickshaw/vendor/d3.layout.min.js"></script>
|
|
<script src="http://code.shutterstock.com/rickshaw/rickshaw.min.js"></script>
|
|
|
|
<script src="vendor/js/handlebars.js"></script>
|
|
|
|
<script src="js/graph.js"></script>
|
|
|
|
<script id="graph_template" type="text/x-handlebars-template">
|
|
<div id="graph_wrapper{{id}}">
|
|
<div class="grouping_box">
|
|
<form action="/api/query_range" method="GET" class="query_form">
|
|
<label for="expr{{id}}">Expression:</label>
|
|
<input type="text" name="expr" id="expr{{id}}" size="80" value="{{expr}}">
|
|
<select name="insert_metric">
|
|
<option value="">- Insert Metric -</option>
|
|
</select>
|
|
|
|
<br>
|
|
|
|
<label for="range_input{{id}}">Range:</label>
|
|
<input type="button" value="-" name="dec_range">
|
|
<input type="text" name="range_input" id="range_input{{id}}" size="5" value="{{range_input}}">
|
|
<input type="hidden" name="range">
|
|
<input type="button" value="+" name="inc_range">
|
|
|
|
<label for="end{{id}}">End:</label>
|
|
<input type="button" value="<<" name="dec_end">
|
|
<input type="text" name="end" id="end{{id}}" value="{{end}}">
|
|
<input type="button" value=">>" name="inc_end">
|
|
|
|
<label for="step_input{{id}}">Resolution (s):</label>
|
|
<input type="text" name="step_input" id="step_input{{id}}" value="{{step_input}}" size="4">
|
|
<input type="hidden" name="step">
|
|
|
|
<input type="checkbox" name="stacked" id="stacked{{id}}" {{stacked_checked}}>
|
|
<label for="stacked{{id}}">Stacked</label>
|
|
|
|
<input type="submit" value="Graph" name="submit">
|
|
|
|
<img src="img/ajax-loader.gif" class="spinner" alt="ajax_spinner">
|
|
|
|
<div class="eval_stats"></div>
|
|
</form>
|
|
</div>
|
|
<div class="grouping_box">
|
|
<div class="graph_container">
|
|
<div class="graph"></div>
|
|
<div class="legend"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="graph_container">
|
|
</div>
|
|
<div><input type="button" value="Add Graph" id="add_graph"></div>
|
|
</body>
|
|
</html>
|