We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ddb69 commit bb5de34Copy full SHA for bb5de34
main.go
@@ -90,6 +90,13 @@ func initArgparser() {
90
91
// start and handle prometheus handler
92
func startHttpServer(exporter *AlertmanagerElasticsearchExporter) {
93
+ // healthz
94
+ http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
95
+ if _, err := fmt.Fprint(w, "Ok"); err != nil {
96
+ daemonLogger.Error(err)
97
+ }
98
+ })
99
+
100
http.HandleFunc("/webhook", http.HandlerFunc(exporter.HttpHandler))
101
http.Handle("/metrics", promhttp.Handler())
102
daemonLogger.Fatal(http.ListenAndServe(opts.ServerBind, nil))
0 commit comments