Allow custom prefix for Rqueue metrics
Is your feature request related to a problem? Please describe.
We have a lot of metrics published from different sources in our DataDog account. The metrics published by Rqueue have names like queue.size, dead.letter.queue.size, etc.
They are hard to find in a large list of metrics because they aren't grouped together.
Describe the solution you'd like
It would be great to have a new optional property that can be defined to specify a prefix for these metric names, e.g. rqueue.metrics.prefix=rqueue- or something similar.
Describe alternatives you've considered I don't think there are any alternatives right now - the metric names seem to be hardcoded.
How about adding an additional tag? Since the metric names are usually fixed, we can use specific tags to search across all related metrics. I understand that searching by name alone might be difficult, as the same metric name could appear in different contexts (e.g., normal queue, Kafka, etc.).
If you’d like to add custom tags, you can simply set them using:
rqueue.metrics.tags.metric-type=rqueue
Additional tagging is already supported though prefix can be added as well by making a change in the code.
Adding an additional tag could work, but it does increase the cardinality of the metric, which can increase costs on platforms like DataDog. It's also slightly more cumbersome to search for in the metrics explorer.
Most other integrations that push data into things like DataDog tend to use common prefixes like aws., elasticsearch., etc.
That's correct, we would need to make a change few places and few lines to make it work.