Browse Source

ClusterNodes, ClusterDisks: revert to 5m resolution

Niko Kovacevic 5 years ago
parent
commit
ce408d4a3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/costmodel/cluster.go

+ 2 - 2
pkg/costmodel/cluster.go

@@ -123,7 +123,7 @@ func ClusterDisks(client prometheus.Client, provider cloud.Provider, duration, o
 	// minsPerResolution determines accuracy and resource use for the following
 	// minsPerResolution determines accuracy and resource use for the following
 	// queries. Smaller values (higher resolution) result in better accuracy,
 	// queries. Smaller values (higher resolution) result in better accuracy,
 	// but more expensive queries, and vice-a-versa.
 	// but more expensive queries, and vice-a-versa.
-	minsPerResolution := 1
+	minsPerResolution := 5
 
 
 	// hourlyToCumulative is a scaling factor that, when multiplied by an hourly
 	// hourlyToCumulative is a scaling factor that, when multiplied by an hourly
 	// value, converts it to a cumulative value; i.e.
 	// value, converts it to a cumulative value; i.e.
@@ -283,7 +283,7 @@ func ClusterNodes(cp cloud.Provider, client prometheus.Client, duration, offset
 	// minsPerResolution determines accuracy and resource use for the following
 	// minsPerResolution determines accuracy and resource use for the following
 	// queries. Smaller values (higher resolution) result in better accuracy,
 	// queries. Smaller values (higher resolution) result in better accuracy,
 	// but more expensive queries, and vice-a-versa.
 	// but more expensive queries, and vice-a-versa.
-	minsPerResolution := 1
+	minsPerResolution := 5
 
 
 	// hourlyToCumulative is a scaling factor that, when multiplied by an hourly
 	// hourlyToCumulative is a scaling factor that, when multiplied by an hourly
 	// value, converts it to a cumulative value; i.e.
 	// value, converts it to a cumulative value; i.e.