Would it be helpful to make the metric name optional? #1605
-
Hello Team, I would appreciate your feedback about a little suggestion, please. While trying Promitor (with Prometheus), I can see that the Metric Name is a required field. Would it helpful to make it optional and automatically construct the metric name for Prometheus sink as follow:
An example for clarification: And the metric definition is:
Just wanted to see if it's worth it and maybe I can work on a PR. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That's an interesting idea. If we support this, I think the pattern should be configurable where tokens can be used to define what goes where. For example, I don't think everyone wants to have In terms of the short name, that is something you'd expect that we define then or not? If would not limit it to Prometheus though, but support StatsD as well since it is applicable there, but we would need to have validation and enforce the metric name if an unsupported sink is being used. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your prompt answer, @tomkerkhove. Please find my thoughts below.
I got the idea from the Prometheus CloudWatch exporter as I am using it and I like how the metrics are named automatically as I had explained.
That makes sense! I believe it will be fine to have
Exactly! Those values will be defined only by us. For every resource that promitor supports.
Totally makes sense! I just mentioned Prometheus as I think this naming convention I am suggestion is kind of matching the best practices for the Prometheus Metric names too but not sure about StatsD (I will have a look) |
Beta Was this translation helpful? Give feedback.
Thanks for your prompt answer, @tomkerkhove. Please find my thoughts below.
I got the idea from the Prometheus CloudWatch exporter as I am using it and I like how the metrics are named automatically as I had explained.
That makes sense! I believe it will be fine to have
azure_
as a prefix but totally makes sense to make it configurable in case users wants to drop that prefix.Exactly! Those…