For our application I was looking into a way to implement health checks for monitoring the application. Example use cases are for Loadbalancers or Container Orchestration tools that monitor the application for health.
I found the following Felix package, but cannot seem to add it to the dependencies.
In particular, I was aiming to add the webconsole plugin and use that endpoint.
This might be more appropriate for a Github Issue, but maybe somebody can already let me know here if this is at all possible?
I am trying to monitor the OpenEMS Edge application. Since it’s using the Apache Felix framework, I went looking for pre-existing libraries to add some healthcheck utility for monitoring the application.
The use case is simply for infra / operational monitoring of the Docker container, to check for health or readiness of this particular service. Common practice here is to expose a /health endpoint for this.
The following error I am now stuck at. I already also added dependency org.owasp.encoder after receiving similar complaints.
Can’t seem to resolve this error in similar way.
Unable to resolve org.apache.felix.healthcheck.webconsoleplugin version=2.2.0: missing requirement osgi.service;effective:=active;filter:='(objectClass=org.apache.felix.hc.api.execution.HealthCheckExecutor)'
Thanks for the references. While they are also interesting ideas I am really looking for a mechanism of the osgi framework itself, rather than relying on a specific component.
So it’s not really for measuring internal state of the application, or monitoring specific parts of the application.
The idea here is simply to detect availability of the service. Load Balancers, Reverse Proxy or Container Orchestration often rely on such an endpoint to probe for readiness, or health.
Many frameworks have boilerplate tools readily available. For Spring Boot there’s org.springframework.boot:spring-boot-starter-actuator and after looking around for something similar for Felix OSGi framework I came across this particular dependency.
I guess the root of my problem lies in my limited understanding of the OSGi framework and how it handles dependencies. I would be very keen to find some good learning resources for this.