diff options
author | Richard Gaywood <richardgaywood@google.com> | 2020-06-23 17:12:49 +0100 |
---|---|---|
committer | Richard Gaywood <richardgaywood@google.com> | 2020-06-24 19:50:14 +0100 |
commit | 78c3f99268311b248bb30feeb344a4f5d2a7a607 (patch) | |
tree | 96b11a2bb4e59108821cdcbf3f2e81999ec7e568 /cmds | |
parent | b204ade30c290f74c9132e8344da5f7b6aad61cb (diff) |
Add shard ID to statsd atom for procstats collection
Without this, RANDOM_ONE_SAMPLE would result in statsd dropping all bar the
first shard. Adding the shard id as a dimension field preserves all the
data.
Bug: 158294266
Test: manual build & test
Change-Id: I94ffb610ef3651f460600e3df6b32c87fc430594
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/statsd/src/atoms.proto | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index a5f0ac97cebc..ca03343ddb80 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -6131,6 +6131,10 @@ message ProcessStatsAvailablePagesProto { */ message ProcStats { optional ProcessStatsSectionProto proc_stats_section = 1; + // Data pulled from device into this is sometimes sharded across multiple atoms to work around + // a size limit. When this happens, this shard ID will contain an increasing 1-indexed integer + // with the number of this shard. + optional int32 shard_id = 2; } /** |