Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events metrics appear to be inverted #20

Open
sdanbury opened this issue Apr 27, 2018 · 2 comments
Open

Events metrics appear to be inverted #20

sdanbury opened this issue Apr 27, 2018 · 2 comments

Comments

@sdanbury
Copy link

I am using the following logstash config with filebeat as the only input and loggly as the only output:

The input block is provided by the incubator/helm Chart, which uses this exporter Docker image.

The output block I use is the following, overriding using my own values.yaml file.

output {
      loggly {
        proto => "https"
        host => "logs-01.loggly.com"
        key => REDACTED
      }
}

When using the community logstash grafana dashboard, I get the following results:

image

The underlying queries are:

Left graph:

sum(rate(logstash_node_plugin_events_in_total[$interval])) by (plugin)

Right graph:

sum(rate(logstash_node_plugin_events_out_total[$interval])) by (plugin)

It appears that they are inverted, meaning that I am seeing large input numbers for loggly, and large output numbers for beats. Very possible I am misunderstanding what "Events In" and "Events Out" means in relation to plugins, but if that is the case, the metric names are very confusing.

@phspagiari
Copy link

phspagiari commented Aug 28, 2018

+1. I added some ids to debug my logstash flow and AFAIK it's inverted.

  • sum(logstash_node_plugin_events_in_total{plugin_id=~"input.*"}) results 0
  • sum(logstash_node_plugin_events_out_total{plugin_id=~"output.*"}) results 0
  • sum(logstash_node_plugin_events_in_total{plugin_id=~"output.*"}) results the output number.
  • sum(logstash_node_plugin_events_out_total{plugin_id=~"input.*"}) results the input number.

@tkornai
Copy link

tkornai commented Feb 15, 2019

I think this is more about that plugins.inputs.events.in is not an existing metric in the pipeline stats, only plugins.inputs.events.out:
https://www.elastic.co/guide/en/logstash/current/node-stats-api.html#pipeline-stats
So having this metric populated doesn't make sense:

ch <- prometheus.MustNewConstMetric(
c.PipelinePluginEventsIn,
prometheus.CounterValue,
float64(plugin.Events.In),
pipelineID,
plugin.Name,
plugin.ID,
"input",
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants