Skip to content

Commit

Permalink
Add in recognition of more complex inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGriggs-TomTom committed May 29, 2020
1 parent 6fadc8c commit 06d7bde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions syslog_ng_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ func (e *Exporter) collect(ch chan<- prometheus.Metric) error {
stat.value, stat.objectType, stat.id, stat.instance)
}

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

case "dst.":
switch stat.metric {
case "dropped":
Expand Down

0 comments on commit 06d7bde

Please sign in to comment.