# Metrics

We log certain metrics like message latency and sending latency by default for all simulation jobs. Additionally, you can also see the system metrics like the number of MQTT connects, total bytes sent via MQTT and more by the `System-wide Metrics` toggle.

![](/files/DAcJogo6WrK7sqbhJUnL)

You can also log your own custom metrics inside any test using a simple command. You can find the details on the page linked below:

{% content-ref url="/pages/J2FVWPxhfR4cfCyTENev" %}
[Metrics Functions](/additional-helpers/iotify-helpers/metrics-functions.md)
{% endcontent-ref %}

Once these custom metrics have been logged, they will show up in the dropdown just like the other metrics.

You can also download these charts and export the data in multiple formats by clicking on the hamburger menu in the top right corner of the chart.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.iotify.io/concepts/metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
