Skip to content

Commit

Permalink
Revert "updating nginx prometheus metrics names according to promethe…
Browse files Browse the repository at this point in the history
…us naming best practices (#1910)"

This reverts commit 74451e6.
  • Loading branch information
aledbf committed Jan 17, 2018
1 parent 816a5b6 commit 985a2a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/ingress/controller/metric/collector/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,37 +56,37 @@ func NewNginxStatus(watchNamespace, ingressClass string, ngxHealthPort int, ngxV

p.data = &nginxStatusData{
active: prometheus.NewDesc(
prometheus.BuildFQName(ns, "", "active_connections_total"),
prometheus.BuildFQName(ns, "", "active_connections"),
"total number of active connections",
[]string{"ingress_class", "namespace"}, nil),

accepted: prometheus.NewDesc(
prometheus.BuildFQName(ns, "", "accepted_connections_total"),
prometheus.BuildFQName(ns, "", "accepted_connections"),
"total number of accepted client connections",
[]string{"ingress_class", "namespace"}, nil),

handled: prometheus.NewDesc(
prometheus.BuildFQName(ns, "", "handled_connections_total"),
prometheus.BuildFQName(ns, "", "handled_connections"),
"total number of handled connections",
[]string{"ingress_class", "namespace"}, nil),

requests: prometheus.NewDesc(
prometheus.BuildFQName(ns, "", "requests_total"),
prometheus.BuildFQName(ns, "", "total_requests"),
"total number of client requests",
[]string{"ingress_class", "namespace"}, nil),

reading: prometheus.NewDesc(
prometheus.BuildFQName(ns, "", "current_reading_connections_total"),
prometheus.BuildFQName(ns, "", "current_reading_connections"),
"current number of connections where nginx is reading the request header",
[]string{"ingress_class", "namespace"}, nil),

writing: prometheus.NewDesc(
prometheus.BuildFQName(ns, "", "current_writing_connections_total"),
prometheus.BuildFQName(ns, "", "current_writing_connections"),
"current number of connections where nginx is writing the response back to the client",
[]string{"ingress_class", "namespace"}, nil),

waiting: prometheus.NewDesc(
prometheus.BuildFQName(ns, "", "current_waiting_connections_total"),
prometheus.BuildFQName(ns, "", "current_waiting_connections"),
"current number of idle client connections waiting for a request",
[]string{"ingress_class", "namespace"}, nil),
}
Expand Down

0 comments on commit 985a2a9

Please sign in to comment.