You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
When deploying an app to kubernetes, in order to get JVM application metrics with proper labels (i.e. get RAM usage by containerName or podName) you must add the following bean:
I wonder if we can somehow incorporate this into the metrics starter in a clean way rather than have users provide this configuration. Note that System.getenv("HOSTNAME") is only set in linux environment.
The text was updated successfully, but these errors were encountered:
Seems like a good idea. I am surprised Project ID is not autopopulated with our starter, though -- seems like it should, since our project autodetermination includes GKE.
When deploying an app to kubernetes, in order to get JVM application metrics with proper labels (i.e. get RAM usage by containerName or podName) you must add the following bean:
See this for reference:
https://github.com/GoogleCloudPlatform/bank-of-anthos/pull/289/files#diff-ea214d77e7f8cce9af9624c294899ab3
I wonder if we can somehow incorporate this into the metrics starter in a clean way rather than have users provide this configuration. Note that
System.getenv("HOSTNAME")
is only set in linux environment.The text was updated successfully, but these errors were encountered: