Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Mar 10, 2021
1 parent acf847e commit a82d240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func ExportMetric() *events.APIGatewayV2HTTPResponse {

var body = ""
body += "# HELP keyresolver_request BitMaelum keyresolver \n"
body += "# TYPE keyresolver_request gauge\n"
body += "# TYPE keyresolver_request counter\n"

input := &dynamodb.ScanInput{
ExpressionAttributeNames: map[string]*string{
Expand All @@ -60,7 +60,7 @@ func ExportMetric() *events.APIGatewayV2HTTPResponse {
parts := strings.Split(*s, " ")

hits := result.Items[i]["hits"].N
body += fmt.Sprintf("keyresolver_request{method=\"%s\" path=\"%s\", code=%s} = %s\n", parts[0], parts[1], parts[2], *hits)
body += fmt.Sprintf("keyresolver_request{method=\"%s\", path=\"%s\", code=%s} = %s\n", parts[0], parts[1], parts[2], *hits)
}
}

Expand Down

0 comments on commit a82d240

Please sign in to comment.