Skip to content

Commit

Permalink
httpd: remove double registration of the same metric
Browse files Browse the repository at this point in the history
Signed-off-by: Amnon Heiman <amnon@scylladb.com>
  • Loading branch information
amnonh committed Mar 28, 2017
1 parent 2ebe842 commit 489fcda
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion http/httpd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ http_stats::http_stats(http_server& server, const sstring& name)
_metric_groups.add_group("httpd", {
sm::make_derive("connections_total", [&server] { return server.total_connections(); }, sm::description("The total number of connections opened"), labels),
sm::make_gauge("connections_current", [&server] { return server.current_connections(); }, sm::description("The current number of open connections"), labels),
sm::make_gauge("connections_current", [&server] { return server.current_connections(); }, sm::description("The current number of open connections"), labels),
sm::make_derive("read_errors", [&server] { return server.read_errors(); }, sm::description("The total number of errors while reading http requests"), labels),
sm::make_derive("reply_errors", [&server] { return server.reply_errors(); }, sm::description("The total number of errors while replying to http"), labels),
sm::make_derive("requests_served", [&server] { return server.requests_served(); }, sm::description("The total number of http requests served"), labels)
Expand Down

0 comments on commit 489fcda

Please sign in to comment.