influxdb/http/health.go

13 lines
258 B
Go

package http
import (
"fmt"
"net/http"
)
// HealthHandler returns the status of the process.
func HealthHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
fmt.Fprintln(w, `{"message": "howdy y'all", "status": "healthy"}`)
}