Monitoring the container

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History

h3. Delivered messages

!petals-local-transporter-delivered-messages.png|align=center!
The number of messages delivered by the local transporter can be graphed:
* by message exchange status, see [Creating a graph using a simple data|How to create a graph with Cacti#Creating a graph using a simple data]:
| Done | Number of delivered message with status 'Done' | COUNTER |
| Error | Number of delivered message with status 'Error' | COUNTER |
* by message exchange status and filtered for a dedicated endpoint, or a service, or an interface, see [Creating a graph using a data query|How to create a graph with Cacti#Creating a graph using a data query]:
The local transporter provides a metric about the delivered messages that it delivers. This metric can be used simply to get the delivered messages by message exchange status whatever the endpoint, the service and the interface:
!petals-local-transporter-delivered-messages.png|align=center!
Or, through a queried usage to get the delivered messages to a dedicated endpoint/service/interface, by message exchange status.
** the query to put in a file:
{code}
<interface>
<name>Get Delivered Messages by the Local transporter to an endpoint</name>
<script_path>/home/cdeneux/petals-cli-2.1.1-SNAPSHOT/bin/petals-cli.sh</script_path>
<arg_prepend>-h localhost -n 7700 -u petals -p petals -c -- monitoring -o local-transporter -f delivered-messages</arg_prepend>
<arg_index>-- --list-endpoints</arg_index>
<arg_query>-- --query-endpoints</arg_query>
<arg_get>-- --query-endpoints</arg_get>
<output_delimeter>!</output_delimeter>
<index_order>filterName</index_order>
<index_order_type>alphanumeric</index_order_type>
<!--index_title_format>|chosen_order_field|</index_title_format-->

<fields>
<filterName>
<name>Endpoint name</name>
<direction>input</direction>
<query_name>NAME</query_name>
</filterName>
<activeDeliveredMsgs>
<name>Active Message exchange delivered counter</name>
<direction>output</direction>
<query_name>ACTIVE</query_name>
</activeDeliveredMsgs>
<doneDeliveredMsgs>
<name>Done Message exchange delivered counter</name>
<direction>output</direction>
<query_name>DONE</query_name>
</doneDeliveredMsgs>
<errorDeliveredMsgs>
<name>Error Message exchange delivered counter</name>
<direction>output</direction>
<query_name>ERROR</query_name>
</errorDeliveredMsgs>
</fields>
</interface>
{code}
To filter by {{service}}, replace {{<arg_index>}}, {{<arg_query>}} and {{<arg_get>}} by:
{code}
<arg_index>-- --list-services</arg_index>
<arg_query>-- --query-services</arg_query>
<arg_get>-- --query-services</arg_get>
{code}
To filter by {{interface}}, replace {{<arg_index>}}, {{<arg_query>}} and {{<arg_get>}} by:
{code}
<arg_index>-- --list-interfaces</arg_index>
<arg_query>-- --query-interfaces</arg_query>
<arg_get>-- --query-interfaces</arg_get>
{code}