mirror of https://github.com/prometheus/prometheus
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
275 B
17 lines
275 B
12 years ago
|
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)
|
||
|
}
|