prometheus/main.go

17 lines
275 B
Go
Raw Normal View History

2012-11-24 03:33:34 -08:00
package main
import (
"code.google.com/p/gorest"
"net/http"
)
func main() {
m, _ := NewLevigoMetricPersistence("/tmp/metrics")
s := &MetricsService{
persistence: m,
}
gorest.RegisterService(s)
http.Handle("/", gorest.Handle())
http.ListenAndServe(":8787", nil)
}