• Bli partner
  • Pålogging
  • Norge
    • Global
    • Belgique - Français
    • België - Nederlands
    • Danmark
    • Deutschland
    • España
    • France
    • Italia
    • Nederland
    • Österreich
    • Polska
    • Schweiz
    • Sverige
    • United Kingdom
  • Global Global Global en
  • Belgique - Français Belgique - Français Belgique - Français fr-be
  • België - Nederlands België - Nederlands België - Nederlands be
  • Danmark Danmark Danmark da
  • Deutschland Deutschland Deutschland de
  • España España España es
  • France France France fr
  • Italia Italia Italia it
  • Nederland Nederland Nederland nl
  • Norge Norge Norge no
  • Österreich Österreich Österreich at
  • Polska Polska Polska pl
  • Schweiz Schweiz Schweiz ch
  • Sverige Sverige Sverige sv
  • United Kingdom United Kingdom United Kingdom en-uk
QBS group
Menu
  • Informasjonssenter
    • Blogg
    • Arrangementskalender 2021
    • Arrangementer
    • Nyheter
    • Referanser
    • Treninger
    • Close
  • Løsninger
  • Tjenester
    • Ready to Go for Dynamics 365 Business Central
    • Ready to Start Dynamics 365 Customer Engagement
    • Take the Lead
    • Oppgraderingstjenester
    • QBS Academy
    • QBS Azure Services
    • Close
  • Program
    • Bli partner
    • Indirect CSP
    • ISV Program
    • Våre partnere
    • Close
  • Om oss
  • Kontakt
Bloggen er skrevet av:

Marije Brummel

Tid for å lese:10 Minutes
Del dette:
  • Del med Facebook
  • Del med Twitter
  • Share on Google+
  • Del med Linkedin
  • Del med epost
21 mai 2021

HELP! My Application Insights EXPLODES!

Du er her: Hjem » HELP! My Application Insights EXPLODES!

Business Central

Dynamics 365

Tech

At QBS Group we are promoting the use of Application Insights. We do that not because we are nerds and love new technology, but also because of simple home economics.

Before the introduction of Application Insights last year, we would often see long-running support tickets between our partners and Microsoft to troubleshoot problems with Business Central. Application Insights changed that almost overnight by giving partners and even customers the option to see where problems are caused.

Although we did not do any exact math, we feel it is safe to say partners can save hundreds, if not thousands of euro’s by using Application Insights.

What exactly does it cost and how do I monitor it?

But what does Application Insights cost per tenant or per ISV Solution in AppSource and do the economics still apply?

Running an Application Insights resource in Azure is not free of charge. The first 5GB per month is paid for by Microsoft with a retention period of 90 days. This sounds like it should suffice and in most cases it does. However, some of our partners reported to us that they had examples where they had much more data than that which resulted in a cost of tens, even hundreds of euros per month to host Application Insights.

Together with Microsoft, we investigated the issues, and we feel we should share these experiences with you.

Executive summary

As an executive summary, the conclusion is that having an Application Insights instance that starts charging you for a Business Central tenants telemetry is a warning of problems as such. An average tenant should not produce enough telemetry to cause the invoicing process in Azure to start.

So, what can trigger Application Insights to explode, what can you do about it and lastly, how can you avoid having to pay hundreds of euros for an overflow of telemetry cause by, for example, an App from AppSource with programming errors.

We investigated a few instances that we have access to which were large. A few tenant instances, an AppSource ISV instance and an Embed App instance.

How to analyze the cost

To analyze which events cause the problem we used this KQL query that Microsoft provided and that they shared on GitHub now too.

traces

| where timestamp > ago(30d)

| project eventId = tostring( customDimensions.eventId )

| summarize count() by eventId

HELP! My Application Insights EXPLODES!

For now, we will ignore AL000EAV because Microsoft confirmed it as a bug. I will get back to that at the end of the blog.

We need to focus on the other events, RT0004, RT0019, RT0009 and RT0020. This means (Pre) Open Company and Web Service calls.

