07 Apr 2022 05:38 PM
Hi guys,
Customer monitor OpenShift(OCP) with dynatrace and requested to see Resource quotas across multiple projects in dynatrace. We didn't found this metric in dynatrace.
Question is if there a way to add more metrics from OCP beside creating AG plugin that will pull this information from the OCP thru it rest api and push into dynatrace with metric ingest rest api?
Thanks in advance for your insight with that.
All the best and stay safe
Yos
07 Apr 2022 08:37 PM
Did you tried with Prometheus Metrics?
08 Apr 2022 08:08 AM
Hi @dannemca not big expert in Prometheus but I wonder if it can scarp information from the management side and as far as I know OA is not installed on management servers by default.
08 Apr 2022 12:37 PM
The Prometheus integration is at cluster level, not at OA. In order to use it, you should have the cluster configured on Dynatrace using API or Dynatrace Operator.
I am also not an expert either, but I guess it can be done.
08 Apr 2022 05:49 PM
Stand corrected, will check with OCP guys the Prometheus option and will update.
Thanks @dannemca
07 Apr 2022 08:41 PM
Also, saw some builtin metrics for quotas, have you also check those?
builtin:cloud.kubernetes.namespace.quota.pods
builtin:cloud.kubernetes.namespace.quota.usedPods
08 Apr 2022 08:03 AM
Hi @dannemca tried those, they are per namespace not the multi project one.
08 Apr 2022 12:38 PM
If you do not use the split by namespace condition, it will show you the aggregated quota information from all projects/namespaces.
08 Apr 2022 05:50 PM
OK, this one is interesting !!!
Will check it next week with customer and will update
Thanks a lot for your inputs @dannemca !!!
Yos
10 Apr 2022 02:18 PM
Hi @dannemca
In this K8S cluster the resources per namespace is not set only the projects one.
When looking at builtin:cloud.kubernetes.namespace.quota.* metrics they show no value with or with out filtering.
Still checking the Prometheus suggestion with OCP guys. Will update
Thanks
Yos
06 Dec 2023 03:09 PM
Is there not an API call that Dynatrace could make to retrieve these metrics. We are also being asked to provide this data.