Upgrade to Pro — share decks privately, control downloads, hide ads and more …

grok_exporter

 grok_exporter

Lightning talk at the http://www.PromCon.io 2016.

Source code at https://github.com/fstab/grok_exporter

Fabian Stäber

August 25, 2016
Tweet

More Decks by Fabian Stäber

Other Decks in Technology

Transcript

  1. github.com/fstab/grok_exporter ERROR 30.07.2016 14:37:03 alice 1.5 WARNING 30.07.2016 14:37:33 alice

    2.5 ERROR 30.07.2016 14:43:02 bob 2.5 ERROR 30.07.2016 14:45:59 alice 2.5 Prometheus ?
  2. github.com/fstab/grok_exporter ERROR 30.07.2016 14:37:03 alice 1.5 WARNING 30.07.2016 14:37:33 alice

    2.5 ERROR 30.07.2016 14:43:02 bob 2.5 ERROR 30.07.2016 14:45:59 alice 2.5 Prometheus github.com/google/mtail • Own ‘programming language’ with variables, actions, conditionals, etc. • Supports Prometheus, collectd, StatsD, Graphite, etc. github.com/fstab/grok_exporter • Builds on Grok patterns • Simple Grok → Prometheus bridge
  3. github.com/fstab/grok_exporter ERROR 30.07.2016 14:37:03 alice 1.5 WARNING 30.07.2016 14:37:33 alice

    2.5 ERROR 30.07.2016 14:43:02 bob 2.5 ERROR 30.07.2016 14:45:59 alice 2.5 input: type: file path: ./example.log grok: patterns_dir: ./logstash-patterns metrics: - type: counter name: grok_example_lines_total help: Counter metric example. match: '%{LOGLEVEL} %{DATE} %{TIME} %{USER} %{NUMBER}'
  4. github.com/fstab/grok_exporter ERROR 30.07.2016 14:37:03 alice 1.5 WARNING 30.07.2016 14:37:33 alice

    2.5 ERROR 30.07.2016 14:43:02 bob 2.5 ERROR 30.07.2016 14:45:59 alice 2.5 input: type: file path: ./example.log grok: patterns_dir: ./logstash-patterns metrics: - type: counter name: grok_example_lines_total help: Counter metric example. match: '%{LOGLEVEL:severity} %{DATE} %{TIME} %{USER} %{NUMBER}' labels: - grok_field_name: severity prometheus_label: severity