Reference values test
Each line below states what it must render, and what the build log must say
for it. The rpk values come from this component’s rpk-v26.2.2.json fixture
(trimmed real data from the docs repo’s rpk snapshot). The Connect values come
from connect-4.114.0.json in the connect component, which the showcase
build supplies from preview/connect-data-lender, with a few stand-in
component and Bloblang pages for the links to land on.
rpk flags
-
Must read -1: -1
-
Must read -p: -p
-
Must read 30000: 30000
-
Must read 24h, with
data-source="help"in the HTML because the flag comes from theaiplugin’s--help: 24h -
Must read stringArray, a global flag with no command: stringArray
-
Must read no, and false: no, and false
-
Must read -1, the
rpk cluster partitions move-cancelvalue reached through its alias: -1 -
Must read 1m0s in inline code, as Go prints the duration:
1m0s -
Must read -1 again, in the first form of the macro, which is still accepted: -1
rpk command fields and help text
-
Must read
rpk topic create [TOPICS...] [flags]: rpk topic create [TOPICS...] [flags] -
Must read "status, metadata", the aliases of
rpk cluster info: status, metadata -
Must read yes, because
--partitionsis not required: yes -
Must read the flag’s help text, with
-1anddefault_topic_partitionsas inline code: Number of partitions for the topic. The default of-1uses the cluster’sdefault_topic_partitionsproperty. More partitions enable higher parallelism but increase resource usage. -
Must show
<unknown description>and log needs-block, namingrpkval::[rpk topic create,description]: <unknown description> -
Must show
<unknown deprecated>and log dropped-field: <unknown deprecated>
The block form below must render the two paragraphs of the rpk topic create
description, with its backticks as inline code:
Create one or more Kafka topics with configurable partitions, replication factor, and topic-level settings.
All topics created with one invocation have the same number of partitions, replication factor, and key/value configs. For example, rpk topic create -c cleanup.policy=compact -r 3 -p 20 foo bar creates two topics, foo and bar, each with 20 partitions, 3 replicas, and the cleanup.policy=compact config option set.
The block form below must render the rpk cloud mcp stdio description with
its xref to rpk cloud mcp install as a link to the macro-fixtures-cloud
stand-in page, the only page for that command in this build, as
rpk cloud mcp install links it. The description names
reference:rpk/… in the component its data came from, and this component
has no rpk reference pages, so the macro rewrites the link for this page:
Communicate with the local MCP server for Redpanda Cloud using the stdio protocol.
This command provides a direct stdio interface for communicating with the local MCP server for Redpanda Cloud. The local MCP server runs on your machine and provides tools for managing your Redpanda Cloud account and clusters. It’s typically used as the transport mechanism when your MCP client is configured to use rpk as the stdio server process.
Most users should use rpk cloud mcp install instead, which automatically configures your MCP client.
The block form below must render the rpk cluster quotas import description
with the import schema as a listing block:
Use this command to import client quotas in the format produced by rpk cluster quotas describe --format json/yaml.
The schema of the import string matches the schema from rpk cluster quotas describe --format help:
{
quotas: []{
entity: []{
name: string
type: string
}
values: []{
key: string
values: string
}
}
}
Use the --no-confirm flag if you wish to avoid the confirmation prompt.
The block form below must render the rpk ai trigger description with
agents/{agent}/triggers/{trigger} as inline code, braces included:
Manage the triggers on an agent: the configured ways an agent is invoked from the outside (Microsoft Teams, or a cron schedule).
A trigger belongs to exactly one agent, and its resource name carries that
parent: agents/{agent}/triggers/{trigger}. So create and list take the
parent agent, while get, update, delete and runs take the full
two-segment name they print.
The trigger id is server-assigned unless you pass --id. The kind (--teams-* or --cron-*) is fixed at creation; to change it, delete and recreate.
adp-api is a registry: it stores the trigger config but never validates the credentials or resolves the secret refs. A trigger that is accepted here can still be reported unhealthy by the component that operates it.
The block form below must render each example of rpk security acl list as a
paragraph followed by a literal block:
List all ACLs:
rpk security acl list
List all Schema Registry ACLs:
rpk security acl list --subsystem registry
List all ACLs for topic "foo":
rpk security acl list --topic foo
List all ACLs for user "bar" on topic "foo":
rpk security acl list --allow-principal bar --topic foo
List all ACLs for role "admin" on schema registry subject "foo-value":
rpk security acl list --allow-role admin --registry-subject foo-value
Docs URLs in rpk descriptions
rpk’s help links some pages with docs.redpanda.com URLs. The descriptions
below are that help, as the fixture carries it. The macro maps each URL to a
page as the url-to-xref extension does, then links it as it links any other
target in a description.
Start the cluster restoration process. This command starts the process of restoring data from a failed cluster with Tiered Storage enabled, including its metadata, onto a new cluster. If the wait flag (--wait/-w) is set, the command will poll the status of the recovery process until it’s finished.
Use --cluster-uuid-override if you want to specify an explicit cluster UUID to restore from. For more information, visit Whole Cluster Restore.
-
You should see "Whole Cluster Restore" in the last sentence as a link to the
streamingstand-in page, not a URL. -
You should see the sentence period after that link, outside it.
Execute any number of Redpanda Connect unit test definitions. If one or more tests fail the process will report the errors and exit with a status code 1.
redpanda-connect test ./path/to/configs/... redpanda-connect test ./foo_configs/*.yaml ./bar_configs/*.yaml redpanda-connect test ./foo.yaml
For more information check out the docs at: Unit Testing
-
You should see "Unit Testing" on the last line as a link to the
connectstand-in page, not the/redpanda-connect/URL.
Display statistics about current kafka connections.
This command displays a table of active and recently closed connections within the cluster.
Use filtering and sorting to identify the connections of the client applications that you are interested in. See --help for the list of filtering arguments and sorting arguments.
In addition to the filtering shorthand cli arguments (e.g.; --client-id, --state), you can also use the --filter-raw and --order-by arguments that take string expressions. To understand the syntax of these arguments, refer to the admin API docs of the filter and order-by fields of the ListKafkaConnections endpoint: https://docs.redpanda.com/api/doc/admin/version/11f41833-5783-4f1a-ad64-5957267abd52/operation/operation-redpanda-core-admin-v2-clusterservice-listkafkaconnections
By default only a subset of the per-connection data is printed. To see all of the available data, use --format=json.
-
You should see the Admin API URL unchanged, as a plain URL link, and no warning for it in the log.
rpk placeholders
-
Must show
<unknown default>and log description-default (the description states the default the flag itself does not hold): <unknown default> -
Must show a placeholder and log unknown-flag: <unknown default>
-
Must show a placeholder and log deprecated-command, with the replacement: <unknown default>
-
Must show a placeholder and log unknown-flag naming
rpk registry, where the flag is defined: <unknown default> -
Must show a placeholder and log unknown-flag, because the brackets name no flag: <unknown default>
Connect fields
-
Must read redpanda-connect: redpanda-connect
-
Must read 1024 in code:
1024 -
Must list merge-on-read, copy-on-write, each in code:
merge-on-read,copy-on-write -
Must read -1: -1
-
Must read yes, and log deprecated-field: yes
-
Must read array<string>: array<string>
Connect bracket form, component fields and text
-
Must read redpanda-connect, as the first form above does: redpanda-connect
-
Must read -1: -1
-
Must list merge-on-read, copy-on-write, each in code, through the
optionsalias ofvalues:merge-on-read,copy-on-write -
Must read deprecated: deprecated
-
Must read yes: yes
-
Must read the one-paragraph summary of the
consumer_groupfield: An optional consumer group to consume as. Partitions and offsets are managed automatically across the group. -
Must read the
generatesummary. ItsBloblanglink is rewritten toconnect:guides:bloblang/about.adoc, because this page is in another component, and this build’s stand-in Connect pages do not include that one, so it must render as text and log that the build has no page for it: Generates messages at a given interval using a <a href="/connect/guides/bloblang/about/">Bloblang</a> mapping executed without a context. This allows you to generate messages for testing your pipeline configs. -
Must show
<unknown description>and log needs-block: <unknown description>
The block form below must render the consumer_group description: a
paragraph, a two-item list and a paragraph.
An optional consumer group. When you specify this value:
-
The partitions of any topics specified in the
topicsfield are automatically distributed across consumers that share the consumer group. -
Partition offsets are automatically committed and resumed under this name.
Consumer groups are not supported when you specify explicit partitions to consume from in the topics field.
The block form below must render the unchanged_toast_value description.
Its signal_table_name reference is an anchor on the postgres_cdc page,
not on this page, so it is rewritten to that page in the connect
component; with no stand-in postgres_cdc page in this build, it must render
as text and log why:
Specify the value to emit when unchanged TOAST values appear in the message stream. Unchanged values occur for data updates and deletes when REPLICA IDENTITY is not set to FULL.
Prefer a distinctive sentinel over the null default. A null can’t be told apart from a column that is genuinely null, so a consumer can’t skip the field instead of overwriting a good value with it. This matters most alongside incremental_snapshot, where a backfilled row can be the only delivery that carries a large column’s real value. See signal_table_name.
Property text values
-
Must read "Default log segment size in bytes for topics that do not set
segment.bytes.", withsegment.bytesin code: Default log segment size in bytes for topics that do not setsegment.bytes. -
Must read
2147483648in code, the example:2147483648 -
Must read yes: yes
Connect placeholders
-
Must show a placeholder and log complex-default: <unknown default>
-
Must show a placeholder and log unknown-field, suggesting client_id: <unknown default>
-
Must show a placeholder and log unknown-type: <unknown default>
rpk command links
rpkcmd: checks the command against the same rpk data and links the page in
the build: this component has no rpk pages, so it links the stand-in pages
of streaming-ga-lender, then any other component that has the page.
-
Must render
rpk topic createas code, linked to thestreamingpage:rpk topic create -
Must render
rpk topic create --partitionsas code, linked to the same page, because the generated pages have no flag anchors:rpk topic create --partitions -
Must render
rpk cluster statusas code, linked to therpk cluster infopage through the alias:rpk cluster status -
Must link the top-level
rpk versionpage:rpk version -
Must link the
macro-fixtures-cloudpage, the only component that has one:rpk cloud login -
Must link the words "create a topic": create a topic
rpk command placeholders
Each must render as plain code with no link, and log why.
-
unknown-command, suggesting nothing close:
rpk topic make -
unknown-flag, suggesting
--partitions:rpk topic create --partition -
deprecated-command, with the replacement:
rpk redpanda admin brokers -
no-page, because no component in this build has a page for it:
rpk debug bundle
Connect component links
connect: checks the component and field against the same Connect data and
links the page in the build: this component has no Connect pages, so it links
the stand-in pages of connect-data-lender.
-
Must render "`kafka_franz` input", the name in code, linked to the
kafka_franzpage:kafka_franzinput -
Must render
consumer_groupin code, linked to#consumer_groupon the same page:consumer_group -
Must render
sasl.mechanismin code, linked to#sasl-mechanism:sasl.mechanism -
Must link the words "the generator": the generator
-
Must render "`redpanda` input" as plain code with no link, and log that no component in this build has its page:
redpandainput -
Must render plain code and log unknown-component, suggesting kafka_franz:
kafka_fransinput
Bloblang links and values
-
Must render
now()in code, linked to#nowon the functions page:now() -
Must render
.uppercase()in code, linked to#uppercaseon the methods page:.uppercase() -
Must link
#contains, the copy under Object & Array Manipulation, which is first on the page:.contains() -
Must link
#contains-2, the String Manipulation copy:.contains() -
Must render
counter(min)in code, linked to#counter:counter(min) -
Must render plain code and log hidden, because the reference does not document it:
var() -
Must read 1: 1
-
Must read string: string
-
Must read experimental: experimental
-
Must read "Checks whether a string contains a substring and returns a boolean result.": Checks whether a string contains a substring and returns a boolean result.
-
Must show
<unknown default>and log imprecise, because the data’s maximum lost precision in a float round-trip: <unknown default> -
Must show
<unknown default>and log complex-default, because the data’s seed is a Go struct: <unknown default>
The block form below must render the counter() examples, each summary
followed by a Bloblang listing, as the Bloblang reference prints them.
Generate sequential IDs for each message:
root.id = counter()
# In: {}
# Out: {"id":1}
# In: {}
# Out: {"id":2}
Use a custom range for the counter:
root.batch_num = counter(min: 100, max: 200)
# In: {}
# Out: {"batch_num":100}
# In: {}
# Out: {"batch_num":101}
Increment a counter multiple times within a single mapping using a named map:
map increment {
root = counter()
}
root.first_id = null.apply("increment")
root.second_id = null.apply("increment")
# In: {}
# Out: {"first_id":1,"second_id":2}
# In: {}
# Out: {"first_id":3,"second_id":4}
Conditionally reset a counter based on input data:
root.streak = counter(set: if this.status != "success" { 0 })
# In: {"status":"success"}
# Out: {"streak":1}
# In: {"status":"success"}
# Out: {"streak":2}
# In: {"status":"failure"}
# Out: {"streak":0}
# In: {"status":"success"}
# Out: {"streak":1}
Peek at the current counter value without incrementing by using null in the set parameter:
root.count = counter(set: if this.peek { null })
# In: {"peek":false}
# Out: {"count":1}
# In: {"peek":false}
# Out: {"count":2}
# In: {"peek":true}
# Out: {"count":2}
# In: {"peek":false}
# Out: {"count":3}
Aliases and deprecated names
The macros render what you wrote and never fail the build on an alias or a
deprecated name, but the log names what to write instead. check-reference-values
reports the same calls, and --write rewrites the ones it can.
-
-
You should see
rpk cluster statusas code, linked to therpk cluster infopage, and a warning that it is an alias ofrpk cluster info, namingrpkcmd:[rpk cluster info].
-
-
The value is text.
-
You should see
text, read fromrpk cluster info, and a warning thatrpk cluster metadatais an alias, namingrpkval:[rpk cluster info --format].
-
-
rpk redpanda admin-
You should see
rpk redpanda adminas plain code with no link, and a warning that it is deprecated, namingrpkcmd:[rpk cluster].
-
-
-
You should see
kafka_franzas code and the word "input", linked to thekafka_franzstand-in page, and a warning that it is deprecated, namingconnect:[inputs/redpanda].
-
-
-
You should see
regexp_topicslinked to thekafka_franzpage with no anchor, and a warning that the field is deprecated and the data names no single replacement.
-
-
-
You should see
meta()linked to#metaon the functions page, and a warning that it is deprecated with no replacement in the data.
-
Metric names and values
metric: and metricval: read this component’s redpanda-metrics-v26.2.7.json
fixture: a few real entries from a v26.2.7 dataset, with the fields the
overrides file will supply added by hand to some of them, and two made-up
entries (redpanda_example_deprecated_total, and
redpanda_example_removed_total in the removed map).
-
redpanda_cluster_brokers-
You should see
redpanda_cluster_brokersas code with no link.
-
-
-
You should see the same name linked to
#redpanda_cluster_brokerson the stand-in metrics page.
-
-
redpanda_kafka_request_latency_seconds_bucket-
You should see the series name as written, linked to
#redpanda_kafka_request_latency_seconds, the family’s entry.
-
-
redpanda_kafka_consumer_group_lag_sum-
You should see the name linked to its own entry: it is a gauge whose name ends in
_sum, not a histogram series.
-
-
-
You should see "broker count" in code, linked to the same entry.
-
-
Must read histogram: histogram
-
Must read seconds: seconds
-
Must read
redpanda_request:redpanda_request -
Must read
consume,produce:consume,produce -
Must read
/public_metrics:/public_metrics -
Must read public: public
-
Must read Self-Managed, Dedicated, BYOC: Self-Managed, Dedicated, BYOC
The block form below must render two paragraphs:
Watch the 99th percentile.
A rising value means clients wait longer for produce and fetch requests.
Metric placeholders
-
redpanda_cluster_broker-
You should see plain code, and an
unknown-metricwarning that suggestsredpanda_cluster_brokers.
-
-
redpanda_example_removed_total-
You should see plain code, and a warning that it was removed in v26.2.
-
-
redpanda_example_deprecated_total-
You should see the name linked, and a warning that it is deprecated.
-
-
redpanda_example_deprecated_total-
You should see the name as code, and no warning.
-
-
redpanda_kafka_request_bytes_total-
You should see the name as code with no link, and a warning that no reference page has a heading for it.
-
-
Must read "<unknown category>", because the generator writes no category: <unknown category>
-
Must read "<unknown values>", because values seen in a scrape are not a complete list: <unknown values>
-
Must read "<unknown colour>", with a warning that lists the fields: <unknown colour>