20 lines
272 B
Go
20 lines
272 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
|
)
|
|
|
|
|
|
func init() {
|
|
fmt.Println("###INIT THE CODE####")
|
|
}
|
|
|
|
func main() {
|
|
http.Handle("/metrics",promhttp.Handler())
|
|
log.Fatal(http.ListenAndServe(":9040",nil))
|
|
}
|