Skip to content

Conversation

Pallavi-Janardhan
Copy link
Contributor

@Pallavi-Janardhan Pallavi-Janardhan commented Sep 30, 2025

Jira: [DOC-9905]

Added info about the new utility, cbqueryreportgen, to the CLI Reference doc.

Docs preview

Preview credentials

@simon-dew simon-dew changed the title Doc 12541 new query report generation tool DOC-12541 new query report generation tool Oct 3, 2025
@simon-dew simon-dew changed the base branch from release/8.0 to release/7.6 October 3, 2025 12:44
@simon-dew simon-dew force-pushed the DOC-12541_new_query_report_generation_tool branch from e2b7465 to 3d84a55 Compare October 3, 2025 12:45
@simon-dew simon-dew changed the base branch from release/7.6 to release/8.0 October 3, 2025 12:46
@simon-dew simon-dew changed the base branch from release/8.0 to release/7.6 October 3, 2025 12:47
@simon-dew
Copy link
Contributor

This PR targets release/8.0 but I think it must have been based on release/7.6 originally. I'll try to sort this out.

@simon-dew simon-dew force-pushed the DOC-12541_new_query_report_generation_tool branch from 3d84a55 to c0e0e5f Compare October 3, 2025 13:03
@simon-dew simon-dew changed the base branch from release/7.6 to release/8.0 October 3, 2025 13:03
@simon-dew
Copy link
Contributor

Okay I have recreated this PR to start from release/8.0, and cherry-picked the new changes on top. @Pallavi-Janardhan please do git pull origin DOC-12541_new_query_report_generation_tool before you do any further work on this branch locally.

Copy link
Contributor

@simon-dew simon-dew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Pallavi-Janardhan , as well as addressing the comments below, please can you add a link to the cbqueryreportgen.adoc file in the server navigation file /modules/ROOT/nav.adoc? Put the link in the Reference section, after cbq and before cbrecovery:

 ** xref:cli:cbq-tool.adoc[cbq]
 ** xref:cli:cbqueryreportgen.adoc[cbqueryreportgen]
 ** xref:cli:cbtools/cbrecovery.adoc[cbrecovery]

By default, the output of the command is a report in HTML format.
You can save the generated report to a file or print it to the standard output.

The `--cluster` flag specifies the hostname of the Couchbase cluster. Example: `cbqueryreportgen couchbase://localhost`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an Options heading. Also, mention that the first listed options are required.

Suggested change
The `--cluster` flag specifies the hostname of the Couchbase cluster. Example: `cbqueryreportgen couchbase://localhost`.
== Options
Required flags:
The `--cluster` flag specifies the hostname of the Couchbase cluster. Example: `cbqueryreportgen couchbase://localhost`.


The `--output` flag specifies the output file to write the report to. Example: `cbqueryreportgen --output report.html`.

optional Flags:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalization:

Suggested change
optional Flags:
Optional flags:


The `--version` flag prints to the console the version number of the Couchbase Server.

== See Also
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an example, as suggested in the ticket:

Suggested change
== See Also
== Example
This example creates a report showing all of the statistics for a single day.
The AWR repository is `travel-sample._default.awr`.
It is assumed that the user has already specified this as the AWR repository, and created an index on the document key in the configured AWR location.
====
[source,sh]
----
cbqueryreportgen -c couchbase://localhost \
-u Administrator -p password \
-k travel-sample._default.awr \
-o report.html \
-t1 '2025-09-24T00:00:00,2025-09-24T23:59:59'
----
====
The output of the command is a report in HTML format, saved to the file `report.html`.
== See Also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants