Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 902 Bytes

File metadata and controls

21 lines (17 loc) · 902 Bytes

Integration tests

This folder contains all you need to test if logstash-exporter is compatible with certain version of logstash.

Requirements

You only need docker.

Execution

To test certain logstash version, go to this folder (integration-tests) and start logstash container via:

docker run -it -p 9600:9600 -v $PWD/pipeline:/usr/share/logstash/pipeline/ -v $PWD/test.log:/tmp/test.log -e XPACK_MONITORING_ENABLED=false --rm docker.elastic.co/logstash/logstash:6.3.0

Then start logstash-exporter with default configuration and obtain information about metrics via:

curl http://localhost:9198/metrics

Something similar to the following output must be present on previous output:

logstash_node_plugin_events_out_total{pipeline="main",plugin="file",plugin_id="07080308db2cfbd16a66fd40698946e2d0d2b0e86063a900a579f6d2055cb89e",plugin_type="input"} 1