Ghost/ghost/core/core
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
..
cli Refactored fetching schema tables in data generator 2024-01-13 18:28:14 +01:00
frontend Wired up Admin Comment Endpoints to UI (#21661) 2024-11-21 10:52:36 +00:00
server Added email analytics throughput metrics (#21694) 2024-11-21 17:30:43 -08:00
shared Moved the custom fonts feature to public beta (#21664) 2024-11-21 19:06:40 +08:00
app.js Added middleware to prevent other sites' content from being served (#20922) 2024-09-05 17:15:09 +01:00
boot.js Added prometheus metric for time to acquire connection (#21628) 2024-11-14 21:14:40 -08:00
bridge.js Lazy-minified assets at first request 2024-10-10 14:36:28 +01:00