29 Sep 2025 09:14 PM
Good afternoon.
I have been asked what all the existing Kubernetes metrics and their thresholds are for anomaly detection. These are all OOTB thresholds.
How can I export all of these existing anomaly detection metric thresholds?
I know how to pull each one up manually under Settings/Anomaly Detection/Kubernetes, but I am assuming there is an API call that would allow me to export these for a much quicker review with my DevOps team?
I reviewed the different APIs that I have access to, but I could not find anything. Nor could CoPilot or Google searches direct me to an answer here.
Thank you for your assistance.
30 Sep 2025 12:36 AM
@djmnyc Below API should get the details you are after , include the schemaIds
https://docs.dynatrace.com/docs/shortlink/api-v2-settings-get-effective-values
curl -X 'GET' \
'https://DT_URL/api/v2/settings/effectiveValues?schemaIds=builtin%3Aanomaly-detection.kubernetes.node%2Cbuiltin%3Aanomaly-detection.kubernetes.cluster%2Cbuiltin%3Aanomaly-detection.kubernetes.namespace%2Cbuiltin%3Aanomaly-detection.kubernetes.workload%2Cbuiltin%3Aanomaly-detection.kubernetes.pvc&scope=environment&fields=origin%2Cvalue&adminAccess=false' \
-H 'accept: application/json; charset=utf-8' \
-H 'Authorization: Api-Token dt0c01.XXXX'