[GH-ISSUE #497] feature: Metrics endpoint #322

Closed
opened 2026-03-15 13:53:00 +03:00 by kerem · 6 comments
Owner

Originally created by @avesst on GitHub (May 19, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/497

Hi,

It would be cool if Mailpit would expose a /metrics Prometheus endpoint that could be scraped and sent to Prometheus for keeping track of the Mailpit usage, like connections, mails received etc.

Originally created by @avesst on GitHub (May 19, 2025). Original GitHub issue: https://github.com/axllent/mailpit/issues/497 Hi, It would be cool if Mailpit would expose a `/metrics` Prometheus endpoint that could be scraped and sent to Prometheus for keeping track of the Mailpit usage, like connections, mails received etc.
kerem closed this issue 2026-03-15 13:53:05 +03:00
Author
Owner

@axllent commented on GitHub (May 20, 2025):

Hi. There is already a /api/v1/info endpoint which is documented here. Is this not what you're after, and if not, then what specifically do you need?

<!-- gh-comment-id:2892863348 --> @axllent commented on GitHub (May 20, 2025): Hi. There is already a `/api/v1/info` endpoint which is [documented here](https://mailpit.axllent.org/docs/api-v1/view.html#get-/api/v1/info). Is this not what you're after, and if not, then what specifically do you need?
Author
Owner

@avesst commented on GitHub (May 20, 2025):

Ah I see. Well, we are using VictoriaMetrics to store timeseries metrics about our servers and services. This is usually done by scraping an HTTP endpoint for Prometheus compatible data structure.

To be clear, this is a nice to have, not a need to have, maybe I can work with the API endpint. :)

<!-- gh-comment-id:2893171950 --> @avesst commented on GitHub (May 20, 2025): Ah I see. Well, we are using VictoriaMetrics to store timeseries metrics about our servers and services. This is usually done by scraping an HTTP endpoint for Prometheus compatible data structure. To be clear, this is a nice to have, not a need to have, maybe I can work with the API endpint. :)
Author
Owner

@github-actions[bot] commented on GitHub (May 28, 2025):

This issue has been marked as stale because it has been open for 7 days with no activity.

<!-- gh-comment-id:2914667926 --> @github-actions[bot] commented on GitHub (May 28, 2025): This issue has been marked as stale because it has been open for 7 days with no activity.
Author
Owner

@axllent commented on GitHub (Jun 6, 2025):

I have just released v1.26.0 which contains @Tigger2014's PR. I'll close this now, but feel free to reopen if you have any issues, or notice the metrics aren't being recorded as intended. One day I'll experiment with Prometheus, but not yet ... ;-) Thanks again!

<!-- gh-comment-id:2948342248 --> @axllent commented on GitHub (Jun 6, 2025): I have just released [v1.26.0](https://github.com/axllent/mailpit/releases/tag/v1.26.0) which contains @Tigger2014's PR. I'll close this now, but feel free to reopen if you have any issues, or notice the metrics aren't being recorded as intended. One day I'll experiment with Prometheus, but not yet ... ;-) Thanks again!
Author
Owner

@avesst commented on GitHub (Jun 6, 2025):

Wow! Thanks, that was quick :)

<!-- gh-comment-id:2948608705 --> @avesst commented on GitHub (Jun 6, 2025): Wow! Thanks, that was quick :)
Author
Owner

@axllent commented on GitHub (Jun 6, 2025):

It's all thanks to @Tigger2014, who not only provided the code ,but also the website documentation (a fair bit of work) 🥇

<!-- gh-comment-id:2948742658 --> @axllent commented on GitHub (Jun 6, 2025): It's all thanks to @Tigger2014, who not only provided the code ,but also the website documentation (a fair bit of work) 🥇
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#322
No description provided.