From 5a735b8c54edde626f140a5cf15ed468ad070348 Mon Sep 17 00:00:00 2001 From: an Date: Fri, 23 Apr 2021 14:51:21 +0200 Subject: [PATCH] working for me ... --- go.mod | 5 +++++ main.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..8186c90 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module git.dnix.de/an/covid-exporter + +go 1.16 + +require github.com/prometheus/client_golang v1.10.0 diff --git a/main.go b/main.go index e03442f..1a1646a 100644 --- a/main.go +++ b/main.go @@ -129,5 +129,5 @@ func serveMetrics() { prometheus.MustRegister(gaugePopulation) http.Handle("/metrics", promhttp.Handler()) - http.ListenAndServe(":9099", nil) + http.ListenAndServe("0.0.0.0:9099", nil) }