postfix_exporter

module
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: BSD-3-Clause

README

Postfix Exporter

tests Go Reference Go Report Card codecov

Export Postfix stats from logs to Prometheus.

To run it:

make
./postfix_exporter [flags]

Exported metrics

Metric Meaning Labels
postfix_errors_total Total number of log records parsing resulted in an error.
postfix_foreign_total Total number of foreign log records.
postfix_unsupported_total Total number of unsupported log records.
postfix_postscreen_actions_total Total number of times postscreen events were collected. action
postfix_connects_total Total number of times connect events were collected. subprogram
postfix_disconnects_total Total number of times disconnect events were collected. subprogram
postfix_lost_connections_total Total number of times lost connection events were collected. subprogram
postfix_not_resolved_hostnames_total Total number of times not resolved hostname events were collected. subprogram
postfix_lmtp_statuses_total Total number of times LMTP server message status change events were collected. status
postfix_lmtp_delay_seconds Delay in seconds for a LMTP server to process a message. status
postfix_smtp_statuses_total Total number of times SMTP server message status change events were collected. status
postfix_smtp_delay_seconds Delay in seconds for a SMTP server to process a message. status
postfix_milter_actions_total Total number of times milter events were collected. subprogram, action
postfix_login_failures_total Total number of times login failure events were collected. subprogram, method
postfix_qmgr_statuses_total Total number of times Postfix queue manager message status change events were collected. status
postfix_logs_total Total number of log records processed. subprogram, severity
postfix_noqueue_rejects_total Total number of times NOQUEUE: reject events were collected. subprogram, command, message

Flags

./postfix_exporter --help
  • collector: Collector type to scrape metrics with. file or journald.
  • postfix.instance: Postfix instance name. postfix by default.
  • file.log: Path to a file containing Postfix logs. Example: /var/log/mail.log.
  • journald.path: Path where a systemd journal residing in. A local journal is being used by default.
  • journald.unit: Postfix systemd service name. postfix@-.service by default.
  • web.listen-address: Address to listen on for web interface and telemetry.
  • web.telemetry-path: Path under which to expose metrics.
  • log.level: Logging level. info by default.
  • log.format: Set the log target and format. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true.
TLS and basic authentication

The postfix_exporter supports TLS and basic authentication. To use TLS and/or basic authentication, you need to pass a configuration file using the --web.config.file parameter. The format of the file is described in the exporter-toolkit repository.

Directories

Path Synopsis
cmd
Package exporter provides a collector for Postfix stats.
Package exporter provides a collector for Postfix stats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL