please make the label name dynamic, not hardcoded #256
Replies: 2 comments 2 replies
-
Hi, you can add a feature request, but it is currently not planned. This would blow up the interface even more. Have you considered writing your own instrumentation function that mimics the default metrics? Here is one example of this: |
Beta Was this translation helpful? Give feedback.
-
I agree with @andytanoko ! That would be great if the labels could easily be customisable without having to rewrite the metrics functions. I think we could change the way to get the label value. I think this library is great, very useful. So I would be very happy to contribute and propose you a pull request for it. What do you think ? |
Beta Was this translation helpful? Give feedback.
-
prometheus-fastapi-instrumentator is a good library, it can automatically generate metrics. but label name is hardcoded. is there any development plan to make it dynamic? following is the code snippet from metrics.py
Beta Was this translation helpful? Give feedback.
All reactions