mirror of
https://github.com/decke/smtprelay.git
synced 2026-04-25 04:45:52 +03:00
[GH-ISSUE #62] Add metrics exposition #13
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/smtprelay#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pomverte on GitHub (Feb 25, 2022).
Original GitHub issue: https://github.com/decke/smtprelay/issues/62
Hello,
Do you have any plan to support metrics expostion in openmetrics format ?
Are you open to contribution ?
That would allow monitoring services like Prometheus to scrape metrics
Reference : https://prometheus.io/docs/guides/go-application/
@JonathonReinhart commented on GitHub (Feb 25, 2022):
@grafana has a fork where they added metrics for prometheus: https://github.com/grafana/smtprelay/pull/9/. They attempted to upstream all of their changes in #13, but it wasn't organized in a way we were willing to accept. In this comment I explained how I fixed up most of their work into individual PRs, but the Prometheus exporter was not included.
I'll let @decke confirm that he is willing to accept this feature. You may want to look at https://github.com/grafana/smtprelay/pull/9/ to avoid unnecessary work, and increase coherency within the network of forks.
cc @electron0zero @dannykopping
@decke commented on GitHub (Feb 26, 2022):
It's fine for me but since I don't use prometheus myself I likely won't notice if we break it one day.
@pomverte commented on GitHub (Feb 26, 2022):
Thank you for the answers !
Given that it's not your use case and this has already been done in grafana/smtprelay, I will take a look at thee fork and see if it suits my needs
I have another question concerning the project, does it support retry ?
I'm trying to evaluate if smtprelay can be setup between my service and another SMTP server (why ? It's not available as much as I'd like)
@decke commented on GitHub (Feb 26, 2022):
smtprelay does not store and forward if that is your question. It forwards directly so retry is needed on the sending side.