Skip to content

Instantly share code, notes, and snippets.

@nbrownus
Created November 18, 2014 18:16
Show Gist options
  • Save nbrownus/7a8fa65e644d4c371b3b to your computer and use it in GitHub Desktop.
Save nbrownus/7a8fa65e644d4c371b3b to your computer and use it in GitHub Desktop.
rsyslog - collectd config
<Plugin "tail">
<File "/var/log/rsyslog_stats.log">
Instance "rsyslog"
#########################################################
# MAIN QUEUE SECTION ####################################
#########################################################
<Match>
DSType "GaugeLast"
Instance "main_queue.size"
Regex "\"main Q\".*\"size\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue.enqueued"
Regex "\"main Q\".*\"enqueued\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue.full"
Regex "\"main Q\".*\"full\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue.discarded_full"
Regex "\"main Q\".*\"discarded\\.full\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue.discarded_not_full"
Regex "\"main Q\".*\"discarded\\.nf\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue.max_queue_size"
Regex "\"main Q\".*\"maxqsize\":([0-9]*)"
Type "gauge"
</Match>
#########################################################
# MAIN QUEUE DISK ASSIST SECTION ########################
#########################################################
<Match>
DSType "GaugeLast"
Instance "main_queue_disk_assist.size"
Regex "\"main Q\\[DA\\]\".*\"size\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue_disk_assist.enqueued"
Regex "\"main Q\\[DA\\]\".*\"enqueued\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue_disk_assist.full"
Regex "\"main Q\\[DA\\]\".*\"full\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue_disk_assist.discarded_full"
Regex "\"main Q\\[DA\\]\".*\"discarded\\.full\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue_disk_assist.discarded_not_full"
Regex "\"main Q\\[DA\\]\".*\"discarded\\.nf\":([0-9]*)"
Type "gauge"
</Match>
<Match>
DSType "GaugeLast"
Instance "main_queue_disk_assist.max_queue_size"
Regex "\"main Q\\[DA\\]\".*\"maxqsize\":([0-9]*)"
Type "gauge"
</Match>
</File>
</Plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment