# SLO - "best of" two entities

**URL:** <https://community.dynatrace.com/t/slo-best-of-two-entities/37921>\
**Category:** Automations\
**Tags:** dynatrace-managed, slo, network-monitoring\
**Created:** [January 9, 2023, 8:27am UTC](https://community.dynatrace.com/t/slo-best-of-two-entities/37921 "2023-01-09T08:27:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilander](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@Nilander](https://community.dynatrace.com/u/Nilander)\
**Post date:** [January 9, 2023, 8:27am UTC](https://community.dynatrace.com/t/slo-best-of-two-entities/37921/1 "2023-01-09T08:27:10Z")

</div>

Hi,

Anyone have a great way to calculate an SLO for two or more entities reporting successrate metric in percentage? In this case it’s redundant VPN’s so as long as one VPN have 100% successrate then the SLO should be 100%.

Imaginary metric:  
vpn.successrate.percentage:splitBy(“vpn”):filter(“customer1”):bestof

//Henrik

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 9, 2023, 9:50am UTC](https://community.dynatrace.com/t/slo-best-of-two-entities/37921/2 "2023-01-09T09:50:44Z")

</div>

What about just not splitting it? So using :splitBy() in your case.

---

<div class="post-metadata">

**Author:** ![Nilander](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@Nilander](https://community.dynatrace.com/u/Nilander)\
**Post date:** [January 9, 2023, 10:07am UTC](https://community.dynatrace.com/t/slo-best-of-two-entities/37921/3 "2023-01-09T10:07:21Z")

</div>

Thanks for your reply, that would give me a combined percentage right? 200% maximum in the case where it is two VPN’s. So even if I divide the percentage with the number of VPN’s the result would be less than 100% if one was below 100% even if the other was 100%.

Maybe I’m not making sense. 🙂  
Let me try to explain further.  
I want an SLO that starts burning if all both successrates are below 100%. It’s redundant VPN’s so both VPN’s need to be down to burn the SLO, as long as one VPN is 100% the SLO metric should be 100%.  
The red circles should not burn the SLO (as one tunnel is 100%) while the blue one should as the successrate on both tunnels are below 100%.

 ![Nilander_0-1673258642329.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/a/9a60d5e2d199b9bd63af8cf6f558e002cbf318ad.png)

//Henrik

---

<div class="post-metadata">

**Author:** ![Nilander](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@Nilander](https://community.dynatrace.com/u/Nilander)\
**Post date:** [January 9, 2023, 11:27am UTC](https://community.dynatrace.com/t/slo-best-of-two-entities/37921/4 "2023-01-09T11:27:31Z")

</div>

After thinking some more about your answer. If I had max it should be correct I think. 🙂  
:splitBy():max
