Skip to content

Commit

Permalink
smtp: refactor collector (#1739)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke authored Nov 15, 2024
1 parent 78bd720 commit b209ab6
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 150 deletions.
46 changes: 46 additions & 0 deletions internal/collector/smtp/const.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package smtp

const (
badmailedMessagesBadPickupFileTotal = "Badmailed Messages (Bad Pickup File)"
badmailedMessagesGeneralFailureTotal = "Badmailed Messages (General Failure)"
badmailedMessagesHopCountExceededTotal = "Badmailed Messages (Hop Count Exceeded)"
badmailedMessagesNDROfDSNTotal = "Badmailed Messages (NDR of DSN)"
badmailedMessagesNoRecipientsTotal = "Badmailed Messages (No Recipients)"
badmailedMessagesTriggeredViaEventTotal = "Badmailed Messages (Triggered via Event)"
bytesSentTotal = "Bytes Sent Total"
bytesReceivedTotal = "Bytes Received Total"
categorizerQueueLength = "Categorizer Queue Length"
connectionErrorsTotal = "Total Connection Errors"
currentMessagesInLocalDelivery = "Current Messages in Local Delivery"
directoryDropsTotal = "Directory Drops Total"
dnsQueriesTotal = "DNS Queries Total"
dsnFailuresTotal = "Total DSN Failures"
etrnMessagesTotal = "ETRN Messages Total"
inboundConnectionsCurrent = "Inbound Connections Current"
inboundConnectionsTotal = "Inbound Connections Total"
localQueueLength = "Local Queue Length"
localRetryQueueLength = "Local Retry Queue Length"
mailFilesOpen = "Number of MailFiles Open"
messageBytesReceivedTotal = "Message Bytes Received Total"
messageBytesSentTotal = "Message Bytes Sent Total"
messageDeliveryRetriesTotal = "Message Delivery Retries"
messageSendRetriesTotal = "Message Send Retries"
messagesCurrentlyUndeliverable = "Messages Currently Undeliverable"
messagesDeliveredTotal = "Messages Delivered Total"
messagesPendingRouting = "Messages Pending Routing"
messagesReceivedTotal = "Messages Received Total"
messagesRefusedForAddressObjectsTotal = "Messages Refused for Address Objects"
messagesRefusedForMailObjectsTotal = "Messages Refused for Mail Objects"
messagesRefusedForSizeTotal = "Messages Refused for Size"
messagesSentTotal = "Messages Sent Total"
messagesSubmittedTotal = "Total messages submitted"
ndrsGeneratedTotal = "NDRs Generated"
outboundConnectionsCurrent = "Outbound Connections Current"
outboundConnectionsRefusedTotal = "Outbound Connections Refused"
outboundConnectionsTotal = "Outbound Connections Total"
queueFilesOpen = "Number of QueueFiles Open"
pickupDirectoryMessagesRetrievedTotal = "Pickup Directory Messages Retrieved Total"
remoteQueueLength = "Remote Queue Length"
remoteRetryQueueLength = "Remote Retry Queue Length"
routingTableLookupsTotal = "Routing Table Lookups Total"
)
Loading

0 comments on commit b209ab6

Please sign in to comment.