Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sokunthea.eang committed Oct 29, 2023
1 parent c742827 commit 87ca7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/powermanger/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func fetchPrometheusMetric(prometheusURL, prometheusQuery string) (float64, erro

func main() {
// Define your Prometheus query and threshold values
prometheusURL := "http://10.111.120.245:9090/api/v1/query"
prometheusURL := "http://127.0.0.1:9090/api/v1/query"
prometheusQuery := "(avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[2m])) * 100)"
thresholdHigh := 80.0 // Mostly idle => decrease frequency
thresholdLow := 20.0 // Mostly CPU bound => increase frequency
Expand Down

0 comments on commit 87ca7d5

Please sign in to comment.