19 Sep 2023 10:29 AM
Hi
I can see the age column related to pods under kubernetes overview of the node
how can i use it to display in dashboard panel to show the uptime of the pods
Solved! Go to Solution.
19 Sep 2023 10:10 PM
Hello,
In order to get that information dashboarded you would have to be able to get a metric to display in data explorer. Please try looking through the kubernetes built in metrics found here, https://www.dynatrace.com/support/help/shortlink/all-metrics#kubernetes.
If there is not a metric for "pod uptime" it may have to be a custom metric, or you can post this in the Ideas channel for suggesting the creation of such a metric.
19 Sep 2023 10:27 PM
i think that if you use builtin:host.uptime maybe works, but i dont know for sure.
You can try create metrics to do this. anyway take a look of this documentation page
Feel free to ask if you got any doubts
19 Sep 2023 10:55 PM
Hi @VENKY1544,
AFAIK there is not an OOTB solution. Maybe you can play with Environment APIv2 Monitored entities:
GET / entities provide a list of entities with fist seen and last seen attribute, you can filter only for pods by type("CLOUD_APPLICATION_INSTANCE")
or
GET / entities / {entityId} but in this case you should know the individual entity ids.
I hope it helps to start thinking.
Best regards,
Mizső
04 Oct 2023 02:44 PM
hi @VENKY1544 , did any of the comments above help you? You can accept any of them as solutions if they work 🙂