nsqd: ability to skip ephemeral topics/channels in statsd output #1346
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When using nsqd with statsd/graphite ephemeral topics and channels can dramatically increase the number of datasets on the graphite side. This creates an option to filter out those from being written to graphite)
I thought this was existing behaviour but discovered this issue due to a new usage pattern that used a dynamic and frequently changing ephemeral channel name. In my case the
#
was being stripped out of key names and so I had missinterpreted missing graphs in nsqadmin for ephemeral channels as no data in graphite, when it was actually a missmatch between the query and resulting dataset key.To provide a way to filter out ephemeral topics and channels this adds a new
--statsd-exclude-ephemeral
argument which defaults to false (existing behavior).