From b09453af1df93646bd1250a5a5ab4164ee665fd8 Mon Sep 17 00:00:00 2001 From: Bjoern Rabenstein Date: Wed, 21 Jan 2015 15:42:25 +0100 Subject: [PATCH] Adjust to new client_golang API. --- retrieval/target.go | 2 +- rules/manager/manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/retrieval/target.go b/retrieval/target.go index 2ae527f0f..8da1c0886 100644 --- a/retrieval/target.go +++ b/retrieval/target.go @@ -54,7 +54,7 @@ var ( Namespace: namespace, Name: "target_interval_length_seconds", Help: "Actual intervals between scrapes.", - Objectives: []float64{0.01, 0.05, 0.5, 0.90, 0.99}, + Objectives: map[float64]float64{0.01: 0.001, 0.05: 0.005, 0.5: 0.05, 0.90: 0.01, 0.99: 0.001}, }, []string{interval}, ) diff --git a/rules/manager/manager.go b/rules/manager/manager.go index 9f64efcd5..7a70db8e0 100644 --- a/rules/manager/manager.go +++ b/rules/manager/manager.go @@ -59,7 +59,7 @@ var ( Namespace: namespace, Name: "evaluator_duration_milliseconds", Help: "The duration for all evaluations to execute.", - Objectives: []float64{0.01, 0.05, 0.5, 0.90, 0.99}, + Objectives: map[float64]float64{0.01: 0.001, 0.05: 0.005, 0.5: 0.05, 0.90: 0.01, 0.99: 0.001}, }) )