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

Persistent volume claim monitoring/anomaly detection exclusion

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Dear All,

To exclude a specific PVC from monitoring and disk space anomaly detection, what steps should be taken?

Babar_Qayyum_0-1729743658016.png

Regards,

Babar

3 REPLIES 3

Peter_Youssef
Champion

Hello @Babar_Qayyum 

As a suggestion you can refer to the attached resources if it can be configured from K8s side and reflected in Dynatrace:

If we used the anomaly detection API:

curl 'https:///e//api/v2/settings/objects' \
-X POST \
-H 'Accept: application/json; charset=utf-8' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Authorization: Api-Token ACCESS_TOKEN' \
-d $'[{"schemaId":"builtin:anomaly-detection.kubernetes.pvc","schemaVersion":"1.2","scope":"environment","value":{"lowDiskSpaceCritical":{"enabled":true},"lowDiskSpaceCriticalPercentage":{"enabled":true,"configuration":{"threshold":3,"samplePeriodInMinutes":3,"observationPeriodInMinutes":5}}}}]'

The section that would be changed the scope instead of environment DevOps can specify specific PVCs and exclude the others.

Or

  • Extract the Objects from the Environment API v2 and update the intended object via API and check if it's applied as expected or not.

Hopefully it adds value.
KR,

Peter.

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Hello @Peter_Youssef 

Thank you for your feedback. We can implement changes on the namespaces individually rather than at the cluster or global level; however, this approach would be quite labor-intensive. Consequently, I am looking for a more straightforward method to exclude items, similar to how we exclude disks.

Regards,

Babar

Hello @Babar_Qayyum 

Thanks for the updates, good to hear that.
Let's investigate the workaround 🚪😉😊.

Featured Posts