Prometheus exporter for the metrics available in Logstash since version 7.0.
Usage
git clone https://github.com/Wing924/logstash-exporter
cd logstash-exporter
make
Flags
logstash-exporter --help
usage: logstash-exporter [<flags>]
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
--web.listen-address=":9649"
Address to listen on for web interface and telemetry.
--web.telemetry-path="/metrics"
Path under which to expose metrics.
--logstash.scrape-uri="http://localhost:9600"
URI on which to scrape logstash.
--logstash.timeout=5s Timeout for trying to get stats from logstash.
--version Show application version.
Implemented Metrics
metadata/config metrics
logstash_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which logstash_exporter was built.
logstash_exporter_json_parse_failures Number of errors while parsing JSON.
logstash_exporter_total_scrapes Current total logstash scrapes.
logstash_info A metric with a constant '1' value labeled by version, http_address, name, id and ephemeral_id from Logstash instance.
logstash_pipeline_config_batch_delay_seconds How long to wait before dispatching an undersized batch to workers.
logstash_pipeline_config_batch_size The maximum number of events an individual worker thread will collect from inputs before attempting to execute its filters and outputs.
logstash_pipeline_config_workers The number of workers that will, in parallel, execute the filter and output stages of the pipeline.
logstash_up Was the last scrape of logstash successful.
event metrics
logstash_event_duration_seconds_total The total process duration time in seconds.
logstash_event_filtered_total The total numbers of filtered.
logstash_event_in_total The total number of events in.
logstash_event_out_total The total number of events out.
logstash_event_queue_push_duration_seconds_total The total in queue duration time in seconds.