How would you name a metric that measures gRPC response size?
A.
grpc_response_size_bytes
B.
grpc_response_size
C.
grpc_response_size_total
D.
grpc_response_size_sum
The Answer Is:
A
This question includes an explanation.
Explanation:
Following Prometheus’smetric naming conventions, every metric should indicate:
Whatit measures (the quantity or event).
The unitof measurement inbase SI unitsas a suffix.
Since the metric measuresresponse size, the base unit isbytes. Therefore, the correct and compliant metric name is:
grpc_response_size_bytes
This clearly communicates that it measures gRPC response payload sizes expressed in bytes.
The _bytes suffix is the Prometheus-recommended unit indicator for data sizes. The other options violate naming rules:
_total is reserved for counters.
_sum is used internally by histograms or summaries.
Omitting the unit (grpc_response_size) is discouraged, as it reduces clarity.
[References:Extracted and verified from Prometheus documentation –Metric Naming Conventions,Instrumentation Best Practices, andStandard Units for Size and Time Measurements., , ]
PCA PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 75% Discount on All Products,
Use Coupon: "ac75sure"