Karta.Metrics.Report (Karta v1.0.0)

The measurements that are read from the database rather than counted as they happen, executed by Karta.PromEx.Mail's poller every 30 seconds:

  • how many outgoing recipients wait for each server and queue ("queued" and "deferred"), and the age of the oldest one that is due — a recipient the jobs should already have tried;
  • how many received messages' deliveries are "pending" or "held" for each server;
  • how many webhook deliveries are "pending" or "failed" (the dead letters) for each server;
  • how many addresses each server suppresses, by reason, still in force.

Every measurement is one row per server and its group, so the number of series is bounded by the servers an organisation has made, never by anything a sender writes.

It never raises. PromEx starts before the repository does, and a telemetry poller drops a measurement for good once it raises: a report that cannot read the database (not started yet, restarting, refusing connections) reports nothing and returns :ok, and the next poll tries again.

Summary

Functions

Reports every measurement once. See the module doc.

Functions

report(now \\ DateTime.utc_now())

@spec report(DateTime.t()) :: :ok

Reports every measurement once. See the module doc.