You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to use the Collectd Tail Plugin for tracking my Postfix log file. I would like to publish Postfix frequency metrics to CloudWatch using the DSType:CountInc/Type:frequency (value:gauge:0:U) settings. I am using the csv plugin to view the output and it appears that Collectd is recording "nan" for the intervals where no metrics are received from the Postfix log file. With CloudWatch you are unable to publish "nan" values. Is there a method or setting I am missing that would allow me to substitute "nan" with "0" in publishing to CloudWatch? During the intervals where nan results occur, CloudWatch metrics do not get recorded resulting in a broken chart.
Plugin tail configuration:
<Plugin "tail">
<File "/var/log/maillog">
Instance "postfix"
Interval 60
#Since 5.8, Collectd supports new options:
#Plugin "postfix"
#Instance "main"
# number of connections
# (incoming)
<Match>
Regex "\\<postfix\\/smtpd\\[[0-9]+\\]: connect from\\>"
DSType "GaugeInc"
Type "frequency"
Instance "connection-in-open"
</Match>
<Match>
Regex "\\<postfix\\/smtpd\\[[0-9]+\\]: disconnect from\\>"
DSType "GaugeInc"
Type "frequency"
Instance "connection-in-close"
</Match>
</File>
</Plugin>
Output sample of csv plugin for one of the Postfix metrics:
I am attempting to use the Collectd Tail Plugin for tracking my Postfix log file. I would like to publish Postfix frequency metrics to CloudWatch using the DSType:CountInc/Type:frequency (value:gauge:0:U) settings. I am using the csv plugin to view the output and it appears that Collectd is recording "nan" for the intervals where no metrics are received from the Postfix log file. With CloudWatch you are unable to publish "nan" values. Is there a method or setting I am missing that would allow me to substitute "nan" with "0" in publishing to CloudWatch? During the intervals where nan results occur, CloudWatch metrics do not get recorded resulting in a broken chart.
Plugin tail configuration:
Output sample of csv plugin for one of the Postfix metrics:
Output of what I would like to see:
The text was updated successfully, but these errors were encountered: