diff --git a/templates/graphs.tmpl b/templates/graphs.tmpl
index 43ec6226bb69868221c0f620dd0d19c3adb05023..10cd23807a3b34a0e7a05ad286804193b346e2dd 100644 (file)
--- a/templates/graphs.tmpl
+++ b/templates/graphs.tmpl
<input type="text" name="metrics-query" value="{{.Query}}"
class="query" placeholder="Search metrics" required />
<button type="submit">GO</button>
+ <br />
+ <input type="text" name="group-by" value="{{.GroupBy}}"
+ class="query" placeholder="Group by" />
</form><br />
{{if .Metrics}}
- <img src="/graph/q/{{.Metrics}}" border="0" />
+ <img src="/graph/q{{urlquery .QueryOptions}}/{{urlquery .Metrics}}" border="0" />
{{end}}
<p> </p>
</section>