github.com/gocrane/crane@v0.11.0/examples/tsp-node-resource-dsp.yaml (about) 1 apiVersion: prediction.crane.io/v1alpha1 2 kind: TimeSeriesPrediction 3 metadata: 4 name: tsp-node-resource-dsp 5 namespace: default 6 spec: 7 targetRef: 8 kind: Node 9 name: 192.168.56.166 10 predictionWindowSeconds: 180 11 predictionMetrics: 12 - resourceIdentifier: node-cpu 13 type: ResourceQuery 14 resourceQuery: cpu 15 algorithm: 16 algorithmType: "dsp" 17 dsp: 18 sampleInterval: "60s" 19 historyLength: "3d" 20 estimators: 21 fft: 22 - marginFraction: "0.2" 23 lowAmplitudeThreshold: "1.0" 24 highFrequencyThreshold: "0.05" 25 minNumOfSpectrumItems: 10 26 maxNumOfSpectrumItems: 20 27 - resourceIdentifier: node-mem 28 type: ResourceQuery 29 resourceQuery: memory 30 algorithm: 31 algorithmType: "dsp" 32 dsp: 33 sampleInterval: "60s" 34 historyLength: "3d" 35 estimators: 36 fft: 37 - marginFraction: "0.2" 38 lowAmplitudeThreshold: "1.0" 39 highFrequencyThreshold: "0.05" 40 minNumOfSpectrumItems: 10 41 maxNumOfSpectrumItems: 20