13 lines
226 B
Go
13 lines
226 B
Go
|
package pancheri
|
||
|
|
||
|
import (
|
||
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func PromMain() error {
|
||
|
http.Handle("/metrics", promhttp.Handler())
|
||
|
err := http.ListenAndServe(":2112", nil)
|
||
|
return err
|
||
|
}
|