mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-21 11:05:22 +01:00
Removed commented code
This commit is contained in:
parent
8170a4c0f7
commit
3cf4ad6781
@ -28,11 +28,6 @@ func NewServer(port uint16, clients []*pihole.Client) *Server {
|
|||||||
httpServer: httpServer,
|
httpServer: httpServer,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*fmt.Printf("Server received clients -> %s\n", clients)
|
|
||||||
for i, client := range clients {
|
|
||||||
fmt.Printf("Server received clients -> idx: %d, Hostname: %s\n", i, &client)
|
|
||||||
}*/
|
|
||||||
|
|
||||||
mux.HandleFunc("/metrics",
|
mux.HandleFunc("/metrics",
|
||||||
func(writer http.ResponseWriter, request *http.Request) {
|
func(writer http.ResponseWriter, request *http.Request) {
|
||||||
errors := make([]string, 0)
|
errors := make([]string, 0)
|
||||||
@ -54,7 +49,6 @@ func NewServer(port uint16, clients []*pihole.Client) *Server {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
//mux.Handle("/metrics", client.Metrics())
|
|
||||||
mux.Handle("/readiness", s.readinessHandler())
|
mux.Handle("/readiness", s.readinessHandler())
|
||||||
mux.Handle("/liveness", s.livenessHandler())
|
mux.Handle("/liveness", s.livenessHandler())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user