java-grpc-prometheus icon indicating copy to clipboard operation
java-grpc-prometheus copied to clipboard

Recording more information about a request

Open vim345 opened this issue 4 years ago • 4 comments

Is there any way to create labels from grpc requests data? Let's say I have a GRPC endpoint that accepts four parameters: p1, p2, p3, and p4. I'd like to group my metrics based on p1 values.

vim345 avatar Mar 16 '20 23:03 vim345

I am also looking for something like this, so I can group grpc metrics based on application

nichuHere avatar Apr 07 '20 11:04 nichuHere

I ended up using the parent repo directly:

https://github.com/prometheus/client_java

I don't have many gRPC endpoints. So using the parent repo works for me.

vim345 avatar Apr 08 '20 23:04 vim345

@vim345 Just to clarify, how are you exporting metrics to prometheus?

Are you using a push gateway or are you serving your own HTTP server somehow? Maybe I'm missing something but I can't see how this git repo is managing to export the metrics to prometheus. I'd be interested to see an example of what you set up.

QuinnBast avatar Oct 19 '21 17:10 QuinnBast

@QuinnBast we're using a custom pull mechanism to put the data into prometheus.

vim345 avatar Oct 19 '21 19:10 vim345