Skip to content

Commit 54fd4d1

Browse files
authored
update docs to show origin on usage metrics (#11447)
1 parent 605d546 commit 54fd4d1

File tree

1 file changed

+14
-2
lines changed
  • enterprise/server/backends/prom

1 file changed

+14
-2
lines changed

enterprise/server/backends/prom/prom.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,13 @@ sum by (cache_type) (increase(exported_buildbuddy_remote_cache_num_hits[1w]))`,
9191
Type: dto.MetricType_COUNTER.Enum(),
9292
},
9393
Examples: `# Number of bytes downloaded as measured over the last week
94-
sum(increase(exported_buildbuddy_remote_cache_download_size_bytes[1w]))`,
94+
sum(increase(exported_buildbuddy_remote_cache_download_size_bytes[1w]))
95+
96+
# Bytes downloaded internal to BuildBuddy between services
97+
sum(increase(exported_buildbuddy_remote_cache_download_size_bytes{origin="internal"}[1w]))
98+
99+
# Bytes downloaded directly by your builds
100+
sum(increase(exported_buildbuddy_remote_cache_download_size_bytes{origin="external"}[1w]))`,
95101
},
96102
{
97103
sourceMetricName: "buildbuddy_remote_cache_upload_size_bytes_exported",
@@ -102,7 +108,13 @@ sum(increase(exported_buildbuddy_remote_cache_download_size_bytes[1w]))`,
102108
Type: dto.MetricType_COUNTER.Enum(),
103109
},
104110
Examples: `# Number of bytes uploaded as measured over the last week
105-
sum(increase(exported_buildbuddy_remote_cache_upload_size_bytes[1w]))`,
111+
sum(increase(exported_buildbuddy_remote_cache_upload_size_bytes[1w]))
112+
113+
# Bytes uploaded internal to BuildBuddy between services
114+
sum(increase(exported_buildbuddy_remote_cache_upload_size_bytes{origin="internal"}[1w]))
115+
116+
# Bytes uploaded directly by your builds
117+
sum(increase(exported_buildbuddy_remote_cache_upload_size_bytes{origin="external"}[1w]))`,
106118
},
107119
{
108120
sourceMetricName: "buildbuddy_remote_execution_duration_usec_exported",

0 commit comments

Comments
 (0)