From: Ward Vandewege Date: Mon, 17 May 2021 19:20:28 +0000 (-0400) Subject: 17678: implement review feedback. X-Git-Tag: 2.2.0~27^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/44aa688953d658a23c32581a2bad01342007a191 17678: implement review feedback. Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- diff --git a/doc/user/cwl/costanalyzer.html.textile.liquid b/doc/user/cwl/costanalyzer.html.textile.liquid index 70a1be5dac..fc39ada523 100644 --- a/doc/user/cwl/costanalyzer.html.textile.liquid +++ b/doc/user/cwl/costanalyzer.html.textile.liquid @@ -24,7 +24,7 @@ The @arvados-client costanalyzer@ tool has a number of command line arguments:
~$ arvados-client costanalyzer -h
 Usage:
-  arvados-client costanalyzer [options ...]  ...
+  arvados-client costanalyzer [options ...] uuid [uuid ...]
 
   This program analyzes the cost of Arvados container requests. For each uuid
   supplied, it creates a CSV report that lists all the containers used to
@@ -59,6 +59,13 @@ Usage:
   a column that indicates the preemptible state of the instance that ran the
   container.
 
+  - This program does not take into account overhead costs like the time spent
+  starting and stopping compute nodes that run containers, the cost of the
+  permanent cloud nodes that provide the Arvados services, the cost of data
+  stored in Arvados, etc.
+
+  - When provided with a project uuid, subprojects will not be considered.
+
   In order to get the data for the uuids supplied, the ARVADOS_API_HOST and
   ARVADOS_API_TOKEN environment variables must be set.
 
diff --git a/lib/costanalyzer/costanalyzer.go b/lib/costanalyzer/costanalyzer.go
index df8fd49605..402e0ec81a 100644
--- a/lib/costanalyzer/costanalyzer.go
+++ b/lib/costanalyzer/costanalyzer.go
@@ -57,7 +57,7 @@ func parseFlags(prog string, args []string, loader *config.Loader, logger *logru
 	flags.Usage = func() {
 		fmt.Fprintf(flags.Output(), `
 Usage:
-  %s [options ...]  ...
+  %s [options ...] uuid [uuid ...]
 
 	This program analyzes the cost of Arvados container requests. For each uuid
 	supplied, it creates a CSV report that lists all the containers used to
@@ -92,6 +92,13 @@ Usage:
 	a column that indicates the preemptible state of the instance that ran the
 	container.
 
+	- This program does not take into account overhead costs like the time spent
+	starting and stopping compute nodes that run containers, the cost of the
+	permanent cloud nodes that provide the Arvados services, the cost of data
+	stored in Arvados, etc.
+
+	- When provided with a project uuid, subprojects will not be considered.
+
 	In order to get the data for the uuids supplied, the ARVADOS_API_HOST and
 	ARVADOS_API_TOKEN environment variables must be set.