Skip to content

Commit

Permalink
fix etherpad_edits metric
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Mar 21, 2021
1 parent bd53956 commit 8f1f465
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ etherpad_http_requests 92
etherpad_connects 1
# HELP etherpad_edits
# TYPE etherpad_edits gauge
etherpad_connects 3
etherpad_edits 3
```

## License
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ etherpad_http_requests {{.HttpRequests.Meter.Count}}
etherpad_connects {{.Connects.Count}}
# HELP etherpad_edits
# TYPE etherpad_edits gauge
etherpad_connects {{.Edits.Meter.Count}}
etherpad_edits {{.Edits.Meter.Count}}
`))

var apiStatsTpl = template.Must(template.New("apiStats").Parse(`# HELP etherpad_total_pads
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ etherpad_http_requests 15
etherpad_connects 1
# HELP etherpad_edits
# TYPE etherpad_edits gauge
etherpad_connects 3
etherpad_edits 3
`,
},
}
Expand Down

0 comments on commit 8f1f465

Please sign in to comment.