| 12345678910111213141516 |
- package main
- import (
- "net/http"
- "github.com/kubecost/cost-model/costmodel"
- "github.com/prometheus/client_golang/prometheus/promhttp"
- "k8s.io/klog"
- )
- func main() {
- rootMux := http.NewServeMux()
- rootMux.Handle("/", costmodel.Router)
- rootMux.Handle("/metrics", promhttp.Handler())
- klog.Fatal(http.ListenAndServe(":9003", rootMux))
- }
|