<commit_before>////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License
////

qdstat(8)
=========
:doctype: manpage

NAME
----
qdstat - show status and statistics for a running 'qdrouterd'

SYNOPSIS
--------
*qdstat* ['OPTIONS']

DESCRIPTION
-----------
An AMQP monitoring tool that shows status information about networks of Dispatch routers. It can display connections, network nodes and links, and router stats such as memory use.

OPTIONS
-------

include::{generated_man}/qdstat_help.adoc[]

OUTPUT COLUMNS
--------------

qdstat -c
~~~~~~~~~
id::
The connection's unique identifier.
<commit_msg>Add qdstat -g section to qdstat man page. This closes #617.<commit_after>////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License
////

qdstat(8)
=========
:doctype: manpage

NAME
----
qdstat - show status and statistics for a running 'qdrouterd'

SYNOPSIS
--------
*qdstat* ['OPTIONS']

DESCRIPTION
-----------
An AMQP monitoring tool that shows status information about networks of Dispatch routers. It can display connections, network nodes and links, and router stats such as memory use.

OPTIONS
-------

include::{generated_man}/qdstat_help.adoc[]

OUTPUT COLUMNS
--------------

qdstat -g
~~~~~~~~~

Version::
The version of Dispatch Router.

Mode::
The router's operating mode:
- `standalone` - The router operates as a single, standalone network node.
- `interior` - The router operates in cooperation with other interior routers in an interconnected network.
- `edge` - The router operates at the edge of the router network. It maintains an uplink connection to an interior router.

Router Id::
The router's ID.

Uptime::
Time this router has been up. Displayed in the days:hours:minutes:seconds format.

// Area::

Link Routes::
The number of active and inactive link routes configured for this router.

Auto Links::
The number of incoming and outgoing auto links configured for this router.

Links::
The number of incoming and outgoing links attached to the router.

Nodes::
The number of peer routers connected to this router.

Addresses::
The number of addresses with links attached to this router.

Connections::
The number of connections to the router. This includes connections from and to any AMQP route container.

Presettled Count::
The number of presettled deliveries forwarded by this router.

Dropped Presettled Count::
The number of presettled deliveries that this router dropped due to congestion.

Accepted Count::
The number of deliveries forwarded by this router that were accepted.

Rejected Count::
The number of deliveries forwarded by this router that were rejected.

Released Count::
The number of deliveries forwarded by this router that were released.

Modified Count::
The number of deliveries forwarded by this router that were modified.

Deliveries Delayed > 1sec::
The number of deliveries forwarded by this router that were unsettled for more than one second.

Deliveries Delayed > 10sec::
The number of deliveries forwarded by this router that were unsettled for more than ten seconds.

Deliveries Stuck > 10sec::
The number of deliveries forwarded by this router that were stuck for more than ten seconds.

Deliveries to Fallback::
The number of deliveries that were forwarded to a fallback destination.

Links Blocked::
The number of links that are blocked. A blocked link is one in which the available credit has remained zero for more than 10 seconds.

Ingress Count::
The number of messages sent to this router.

Egress Count::
The number of messages sent from this router.

Transit Count::
The number of deliveries sent to another router in the network.

Deliveries from Route Container::
The number of deliveries this router has received from AMQP route containers.

Deliveries to Route Container::
The number of deliveries this router has sent to AMQP route containers.

qdstat -c
~~~~~~~~~
id::
The connection's unique identifier.

{'fraction_non_alphanumeric': 0.07264472190692395, 'fraction_numerical': 0.0037835792659856224, 'mean_word_length': 4.178256611165524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3705086', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1308, 'n_words': 743}