mirror of
https://github.com/trafficlunar/api.git
synced 2026-03-28 11:03:11 +00:00
14 lines
240 B
Go
14 lines
240 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
|
)
|
|
|
|
func StartPrometheusServer() {
|
|
go func() {
|
|
http.HandleFunc("/", promhttp.Handler().ServeHTTP)
|
|
http.ListenAndServe(":8889", nil)
|
|
}()
|
|
}
|