Process Metrics in Springboot not coming - spring-boot

I am facing a weird problem in spring boot application. I am exposing metrics through actuator and micrometer-registry-prometheus.
I am able to see all expected metrics in when I run from my localhost but I am not able to see ProcessMetrics(cpuUsage, processUsage) when I deploy my application in my k8s environment.
I have checked the version of the actuator and micrometer-prometheus as well, They are all same.
I have referred the link: https://github.com/micrometer-metrics/micrometer/issues/513. The solution suggested did not work for me. My service also contains Kafka and Postgres dependency.
I dont know What is causing the issue. Any help will be much appreciated.

Related

What is prometheus-rsocket-proxy and how to use it?

I have a Spring Boot based short-live service.
Until now, I used PushGateway to send metrics to Prometheus.
I encountered this repository and I'm trying to understand how do I setup the proxy. It's not clear from the docs.
Thanks

Access to Spring Boot Application logs

Is there a way to access the Spring Boot Application logs through the REST webservice? I am running my Spring Boot microservices in Openshift, but dont have access to the Admin console, so I am wondering, if I can easily access the logs or copy them per demand somewhere.
I'm not interested in advices such configure ELK, etc, because I am not the owner of the infrastructure, just the microservices.
Many thanks
Finally I solved as follows. Store the logs into the file, connect microservice to SBA and check the logs there.
logging:
file: /log/application.log
And then use Spring Boot Admin, which allows you to see the logs. Hope it helps somebody.

Spring Boot - Cloud Configuration and Docker

I am new to Spring Boot and evaluating the same for building microservice-based application in my organisation.
I have gone through many examples and I see that most of them are tightly coupled with Docker. I understand, each microservice is being run as a new instance. But, if I am working on Windows, and don't want to go the Docker way, does Spring Cloud as a whole really makes sense. Please help me if I am missing out on something.

Spring Boot + Spring insight

in the past I worked with Spring Insight (tc runtime with STS) and I found it nicely to have the possibility to have a look at the performance of my server.
Now I would have the possibility to use the insight agent in other applications. For example I would it inbound in a jetty container or better in spring-boot application (only for development purpouses). Is there any person that has done this, and can explain me how to configure it?
Txs

When customizing the management server port, how is this implemented?

When reading through the spring boot documentation (http://docs.spring.io/spring-boot/docs/1.2.1.RELEASE/reference/htmlsingle/#production-ready-customizing-management-server-port), I see that you can customize the port on which actuator is running. If I am using embedded tomcat, how is this implemented? Is this creating another Connector or is it starting up a different instance of tomcat all together? If it is tomcat, do we have any idea how much more memory this takes?
-Joshua
It starts a separate embedded instance of Tomcat. The /metrics endpoint of Spring Boot's Actuator or a tool like JConsole will give you some insight into the heap usage.

Resources