pass node hostname and subnet to graph handler

This commit is contained in:
Steffen Vogel
2021-07-16 12:08:13 +02:00
parent 02b1c5223b
commit bf0b637311
2 changed files with 5 additions and 9 deletions

View File

@@ -197,7 +197,7 @@ func Main() error {
// Run the HTTP server.
mux := http.NewServeMux()
mux.Handle("/health", &healthHandler{})
mux.Handle("/graph", &graphHandler{m, gr})
mux.Handle("/graph", &graphHandler{m, gr, hostname, s})
mux.Handle("/metrics", promhttp.HandlerFor(r, promhttp.HandlerOpts{}))
l, err := net.Listen("tcp", *listen)
if err != nil {