mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
1a3fb459e0
To achieve that, this PR - converts static/index.html ("console") and graph to templates - moved the handlebars template to separated file to avoid escaping issues Route changes: /status -> / /static -> /console /static/graph.html -> /graph
20 lines
569 B
HTML
20 lines
569 B
HTML
{{define "head"}}
|
|
<script src="js/exprBrowser.js"></script>
|
|
{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="grouping_box">
|
|
<form action="/api/query" method="GET" id="queryForm">
|
|
<label for="expr">Expression:</label>
|
|
<input type="text" name="expr" id="expr" size="100">
|
|
<input type="checkbox" name="json" id="json" value="JSON"><label for="json">JSON</label>
|
|
<input type="submit" value="Evaluate">
|
|
</form>
|
|
</div>
|
|
<div class="grouping_box">
|
|
<pre>
|
|
<div id="result"></div>
|
|
</pre>
|
|
</div>
|
|
{{end}}
|