Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wazazaby authored Nov 6, 2023
1 parent 860f91e commit bb22b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var requestsTotalCounter = metrics.NewCounter(
)

var responseSizeHistogram = metrics.NewHistogram(
vimebu.Metric("response_size").String(), // response_size{}
vimebu.Metric("response_size").String(), // response_size
)

// Registering the metric using the provided helpers.
Expand Down Expand Up @@ -68,7 +68,7 @@ func getHTTPRequestCounter(host string) *metrics.Counter {
if host != "" {
b.Label("host", host)
}
metric := b.String() // api_http_requests_total{} or api_http_requests_total{host="api.app.com"}
metric := b.String() // api_http_requests_total or api_http_requests_total{host="api.app.com"}
return metrics.GetOrCreateCounter(metric)
}
```
Expand Down

0 comments on commit bb22b43

Please sign in to comment.