mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
updated documentation
This commit is contained in:
@@ -7,7 +7,8 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
)
|
||||
|
||||
// MetricsRequest returns metrics in JSON format
|
||||
// MetricsRequest returns metrics for the agent. Metrics are JSON by default
|
||||
// but Prometheus is an optional format.
|
||||
func (s *HTTPServer) MetricsRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
|
||||
if req.Method != "GET" {
|
||||
return nil, CodedError(405, ErrInvalidMethod)
|
||||
|
||||
Reference in New Issue
Block a user