Sovite.Core.Metrics (sovite v0.6.0)

Copy Markdown View Source

The Prometheus metrics of the MTA, served at /metrics on the admin server (see Sovite.Core.Web) with metrics.enabled.

Counters and histograms come from the telemetry events of Sovite.Core.Telemetry (Sovite.Metrics); they start from zero at each start. Gauges are read when scraped.

MetricTypeLabels
sovite_smtp_connections_totalcounterlistener
sovite_smtp_connections_rejected_totalcounterlistener, reason
sovite_smtp_sessions_totalcounter
sovite_smtp_session_duration_secondshistogram
sovite_smtp_commands_totalcountercommand, status (2xx, 4xx, 5xx, ...)
sovite_smtp_command_duration_secondshistogramcommand
sovite_smtp_tls_handshakes_totalcounterresult (ok, error), protocol
sovite_auth_totalcountermechanism: successful logins
sovite_auth_failures_totalcountermechanism
sovite_messages_received_totalcounter
sovite_messages_received_bytes_totalcounter
sovite_messages_deferred_totalcounter
sovite_messages_removed_totalcounterreason
sovite_messages_corrupt_totalcounter
sovite_messages_authenticated_totalcounterdmarc
sovite_notifications_totalcounterkind
sovite_deliveries_totalcounterstatus (delivered, deferred, failed)
sovite_delivery_duration_secondshistogram
sovite_delivery_exceptions_totalcounter
sovite_screen_rejected_totalcounterstage
sovite_greylist_deferred_totalcounter
sovite_rate_limit_exceeded_totalcounterrate_limit
sovite_auth_bans_totalcounter
sovite_outbound_suspended_totalcounter
sovite_milter_errors_totalcountermilter
sovite_policy_errors_totalcounter
sovite_queue_messagesgaugequeue (incoming, active, deferred, hold, corrupt)
sovite_deliveries_runninggauge
sovite_deliveries_readygauge
sovite_smtp_open_connectionsgaugelistener
sovite_start_time_secondsgauge
sovite_build_infogaugeversion
sovite_vm_memory_bytesgaugekind
sovite_vm_processesgauge
sovite_vm_run_queuegauge
sovite_cluster_nodes_down_totalcounter
sovite_cluster_messages_taken_over_totalcounter
sovite_cluster_nodesgaugestate (known, connected)
sovite_tenant_limited_totalcountertenant, limit
sovite_ip_pool_exhausted_totalcounterpool
sovite_ip_pool_sent_todaygaugepool, address
sovite_ip_pool_limit_todaygaugepool, address

Summary

Functions

The Sovite.Metrics child spec. runtime has the :name of the metrics process, the :queue_manager, the queue :directory, the :supervisor whose listeners are counted, and :started_at.

Functions

child_spec(runtime)

@spec child_spec(map()) :: Supervisor.child_spec()

The Sovite.Metrics child spec. runtime has the :name of the metrics process, the :queue_manager, the queue :directory, the :supervisor whose listeners are counted, and :started_at.