05 Jun 2020 04:46 AM - last edited on 25 May 2021 03:40 AM by MaciejNeumann
How to filter dynatrace api and list all nodes with detected name property filtered based on property Kubernetes cluster = <cluster name>. There is a api list all hosts, however that takes only tags for filtering not properties. I also explored metrics/query api by using metricselector as builtin:cloud.kubernetes.cluster.nodes and entityselector as type("KUBERNETES_CLUSTER") but didn't find a way to filter based on properties and also it didnt give node display name rather it gave node counts on each cluster.
You could try and set automatic tagging rules that would provide the data but that feature is not available yet. Im going to be tossing in a RFE for that today as we will require it to set management zones for Kubernetes clusters as well based off of the properties.
Was a ticket filed for this? I have the same requirement