Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions syslog_ng_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ func (e *Exporter) collect(ch chan<- prometheus.Metric) error {
log.Debugf("Successfully parsed STATS line: %v", stat)

switch stat.objectType[0:4] {
case "src.":
case "src.", "sour":
switch stat.metric {
case "processed":
ch <- prometheus.MustNewConstMetric(e.srcProcessed, prometheus.CounterValue,
stat.value, stat.objectType, stat.id, stat.instance)
}

case "dst.":
case "dst.", "dest":
switch stat.metric {
case "dropped":
ch <- prometheus.MustNewConstMetric(e.dstDropped, prometheus.CounterValue,
Expand Down