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

Export libbeat.outputs.acked_events via expvar #3411

Conversation

monicasarbu
Copy link
Contributor

@monicasarbu monicasarbu commented Jan 19, 2017

Part of #3422

With this PR, each Beat exports libbeat.redis.published_and_acked_events and libbeat.redis.published_but_not_acked_events via expvar for Redis.

In addition, libbeat.outputs.acked_events is exported in order to send one metric for all outputs instead of one metric per output. In the case two outputs are enabled, the number of published events will be double.
For example in case Redis and Elasticsearch outputs are enabled, then libbeat.redis.published_and_acked_events: 48, libbeat.elasticsearch.published_and_acked_events: 48 and libbeat.outputs.acked_events: 96.

@monicasarbu monicasarbu added in progress Pull request is currently in progress. review and removed in progress Pull request is currently in progress. labels Jan 19, 2017
@monicasarbu monicasarbu force-pushed the export_redis_published_and_acked_events branch from cae8fa2 to 37ef896 Compare January 19, 2017 14:26
@@ -17,6 +18,9 @@ import (

var (
versionRegex = regexp.MustCompile(`redis_version:(\d+).(\d+)`)

ackedEvents = expvar.NewInt("libbeat.redis.published_and_acked_events")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to name it

libbeat.redis.published.events.acked
libbeat.redis. published.events.not_acked

This corresponds better with our metricbeat conventions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used this name to be similar with libbeat.elasticsearch.published_and_acked_events, libbeat.logstash.published_and_acked_events and libbeat.kafka.published_and_acked_events. I agree that the name is not ideal, so maybe we can change all of them in a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I kind of assumed you copied it from there. +1 on changing / reviewing all our naming for the metrics. We started this before we had our naming conventions, so most don't fit too well ...

Export libbeat.output.acked_events via expvar
@monicasarbu monicasarbu force-pushed the export_redis_published_and_acked_events branch from 915c6fe to 262aa94 Compare January 19, 2017 20:09
@monicasarbu monicasarbu changed the title Export libbeat.redis.published_and_acked_events via expvar Export libbeat.output.acked_events via expvar Jan 19, 2017
@monicasarbu monicasarbu mentioned this pull request Jan 19, 2017
10 tasks
@monicasarbu monicasarbu changed the title Export libbeat.output.acked_events via expvar Export libbeat.outputs.acked_events via expvar Jan 19, 2017
@monicasarbu
Copy link
Contributor Author

Closing in favor of #3423

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

Successfully merging this pull request may close these issues.

2 participants