In fact, RT0019 is called 160.000 times which is the equivalent of once per second. In other words, someone is polling something, and the solution is probably to implement an event driven system like Azure Event Grid. The culprit here was a partner customization.

Let’s look at another example.

HELP! My Application Insights EXPLODES!

A whopping 67 million counts into a Web Service from Business Central. In fact, this happened on a few days with the 30 days period generating 50GB of telemetry on one single day generating a 300+ euro invoice for this ISV.

In this case we narrowed the problem to Azure Blob Storage called millions of times to ping if a file exists.

What does this cost exactly?

HELP! My Application Insights EXPLODES!

HELP! My Application Insights EXPLODES!

Don’t kill your own system

The examples we found that were overflowing Application Insights can all be related to software that behaves in a polling mechanism used for interfaces leading to excessive amounts of web service calls both inbound and outbound.

We believe Business Central is not designed for this and with the Azure world, better options exist that are event-driven rather than timer driven. Logic Apps and Azure Event Grid are just two examples that we will share more examples of in the near future.

Avoid large bills

Lastly, I promised to explain how to avoid getting large invoices for Application Insights. Your customers may install an App from AppSource that results in a cost on your tenant without you knowing.

Also, let’s be honest, a bug by Microsoft may also cause a lot of records in your systems and it would be fair not to have to pay the same company for that.

The solution is to cap the amount of data and setup email alerts in a case large number of events are created in the system.

For a Business Central tenant, we recommend capping on 50MB per day and raising an alert by email if one event id is created more than 5000 times per day. Of course, there can be exceptions to this rule.

ISV’s can limit to 1GB per day to start and let the system grow over time if the number of (hopefully paying) customers grows. We recommend ISV’s to look at Application Insights on a daily bases and monitor delta’s rather than just large numbers. You can also raise alerts if you see a new tenant id coming in which probably means someone installed your solution from AppSource.

You can read how to set this up on Microsoft Docs or by registering to the QBS Academy Application Insights Class.

Useful links:

Microsoft  BCTech AppInsights

Microsoft BCTech AppInsights FAQ

Flere artikler

