cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking at options for collecting metrics data from Azure to on-prem Dynatrace.

runatyr
Organizer

Hello all. Happy New Year's Eve.

 

Currently we have an on-prem Dynatrace solution, that also connects up to our Azure cloud presence.

Within our Azure instance we see several cloud services such as Blob Storage, App Insights, etc. as well as App Services and several Storage account services and 1 Event Hub. This was all added with the use of the manage services options.

I know that within Dynatrace, all this data is presented based upon what Dynatrace discovers.

 

However, I am wanting to know if there is an option to target a specific metrics or services that perhaps are not discovered by default with the connection to Azure. 

 

Suppose there is a metric in Azure that I want to target and collect specifically, how can this be done if it is not discovered automatically or listed within the "manage services" list?

 

Is this done from a command line? How would the metrics be added into Dynatrace so the Dynatrace API could be used to call this value later on? Are there any examples of this done?

 

At the end of the day, I'm trying to find a way to specifically target a metrics in Azure, store it in Dynatrace, and then call it back with the use of the Dynatrace API.

 

Thanks to the community for all your help !

 

4 REPLIES 4

ChadTurner
DynaMight Legend
DynaMight Legend

You can always send in your payload via a metric stream so if a metric isn't present out of the box you can target it directly via the stream. 

https://docs.dynatrace.com/docs/shortlink/stream-analytics 

-Chad

Julius_Loman
DynaMight Legend
DynaMight Legend

@runatyr be sure to check https://docs.dynatrace.com/docs/shortlink/azure-monitoring-guide#create-monitoring-configuration - the built-in integration scrapes metrics for Azure services. New services and metrics are added regularly. If there is by any chance a metric in Azure monitor which is not available in Dynatrace, you have to scrape it by different means. For such purpose, we developed internally a Dynatrace Extension which allows you to scrape data by running KQL queries and ingest them as metrics or log events in Dynatrace. With this method, we can even have metrics in Dynatracre from other data types in Azure monitor such as traces or logs. Reach out to me if you are interested, the extension is not in the HUB.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thanks Julius.

Your solution aligns with what we are trying to achieve.

Let me know how I might see or access the extension you mentioned above (running KQl queries)

-runatyr

@runatyrIt's an Extension 2.0, I believe you will have a pretty good example in the screenshots:
First you define your azure credentials / tenant / proxy and you can add queries:

Julius_Loman_0-1736968816217.png

For each query you can specify the workspace where this will be executed, the KQL query itself and the interval for execution:

Julius_Loman_1-1736968945952.png

Query itself returns a "table" and you can define metric extraction rules. Extension then creates a Dynatrace metric with the given metric key (this example is from a lab, so the metric key is dummy) and you specify the actual column name fro the metric value. Additionally, you can specify metric dimensions - values from other columns from the KQL result which are added to the metric:

Julius_Loman_2-1736969147626.png

Furthermore, you can optionally send the each query response as log lines to Dynatrace. This is useful if the response is not a metric, but a text instead. You can then see the responses as regular log entries in Dynatrace in the Log analytics.

I hope this helps. Basically, data from any KQL response that can be executed in an analytics workspace can be sent to Dynatrace as metrics or log lines. The extension itself uses Azure SDK to access the required Azure APIs.

Would this solve your case?

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts