mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
17 lines
275 B
Go
17 lines
275 B
Go
|
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)
|
||
|
}
|