ex: mongodb_.*_connections{addr=“ops.URI”}
Is this achievable?
I would love to answer you but I am not a mind reader so cannot know what data source / time series database your using, that information would be help a great deal in answering your question.
oh,I’m so sorry,the database is prometheus which i use ,thanks
Think that is generally considered an anti-pattern. Brian has an example of how to do it (that he does not recommend) in the blog using __name__
. The recommended way to do this is to use labels instead.
Thank you very much ,i see