Comments (9)
I have plans to expose metrics via micrometer.io, so stay tuned 😁
from grpc-spring-boot-starter.
@jvmlet, we are using the grpc-spring-boot-starter, but would like to run boot alongside to provide the kubernetes liveness and readiness probes. The boot however does not start web server (neither Tomcat, nor Jetty).
Would you have any hint on how to use spring boot actuator on http (rest) for health check alongside the grpc port?
from grpc-spring-boot-starter.
You are right, I haven't found the API to attach gRPC listener to the running instance of server.
At our own projects we are running both embedded Tomcat that hosts actuator endpoints and embedded gRPC server on different ports.
from grpc-spring-boot-starter.
I tried this, but I didn't see the Jetty instance start. I can try embedded tomcat. Did you do anything else to make this side by side configuration work?
from grpc-spring-boot-starter.
No, nothing special, I just added web starter with actuator together with grpc starter and got tomcat with netty running side by side. I'll be able to send you the sample at Sunday if you still have issue till then.
from grpc-spring-boot-starter.
@Joholland,
I've updated the demo application to host actuators + added test case for this.
Also, you can start demo app with gradle bootRun
or java -jar grpc-spring-boot-starter-demo-0.0.2.jar
and see the output of http://localhost:8080/env
.
from grpc-spring-boot-starter.
@jvmlet does your solution get the actuator to give info on GRPC such as tracing the request time of those GRPC endpoints? I want to know how long my business logic is taking to respond, and the logic is triggered by the GRPC endpoints.
from grpc-spring-boot-starter.
@axcrest not yet, but you can have a loot at
#136 that integrates kibana APM via interceptors support as example
from grpc-spring-boot-starter.
If you add web and actuator starters to your app, do you see metrics exposed by grpc?
from grpc-spring-boot-starter.
Related Issues (20)
- Upgrade to grpc 1.57.0
- 5.1.0 changes status exception behaviour HOT 6
- Spring Boot 3 and gRPC HOT 1
- 5.0.0 to 5.1.4 changes status exception behaviour HOT 13
- Upgrade grpc to 1.58
- spring cloud config problem HOT 3
- Does it support mTLS while registering services to Consul ? HOT 1
- Buggy interceptors @Order annotation processing HOT 5
- Spring Security Keycloak integration HOT 5
- Order annotation for @GRpcGlobalInterceptor not working correctly when using 'org.springframework.boot.autoconfigure.AutoConfiguration.imports'
- `SecurityInterceptor` extends a deprecated interface (6.1.4) HOT 3
- actuator/health/grpc endpoint continue reporting grpc services as SERVING even if grpc server has been stopped HOT 1
- Stream closed before write could take place HOT 1
- Using custom implementation for auth token ,How to leverage security context holder to get authentication if token is not changed for subsequent request HOT 1
- Updating spring-boot to 3.2.0 breaks with "An AuthenticationManager is required" HOT 9
- Request level bean creation
- grpc default executor not overriding in server builder
- Security API enhancements #2
- Update grpc dependencies from 1.58.0 to 1.62.* or later
- Update gRPC to 1.63 due to client retry fixed in this version of gRPC HOT 1
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 grpc-spring-boot-starter.