Custom fields on metric queries
I'm trying to add user-friendly tags to existing metric queries to use on notifications and dashboards for Metric queries.
The functionality I was looking for is similar to what you can do on Log queries, with the 'as' keyword.
For example: _sourceCategory=my/source/category/for/prod | "Production" as environment
Is it possible to do something similar to this on metric queries?
-
Official comment
Hey Eliezer,
I would suggest 2 options here:1. Consider using Carbon2 metrics format
- Depending on what is generatin the metric, that tool may have an option to do this
- Carbon2 format allows you to add key value pairs and Sumo can collect them
- See "Carbon2 metric format" here
2. Consider using Metrics Rules
- This is a parsing option for metrics
- This may or may not work based on your specific metrics format and what is contained in the data you're sending
Let us know if this is helpful, and if you have any other questions. We also have a great public slack channel at slack.sumologic.com if you prefer that method for help.
Thanks for posting to the community!Comment actions
Please sign in to leave a comment.
Comments
1 comment