Example telegraf.conf snippet:
[[inputs.http]] urls = ["http://localhost:8080/pmta/stats"] data_format = "value" data_type = "string" [[processors.regex]] [[processors.regex.fields]] key = "body" pattern = "(\w+\.\w+\.\w+)\s+(\d+)" replacement = "$1:$2"
http-listener listen-address :8080 # Restrict to localhost or your monitoring IP allow "127.0.0.1" allow "10.0.0.0/8"
Why You Shouldn’t Ignore Port 8080: A Guide to PowerMTA Monitoring
Have a favorite PMTA monitoring script or dashboard? Share it in the comments below!