pancheri/stats.go

13 lines
226 B
Go
Raw Normal View History

2023-10-03 22:46:12 +00:00
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
}