Changeset 734 in code for trunk/server.go


Ignore:
Timestamp:
Dec 2, 2021, 10:15:51 AM (4 years ago)
Author:
contact
Message:

Add soju_upstream_connect_errors_total metric

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server.go

    r711 r734  
    107107                downstreamOutMessagesTotal prometheus.Counter
    108108                downstreamInMessagesTotal  prometheus.Counter
     109
     110                upstreamConnectErrorsTotal prometheus.Counter
    109111        }
    110112}
     
    196198                Help: "Total number of incoming messages received from downstream clients",
    197199        })
     200
     201        s.metrics.upstreamConnectErrorsTotal = factory.NewCounter(prometheus.CounterOpts{
     202                Name: "soju_upstream_connect_errors_total",
     203                Help: "Total number of upstream connection errors",
     204        })
    198205}
    199206
Note: See TracChangeset for help on using the changeset viewer.