# MS-exchange: MAPI connection metrics

**URL:** <https://community.dynatrace.com/t/ms-exchange-mapi-connection-metrics/42998>\
**Category:** Extensions\
**Tags:** dynatrace-managed, extensions\
**Created:** [December 4, 2023, 7:08am UTC](https://community.dynatrace.com/t/ms-exchange-mapi-connection-metrics/42998 "2023-12-04T07:08:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NizarElmaharic](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@NizarElmaharic](https://community.dynatrace.com/u/NizarElmaharic)\
**Post date:** [December 4, 2023, 7:08am UTC](https://community.dynatrace.com/t/ms-exchange-mapi-connection-metrics/42998/1 "2023-12-04T07:08:11Z")

</div>

Hi guys

We implement the MS-exchange extension and showed it to the Exchange guys and they asked if there is a metric of MAPI connections that they see within the Grafana dashborad.

We did not found this metric

Is it missing? can we add this information somehow ?

Thanks in advance

Nizar

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [December 4, 2023, 10:44am UTC](https://community.dynatrace.com/t/ms-exchange-mapi-connection-metrics/42998/2 "2023-12-04T10:44:48Z")

</div>

The metrics it collects can be found here:&nbsp;[https://www.dynatrace.com/hub/detail/microsoft-exchange-server-1/](https://www.dynatrace.com/hub/detail/microsoft-exchange-server-1/)

As this metric is not part of it, please create a product idea on the community forum for it. If you can add the WMI query required to get the data that would be great!

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [December 4, 2023, 1:56pm UTC](https://community.dynatrace.com/t/ms-exchange-mapi-connection-metrics/42998/3 "2023-12-04T13:56:05Z")

</div>

Hi,

You have these metrics available, which are described in this link (like [@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;wrote):

> **[Microsoft Exchange Server monitoring & observability | Dynatrace Hub](https://www.dynatrace.com/hub/detail/microsoft-exchange-server-1/)**
>
> Monitor your Microsoft Exchange mail server and calendaring server. Start your free trial today!

If you don’t have any then you can try to send it to Dynatrace from MS Exchange using the [Metric Ingest API.](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwicw5fO9_WCAxW8_rsIHaaTAjMQFnoECBMQAQ&url=https%3A%2F%2Fdocs.dynatrace.com%2Fdocs%2Fdynatrace-api%2Fenvironment-api%2Fmetric-v2%2Fpost-ingest-metrics&usg=AOvVaw1apGh0eIrWNaLZEJQTfZBn&opi=89978449)

Radek

---

<div class="post-metadata">

**Author:** ![NizarElmaharic](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@NizarElmaharic](https://community.dynatrace.com/u/NizarElmaharic)\
**Post date:** [December 5, 2023, 7:34am UTC](https://community.dynatrace.com/t/ms-exchange-mapi-connection-metrics/42998/4 "2023-12-05T07:34:56Z")

</div>

Select last(“Active\_user\_Count”)FROM “win\_Mapi\_Conn” WHERE (“host”=\*\*\*\*) AND $timeFilter GROUP BY time ($\_\_\_ interval) fill (none) that’s the metric in grafana we see

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [December 18, 2023, 5:29pm UTC](https://community.dynatrace.com/t/ms-exchange-mapi-connection-metrics/42998/5 "2023-12-18T17:29:41Z")

</div>

Hi guys,

We finally collect the ActiveUserCount metric with WMI extension as&nbsp;[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;suggested

In order to collect this metric we used the follows query:

```javascript
Select ActiveUserCount from Win32_PerfRawData_MSExchangeMapiHttpEmsmdb_MSExchangeMapiHttpEmsmdb

```

Hope this will help also others

Yos
