maddy icon indicating copy to clipboard operation
maddy copied to clipboard

Add more Prometheus metrics

Open foxcpp opened this issue 5 years ago • 4 comments

  • [ ] endpoint: Counter of panics in IMAP/SMTP endpoints, should they happen
  • [ ] remote: Negotiated TLS version
  • [ ] endpoint: Negotiated TLS version
  • [ ] remote: Amount of sent messages (?)
  • [ ] ???

foxcpp avatar Aug 09 '20 16:08 foxcpp

Gonna add "help wanted" label in the hope somebody will add more ideas on what should be exposed as metrics.

foxcpp avatar Aug 09 '20 16:08 foxcpp

Also I believe it could be useful to turn existing runtime/trace instrumentation into histograms, but there are many regions defined, that may turn it into a lot of histograms. Perhaps we should turn only "tasks" into them. That anyway will need some abstraction since runtime/trace API does not expose any such statistics.

foxcpp avatar Aug 27 '20 21:08 foxcpp

@foxcpp

maddy_storage_messages{mailbox=""}
maddy_target_received_total{module="", name=""}
maddy_target_sent_total{module="", name=""}
maddy_target_rejected_total{module="", name="", smtp_code="", smtp_enchcode=""}
maddy_endpoint_received_total{module="", address=""}
maddy_endpoint_sent_total{module="", address=""}
maddy_endpoint_rejected_total{module="", address="", smtp_code="", smtp_enchcode=""}

Allineer avatar Jun 02 '23 10:06 Allineer