Skip to content

Commit

Permalink
Metrics: fix Api to API typo
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Mar 4, 2019
1 parent b0d25d7 commit 81799e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/apihttp/apihttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type HealthCheckResponse struct {
// {"version": "0", "status":"ok"}
func HealthCheckHandler(w http.ResponseWriter, r *http.Request) {

metrics.QedApiHealthcheckRequestsTotal.Inc()
metrics.QedAPIHealthcheckRequestsTotal.Inc()

result := HealthCheckResponse{
Version: 0,
Expand Down
5 changes: 3 additions & 2 deletions metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ var (
)

// API
QedApiHealthcheckRequestsTotal = prometheus.NewCounter(

QedAPIHealthcheckRequestsTotal = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "qed_api_healthcheck_requests_total",
Help: "The total number of healthcheck api requests",
Expand Down Expand Up @@ -147,7 +148,7 @@ var (

metricsList = []prometheus.Collector{
QedInstancesCount,
QedApiHealthcheckRequestsTotal,
QedAPIHealthcheckRequestsTotal,

QedBalloonAddDurationSeconds,
QedBalloonMembershipDurationSeconds,
Expand Down

0 comments on commit 81799e4

Please sign in to comment.