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

How to Export Kubernetes OOTB Metric Thresholds for Anomaly Detection

djmnyc
Frequent Guest

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.

 

1 REPLY 1

p_devulapalli
Leader

@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'
Phani Devulapalli

Featured Posts