cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to gather a value from a file in the Openshift PODs ?

enesk
Newcomer

We need to gather a value from a file in the Openshift PODs to Dynatrace as a metric . there is only one value in the file like this:

sh-4.2$ cat /sys/fs/cgroup/pids/pids.current
85

the best way to go about this is using a custom device via API and uploading the metric. I don't see a way to do this with the OpenShift integration unfortunately. Could you help me about it ?


2 REPLIES 2

Julius_Loman
Leader

At the moment this is not directly possible. Depending on how you are monitoring applications in openshift (full stack / application only ) you have several options, but all of them require changes in your app (pod). Probably the best way to do it is to push the value by your application to Dynatrace using newly introduced metrics ingestion API.

OneAgent extensions do not work inside containers (pods), so it would work only if you would share your file for the openshift worker node host.

Doesn't your application expose this value using Prometheus exporter?

We use internal Prometheus provided by Openshift only for system monitoring. We can't customize it incase of unsupported condition 😞