Comments (11)
Another option could be to use Route (api/cities/{id}) instead of a Path (api/cities/2342) and avoid using RegExes if possible. This way it'll be also easier to detect wildcard routes "/api/search/{*searchString}". What do you think?
from prom-client-httprequestdurations.
I will write prototype for test. And then I'll think about how best to work with it.
from prom-client-httprequestdurations.
Any progress with this? I'm trying to get metrics for request durations that also include paths, but it would be a lot more useful if there is a way to normalize ID values.
from prom-client-httprequestdurations.
@dmeenhuis I will come back to this issue soon.
Thank you!
from prom-client-httprequestdurations.
Thanks! I managed to fork this repo and incorporate the changes in the linked PR and for now that seems to work fine, although it contains a minor bug for the integer normalization (it doesn't properly deal with integer values at the end of the path, where there is no trailing slash).
Would love to see an update from your end, thanks for this very useful library so far 👍
from prom-client-httprequestdurations.
Thanks! I managed to fork this repo and incorporate the changes in the linked PR and for now...
@dmeenhuis Is it me or you didn't push or create a PR? I can't find it in this repo
from prom-client-httprequestdurations.
It's not you, I didn't actually push the changes yet. Can do that tomorrow if you like.
from prom-client-httprequestdurations.
I finished work with this:prom-client-net/prom-client#18
Now, I can come back to this issue
from prom-client-httprequestdurations.
Released. 1.1.0
from prom-client-httprequestdurations.
Regex examples
from prom-client-httprequestdurations.
If something does not work, then reopen.
from prom-client-httprequestdurations.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prom-client-httprequestdurations.