Skip to content

Commit

Permalink
added prometeus exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Mar 10, 2021
1 parent fdeed92 commit 127119f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lambda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func HandleRequest(req events.APIGatewayV2HTTPRequest) (*events.APIGatewayV2HTTP

if req.RouteKey == "GET /prometheus-export" {
internal.LogMetric(req.RouteKey, 200)
return getConfig(req), nil
return internal.ExportMetric(), nil
}

h, err := hash.NewFromHash(req.PathParameters["hash"])
Expand Down

0 comments on commit 127119f

Please sign in to comment.