good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5af1d3b2 authored by a's avatar a
Browse files

fix metrics

parent e7d11981
No related branches found
No related tags found
No related merge requests found
Pipeline #13563 passed
Pipeline: swim

#13564

    ......@@ -22,17 +22,20 @@ func main() {
    envFlag(&args.MetricsPort, "METRICS", "metrics", "6060", "metrics port")
    flag.Parse()
    go func() {
    http.Handle("/metrics", promhttp.Handler())
    http.ListenAndServe(":"+args.MetricsPort, nil)
    }()
    log.Printf("starting %s: bind=%s fs=%s home=%s metrics=:%s",
    args.Name,
    args.Bind(),
    args.Fs,
    args.Home,
    args.MetricsPort)
    go func() {
    http.Handle("/metrics", promhttp.Handler())
    http.Handle("/metrics/", promhttp.Handler())
    err := http.ListenAndServe(":"+args.MetricsPort, nil)
    if err != nil {
    panic(err)
    }
    }()
    srv, err := swim.NewServer(args)
    if err != nil {
    panic(err)
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment