Commit 73027578 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #1949 from mslipper/bugfix/go-bs-metrics

go/batch-submitter: Fix metrics server
parents ecef6714 d6e0de5a
---
'@eth-optimism/batch-submitter-service': patch
---
Fix metrics server
......@@ -293,7 +293,7 @@ func parseWalletPrivKeyAndContractAddr(
// NOTE: This method MUST be run as a goroutine.
func runMetricsServer(hostname string, port uint64) {
metricsPortStr := strconv.FormatUint(port, 10)
metricsAddr := fmt.Sprintf("%s: %s", hostname, metricsPortStr)
metricsAddr := fmt.Sprintf("%s:%s", hostname, metricsPortStr)
http.Handle("/metrics", promhttp.Handler())
_ = http.ListenAndServe(metricsAddr, nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment