Ghost/ghost/email-service/lib
Chris Raible 829a0fc7e9
Added email analytics throughput metrics (#21694)
ref
https://linear.app/ghost/issue/ENG-1508/add-custom-metrics-for-email-analytics-jobs

- With the experimental job queue, we're using email analytics as our
initial validation test case. We're hoping to see an improvement in
Ghost's throughput for ingesting email events. However, we don't
currently collect this data point, so it's kind of impossible to tell
right now if the job queue is making things better or not.
- This PR fixes that by adding two new prometheus metrics:
- `email_analytics_events_processed` — a counter incremented each time
an event is processed. Sometimes the event has already been processed in
the past, so this doens't always result in a new event being stored in
the DB.
- `email_analytics_events_stored` — a counter incremented each time an
event is stored in the DB. For example, if an email is opened 3 times by
the same recipient, this counter will only be incremented once.
- The metrics also have a label for the event type, so we can split out
opened events from delivered events. We can use the `rate()` function in
grafana to then get an `events ingested per second` metric, and compare
sites with/without the job queue enabled.
2024-11-21 17:30:43 -08:00
..
email-templates 🌐Added i18n for newsletter strings (#21433) 2024-10-31 08:41:39 -05:00
helpers 🌐Added i18n for newsletter strings (#21433) 2024-10-31 08:41:39 -05:00
BatchSendingService.js Added configurable target delivery window for batch sending (#20719) 2024-09-05 22:28:40 -07:00
EmailBodyCache.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
EmailController.js Added test email rate limiting (#17505) 2023-07-27 08:46:50 +02:00
EmailEventProcessor.js Added email analytics throughput metrics (#21694) 2024-11-21 17:30:43 -08:00
EmailEventStorage.js Added email analytics throughput metrics (#21694) 2024-11-21 17:30:43 -08:00
EmailRenderer.js Moved newsletter date localisation behind labs flag (#21575) 2024-11-07 22:46:30 +00:00
EmailSegmenter.js Added quotes to NQL filters with ids (#18958) 2023-11-13 12:00:20 +01:00
EmailService.js Added [test] prefix to test emails (#19431) 2024-01-03 16:08:56 +00:00
MailgunEmailProvider.js Added configurable target delivery window for batch sending (#20719) 2024-09-05 22:28:40 -07:00
SendingService.js Added configurable target delivery window for batch sending (#20719) 2024-09-05 22:28:40 -07:00