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
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 ?
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?