Changes

Jump to: navigation, search

Openshift - HAproxy metrics EN

25 bytes removed, 13:02, 20 November 2019
grok-exporter introduction
* global:
* input: Tells you where and how to retrieve logs. Can be stdin, file and webhook. We will use the file input.
* grok: Location of the grok patterns. Pattern definition will be stored in /grok/patterns folder.
* metrics: This is the most important part. Here you need to define the metrics and the associated regular expression
<br>
====Metrics====
Metrics must be defined by metric typetypes. The four basic types of prometheus metrics are supported: '''Gauge, Counter, Histogram, Summary''' (quantile)Below the type you must specify<br>Each definition contains 4 parts:
* name: This will be the name of the metric
* help: This will be the help text for the metric.
* match: Describe the structure of the log string like in a regular expression to which the metrics should fitstyle. Here you can use pre-defined grok patterns:
** '''BASIC grok patterns''': https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/grok-patterns
** '''HAROXY patterns''': https://github.com/logstash-plugins/logstash-patterns-core/blob/master/patterns/haproxy
 
* label: You can name the result groups. The name can be referenced in the label section, which will create a label whose value will be the parsed data.

Navigation menu