main.go 342 B

12345678910111213141516
  1. package main
  2. import (
  3. "net/http"
  4. "github.com/kubecost/cost-model/costmodel"
  5. "github.com/prometheus/client_golang/prometheus/promhttp"
  6. "k8s.io/klog"
  7. )
  8. func main() {
  9. rootMux := http.NewServeMux()
  10. rootMux.Handle("/", costmodel.Router)
  11. rootMux.Handle("/metrics", promhttp.Handler())
  12. klog.Fatal(http.ListenAndServe(":9003", rootMux))
  13. }