mirror of
https://github.com/ribbybibby/ssl_exporter.git
synced 2026-02-14 17:49:58 +00:00
use promhttp.Handler()
allows the removal of SA1019 linter ignore
This commit is contained in:
@@ -375,8 +375,7 @@ func main() {
|
||||
log.Infoln("Starting "+namespace+"_exporter", version.Info())
|
||||
log.Infoln("Build context", version.BuildContext())
|
||||
|
||||
//lint:ignore SA1019 because
|
||||
http.Handle(*metricsPath, prometheus.Handler())
|
||||
http.Handle(*metricsPath, promhttp.Handler())
|
||||
http.HandleFunc(*probePath, func(w http.ResponseWriter, r *http.Request) {
|
||||
probeHandler(w, r, tlsConfig)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user