Skip to content

Flow _lifetime metrics are actually gauges #366

Closed
@VCCPlindsten

Description

Description of the Issue

The flow metrics exposed by logstash API are in fact gauges, that is, average over the timeframe described (current being 10s). Upstream doc: https://www.elastic.co/guide/en/logstash/current/node-stats-api.html#flow-stats

This may have been different in previous logstash versions?

logstash-exporter lists the following _lifetime metrics as counters, but the values behave like gauges (In logstash 8.15)

  • logstash_stats_flow_filter_lifetime
  • logstash_stats_flow_input_lifetime
  • logstash_stats_flow_output_lifetime
  • logstash_stats_flow_queue_backpressure_lifetime
  • logstash_stats_flow_worker_concurrency_lifetime
  • logstash_stats_pipeline_flow_filter_lifetime
  • logstash_stats_pipeline_flow_input_lifetime
  • logstash_stats_pipeline_flow_output_lifetime
  • logstash_stats_pipeline_flow_queue_backpressure_lifetime
  • logstash_stats_pipeline_flow_worker_concurrency_lifetime

In addition to changing the type, the help text should probably also be changed to indicate that this is the rate over the lifetime, rather than a total

Version of logstash-exporter, or logstash-exporter Image

1.7.1

Version of Chart (if applicable)

No response

Operating System/Environment

Logstash 8.15.0

Logs

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions