added a /api/metrics/test query that returns random walk series

This commit is contained in:
Torkel Ödegaard
2015-01-06 09:11:00 +01:00
parent 0e3f91508e
commit 3e07605260
4 changed files with 49 additions and 20 deletions
+3
View File
@@ -49,6 +49,9 @@ func Register(m *macaron.Macaron) {
// rendering
m.Get("/render/*", auth, RenderToPng)
// metrics
m.Get("/api/metrics/test", auth, GetTestMetrics)
}
func Index(ctx *middleware.Context) {