message: Use remoteUsersByAge rather than a custom metric
diff: @@ -125,6 +125,14 @@ IrcBridge.prototype._initialiseMetrics = function() {
  const metrics = this._bridge.getPrometheusMetrics();
  this._bridge.registerBridgeGauges(() => {
  + const remoteUsersByAge = new AgeCounters(
  + this.config.ircService.metrics.remoteUserAgeBuckets || ["1h", "1d", "1w"]
  + );
  +
  + this.ircServers.forEach((server) => {
  + this._clientPool.updateActiveConnectionMetrics(server.domain, remoteUsersByAge);
  + });
  +
  return {
  // TODO(paul): actually fill these in
  matrixRoomConfigs: 0,
  @@ -140,7 +148,7 @@ IrcBridge.prototype._initialiseMetrics = function() {
  remoteRoomsByAge: zeroAge,
  matrixUsersByAge: zeroAge,
  - remoteUsersByAge: zeroAge,
  + remoteUsersByAge,
  };
  });
  @@ -164,12 +172,6 @@ IrcBridge.prototype._initialiseMetrics = function() {
  labels: ["server"]
  });
  - const idleConnections = metrics.addGauge({
  - name: "clientpool_idle_connections",
  - help: "Idle connections on the bridge, grouped into period buckets.",
  - labels: ["server", "period"]
  - });
  -
  const memberListLeaveQueue = metrics.addGauge({
  name: "user_leave_queue",
  help: "Number of leave requests queued up for virtual users on the bridge.",
  @@ -192,11 +194,6 @@ IrcBridge.prototype._initialiseMetrics = function() {
  reconnQueue.set({server: server.domain},
  this._clientPool.totalReconnectsWaiting(server.domain)
  );
  - this._clientPool.getIdleConnectionMetrics(server.domain).then((idleBuckets) => {
  - Object.keys(idleBuckets).forEach((bucket) => {
  - idleConnections.set({server: server.domain, period: bucket}, idleBuckets[bucket]);
  - });
  - });
  });
  Object.keys(this.memberListSyncers).forEach((server) => {
  