Kanskje er dette også noe for deg

  • Do you really need the Business Central Universal Code Initiative? Are you shocked? Let’s hope not…

    What’s the Business Central Universal Code Initiative? For a […]

  • Directions EMEA in Milan and we as QBS Group will be there!

    It was a tough year without meeting each other […]

  • Dynamics 365 Update Webcast 1 July 2021

    This series of webcasts is intended to share the […]

  • Cosmos versus Azure SQL and how to integrate with Dynamics 365 Business Central #MSDYN365BC

    One of the highest-scoring FAQs from partners and customers […]

  • Dynamics 365 Update Webcast 27 May 2021

    This series of webcasts is intended to share the […]

  • From Dynamics 365 Business Central to Business Applications

    How do I move from Dynamics 365 Business Central […]

  • How to use the Dynamics 365 Business Central API with C# in Service-to-Service scenarios

    A question that was raised more frequently than others […]

  • ERP Migration – the Friendly Hill That One Day May Become a Hostile Mountain

    Cloud computing is probably the most profound IT-innovation of […]

  • Dynamics 365 CRM Update Webcast 11 May 2020

    Get the latest insights from Microsoft Dynamics 365 CRM […]

  • Update on Dynamics 365 Business Central 27 August 2019

    This series of webinars is intended to share the […]

  • New Pricing for Dynamics 365 Customer Engagement & Unified Operations per the 1st of October 2019

    Microsoft announces new Pricing for Dynamics 365 Customer Engagement […]

  • Update on Dynamics 365 Business Central 13 June 2019

    This series of webinars is intended to share the […]

  • Newsletter
  • Update on Dynamics 365 Business Central 9 May 2019

    Watch here the Webinar update of the 9th of May 2019.

  • Update on Dynamics 365 Business Central 11 April 2019

    This series of webinars is intended to share the […]

  • Update on Dynamics 365 Business Central 14 March 2019

    Technical update and License update 1 April 2109

  • White Paper – Microsoft Dynamics 365 the perfect platform for digital transformation in the mid-market

    At QBS group we’re all about Dynamics partners – […]

  • Arrangementskalender 2021
  • Update on Dynamics 365 Business Central 7 February 2019

    This series of webinars is intended to share the […]

  • Ready to Start Microsoft Dynamics 365 Customer Engagement
  • Directions EMEA 2018 Business Report

    This unique report features a broad but insightful and independent business reporting on the happenings at DIRECTIONS EMEA 2018.

  • Microsoft Dynamics 365 – the perfect platform for new business ventures

    Microsoft has thousands of business partners. Is this market not the red ocean?

  • Ready to Go for Dynamics 365 Business Central
  • Ready to Start Microsoft Dynamics 365 Customer Engagement program – Reference MKB365

    MKB365 has set up a separate business model for […]

  • Highlights from eXtreme 365 EMEA 2018

    Get all the highlights of eXtreme 365 EMEA 2018 and watch this 6 minutes video.

  • What can Dynamics CRM Partners expect from eXtreme365 EMEA 2018?

    eXtreme 365 is the annual event for Microsoft Dynamics […]

  • The evolution of Dynamics 365 opens the door for new opportunities

    Being a Dynamics CRM partner today is like dancing on a volcano – far from boring!

  • “Ever change a winning team”

    “Ever change a winning team” Alex Ferguson, former football […]

  • What’s new NAV 2018

    Understanding these new possibilities is crucial for your product and / or marketing plans.

  • GDPR … and what now ?

    Starting from 25 May 2018 there is going to be a […]

  • Position NAV as stepping stone for more Dynamics 365 ‘Tenerife’ deals

    Since the introduction of the Dynamics 365 Business Edition in the US and Canada late 2016, the position of Dynamics NAV is under pressure! Competitors took the chance to position NAV as an old-fashioned solution and that’s a direct threat to your NAV business!

  • Exclusive interview with Jeff Edwards Director for ERP Channel Strategy Microsoft

    “If you’re an ERP partner not selling CRM, and not having a focus on verticals in 2018 – I don’t know what you’re doing”

  • QBS Azure Services
  • Oppgraderingstjenester
  • Dynamics 365 Acceleration Program
  • ISV Program

    Som ISV er det første fokuset ditt å utvikle […]

  • Indirect CSP

    Som Microsoft-partner overveier du kanskje å inngå samarbeid med […]

  • DIRECTIONS EMEA 2017 business report is available now!

    Never before it was so important for Dynamics partners […]

  • Business Edition is off – long live Tenerife!

    Our team is just getting back from Directions in […]

  • QBS Academy
  • Directions EMEA 2017 Madrid

    Find here all the information you as Microsoft Reseller […]

  • Reflections on this weeks announcements from Microsoft

    One of our founders summarized this week plain and […]

  • The CSP Direct model is like an iceberg

    We noticed that the market is changing, our clients are, more and more, requesting a subscription based approach. This allows them to not have their own services nor the hassle.

  • General Data Protection Regulations (GDPR) – a Microsoft perspective

    The EU General Data Protection Regulation (GDPR) is the […]

  • Inspire 2017 – A look back at 11 big stories for Microsoft Dynamics Partners

    As a longtime WPC / Inspire-observer with a perspective […]

  • Part 4 Microsoft Dynamics Development Preview

    Microsoft released during last Christmas an Azure Virtual Machine […]

  • What Dynamics Partners can expect from Inspire 2017

    Microsoft is on the move! Ever since the start […]

  • 7 Strong arguments to sell Dynamics NAV today

    Dynamics NAV finds itself in an interesting position today! […]

  • Dynamics NAV Development: Extensions or Extinction?

    No one wants to be a dinosaur, it does […]

  • Do you know your new competitors with Dynamics 365 for Financials?

    The new kids-on-the-block with outsell you on Dynamics 365 […]

  • What is the Microsoft Cloud Solution Provider Program (Microsoft CSP)

    The Microsoft Cloud Solution Provider Program (CSP) enables partners to directly manage their entire Microsoft cloud customer lifecycle.

  • Dynamics 365 Business Edition: Opportunity or Threat

    Microsoft will be launching Dynamics 365 Business Edition in […]

  • Get yourself a niche, in order to be successful

    At QBS group we believe that our partners deserve […]

  • After Directions EMEA 2016, Microsoft Dynamics NAV partners face crucial decisions on their future

    As a longtime Microsoft-observer with a perspective geared toward […]

  • What is the Microsoft CSP Program?

    In order to be successful in a Cloud first, […]

