-
Notifications
You must be signed in to change notification settings - Fork 183
DOC-12541 new query report generation tool #3905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Pallavi-Janardhan
wants to merge
4
commits into
release/8.0
Choose a base branch
from
DOC-12541_new_query_report_generation_tool
base: release/8.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+78
−2
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b07178f
DOC-12541 Added a new file and modified the cli-intro file
Pallavi-Janardhan 4f13f6e
DOC-12541 Added a new file and modified the cli-intro file
Pallavi-Janardhan 86e58c0
DOC-12541 Added a new file and modified the cli-intro file
Pallavi-Janardhan c0e0e5f
DOC-12541 Added a new file and modified the cli-intro file
Pallavi-Janardhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,72 @@ | ||||||||||||||||||||||||||||||||||||||||||||
= cbqueryreportgen | ||||||||||||||||||||||||||||||||||||||||||||
:description: pass:q[The `cbqueryreportgen` tool returns the complete details of any Query service to generate reports.] | ||||||||||||||||||||||||||||||||||||||||||||
:page-status: Couchbase Server 8.0 | ||||||||||||||||||||||||||||||||||||||||||||
:page-component: Query | ||||||||||||||||||||||||||||||||||||||||||||
ifndef::doctype-manpage[:doctitle: cbqueryreportgen] | ||||||||||||||||||||||||||||||||||||||||||||
:page-component-version: 8.0 | ||||||||||||||||||||||||||||||||||||||||||||
:page-topic-type: reference | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
[abstract] | ||||||||||||||||||||||||||||||||||||||||||||
A query tool that returns the complete details of any Query Service to generate reports. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
== Syntax | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||||||||||||||||||
cbqueryreportgen [-<args> | ||||||||||||||||||||||||||||||||||||||||||||
[ -c, --cluster <cluster> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -u, --username <username> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -p, --password <password> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -k, --keyspace <keyspace> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -t1, --time-period <time-period> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -o, --output <output> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ --report-type <report-type> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ --output-file <output-file> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ --format <format> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -l, --limit <limit> ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -v, --verbose ] | ||||||||||||||||||||||||||||||||||||||||||||
[ -h, --help ] | ||||||||||||||||||||||||||||||||||||||||||||
] | ||||||||||||||||||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
== Description | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `cbqueryreportgen` command connects to a Couchbase cluster and generates performance reports based on the Query Service's AWR statistics. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The tool allows users to specify a time range for the report, the type of report, and the output format. | ||||||||||||||||||||||||||||||||||||||||||||
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`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--username` flag specifies the username of the Couchbase cluster. Example: `cbqueryreportgen --username Administrator`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--password` flag specifies the password of the Couchbase cluster. Example: `cbqueryreportgen --password password`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--keyspace` flag specifies the keyspace where the AWR stats are read from. Example: `cbqueryreportgen --keyspace travel-sample._default.awr`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--time-period` flag specifies the time period for the report. The required format is `start-time,end-time` in the format `YYYY-MM-DDTHH:MM:SS`. Example: `2025-10-01T00:00:00,2025-10-02T00:00:00`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--output` flag specifies the output file to write the report to. Example: `cbqueryreportgen --output report.html`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
optional Flags: | ||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Capitalization:
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--report-type` flag specifies the type of report to generate. Supported values are 'AWR' and 'ADHOC'. Default is 'AWR'(Automatic Workload Repository). | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--output-file` flag specifies the file path where the report will be saved. If not provided, the report will be printed to stdout. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--format` flag specifies the format of the report. `HTML` is the default format. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `-l, --limit` flag specifies the maximum number of results to include for every query. The default is `1000`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `-v, --verbose` flag enables verbose logging for debugging purposes. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `-h, --help` flag prints the help information. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
For more information about how the specific command works, run `cbqueryreportgen --help`. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
The `--version` flag prints to the console the version number of the Couchbase Server. | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
== See Also | ||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add an example, as suggested in the ticket:
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
For detailed information, see xref:n1ql:n1ql-manage/query-awr.adoc[Automatic Workload Repository]. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.