cluster/partition: Reword description for kafka_request_bytes_total.#25499
Conversation
CI test resultstest results on build#63524
test results on build#63591
|
src/v/cluster/partition_probe.cc
Outdated
| sm::description( | ||
| "Total bytes read from or written to partitions for a topic " | ||
| "(fetched bytes may not all be returned to the client)."), |
There was a problem hiding this comment.
nit (ignore unless you end up changing the wording based on docs feedback): you could extract the ss::description to a variable to show that they are shared+identical.
| @@ -309,7 +309,9 @@ void replicated_partition_probe::setup_public_metrics(const model::ntp& ntp) { | |||
| sm::make_total_bytes( | |||
| "request_bytes_total", | |||
There was a problem hiding this comment.
This metric probably has the wrong name, the equivalent internal metric is cluster_partition_request_bytes_total.
I'm not following this part of the commit message. The change of reusing the description makes sense, but I am not following why the metric would have the wrong name. It seems reasonable to me, since it is the procuce+fetch total (with a label to allow splitting out either of them). Am I missing something here?
There was a problem hiding this comment.
This metric probably has the wrong name, the equivalent internal metric is cluster_partition_request_bytes_total.
I'm not following this part of the commit message. The change of reusing the description makes sense, but I am not following why the metric would have the wrong name. It seems reasonable to me, since it is the procuce+fetch total (with a label to allow splitting out either of them). Am I missing something here?
It's bytes written to and read from the partition, not necessarily what's returned to the user. It's confusing because it has kafka prefix, but actually measures disk activity. Kafka traffic is measured with redpanda_rpc_sent_bytes{redpanda_server="kafka"} and redpanda_rpc_received_bytes{redpanda_server="kafka"}
There was a problem hiding this comment.
Maybe a slight rewording of the first sentence? Also maybe it would be clearer to lose the brackets and add another sentence?
Total number of bytes read from or written to the partitions of a topic. The total may include fetched bytes that are not returned to the client.
asimms41
left a comment
There was a problem hiding this comment.
Just a couple of suggestions.
This metric probably has the wrong name, the equivalent internal metric is cluster_partition_request_bytes_total, the metric is measuring disk activity, not kafka network traffic. Reword the description to make it clearer. The description is the same for both produce and consume because only the first one is returned on the prometheus endpoint. Signed-off-by: Ben Pope <ben@redpanda.com>
ce05fb4 to
97ecb4b
Compare
Retry command for Build#63591please wait until all jobs are finished before running the slash command |
|
/backport v25.1.x |
|
/backport v24.3.x |
|
/backport v24.2.x |
|
/backport v24.1.x |
This metric probably has the wrong name, the equivalent internal metric is
cluster_partition_request_bytes_total, but it's been around a long time now.Reword the description to make it clearer.
The description is the same for both
produceandconsumebecause only the first one is returned on the Prometheus endpoint.Backports Required
Release Notes