Det sier andre om QBS group

  • Ferry Schrijnewerkers

    Owner en Co-founder at MKB365

    Since the start of our company 4 months ago, we have already completed 12 Dynamics 365 for Sales implementations.

    Read the reference case
  • Joaquim Antón Gimeno

    GRUPO CHOICE

    "Our relationship with QBS group allows us to improve our marketing strategy."

    Read the reference case
  • Sofkia

    "Our alliance with QBS group has been very important in the development of our business strategy."

    Read the reference case
  • VS Sistemas

    "QBS group helps us build our road to success."

    Read the reference case
  • Berith Skov - C2IT Business Solutions

    “We are very satisfied with the services provided by and through QBS group."

    Read the reference case
  • Herke ICT Group- Karing Buzing

    We are once again part of a NAV community.

    Read the reference case
  • Owe Loonstra - Verito

    Manager Sales & Marketing

    The fact that we belong to a larger organisation gives our customers security.

    Read the reference case
  • Adfocom - Jeroen Kersten

    Partner Care saved us a lot of time.

    Read the reference case
  • NavAzure - Michael Francois Knudsen

    “It is important to me, that I through QBS become part of a greater network, where partners can share experience"

    Read the reference case
  • Blisss - Dirko Wijers

    Without the help from QBS group we wouldn’t have succeeded.

    Read the reference case

Program

  • Bli partner
  • Indirect CSP
  • ISV Program
  • Våre Partners

Informajonssenter

  • References
  • Blogg
  • Training
  • Arrangementer
  • Nyheter
  • Nyhetsbrev

Tjenester

  • QBS Azure Services
  • Oppgraderingstjenester
  • QBS Academy

Follow QBS group

© Copyright QBS group 2023
  • Cookie Policy
  • Privacy Policy
From Dynamics 365 Business Central to Business Applications Dynamics 365 Update Webcast 27 May 2021
We are now Companial!

This is our old website, we’re now Companial.

The content on this page might be outdated.

Enjoy all the new information on our new website.

 

Go to Companial

Please complete the form

Contact us, please complete this form

Join QBS Group, please complete this form

Join QBS Group please complete the form

Sign up QBS Group Membership

Send me an email.
Please complete the form


If you are not seeing the form, please check your ad-blocker settings.

Download Center

Please complete the form

Register for this event
QBS
  • Norge
    • Global
    • Belgique - Français
    • België - Nederlands
    • Danmark
    • Deutschland
    • España
    • France
    • Italia
    • Nederland
    • Österreich
    • Polska
    • Schweiz
    • Sverige
    • United Kingdom
  • Informasjonssenter
    • Blogg
    • Arrangementskalender 2021
    • Arrangementer
    • Nyheter
    • Referanser
    • Treninger
    • Back
  • Løsninger
  • Tjenester
    • Ready to Go for Dynamics 365 Business Central
    • Ready to Start Dynamics 365 Customer Engagement
    • Take the Lead
    • Oppgraderingstjenester
    • QBS Academy
    • QBS Azure Services
    • Back
  • Program
    • Bli partner
    • Indirect CSP
    • ISV Program
    • Våre partnere
    • Back
  • Om oss
  • Kontakt

This website uses Cookies to give you the best experience. Agreed by clicking the 'Accept' button. After you've clicked on "Accept" you accept QBS group Privacy Statement.

Scroll to top