Application insight - azure-application-insights

I have created a powerBI dashboard for my application insight but it's only showing last 7 days data.
I am able see 30 days when I check in overview of appinsight but it's only showing last 7 days when I do browser search from overview view.

I'm not sure how you are exporting you Application Insights telemetry to PowerBI, but you can export the data using Application Insights Analytics queries. This way, you have full control on the timestamp range in the Analytics query.
For example, for finding the average request duration in the last 30 days in a daily bin, you can use the following query:
request
| where timestamp >= ago(30d)
| summarize avg(duration) by bin(timestamp, 1d)
Asaf

Related

Regarding custom metrics application insights

I have a scenario where I'm getting custom metrics thru an application. I want to create alerts based on thresholds and days of the week. Is there any way I can integrate the metadata in some storage and compare the metrics based on that? For example, I have message count metrics in the application, and if on Monday the message count is less than 100 or more than 200 I should get an alert. It varies on the day of the week. I have to monitor almost 250 custom metrics.
I tried implementing custom logs in Log analytics but I have a challenge in case if I want to change the thresholds then I need to drop the custom table and recreate it.
Thank you AnuragSingh-MSFT | Microsoft Docs. Posting your suggestion as an answer to help other community members.
Using a combination of both dayofweek() and case() functions, the resultant query itself can contain the threshold based on the day-of-week. Therefore, in future if the threshold changes, you will only have to edit the case statement and this solution also does not require additional storage/custom table.
let day = dayofweek(now());
let threshold = case(day == 1d, 5m, //threshold for Monday is 5 minutes
day == 2d, 2m, //threshold for Tuesday is 2 minutes
day == 3d, 5s, //threshold for Wednesday is 5 seconds
10m); //threshold for any other day is 10 minutes.
Heartbeat
| summarize LastHeartbeat=max(TimeGenerated) by Computer
| where LastHeartbeat < ago(threshold)
Reference: Regarding custom metrics application insights - Microsoft Q&A

Firebase BigQuery data range

I've been directed to post any questions on Stack overflow from Google regarding BigQuery
I have an app linked to Firebase collecting a few custom events. This has been running since August 2019. I've linked my firebase project to Big Query (Sandbox)
I've run a query to get a breakdown of 2 events which works fine BUT only for the last 2 days. When I put in a date range from say 1st August 2019 to 1st April 2020, I get the exact same number. If I choose a date range prior to the last 2 days I get no results.
I believe that only the last 2 days worth of data is being linked across.
How do I get access to all the data I have in Firebase analytics in Big Query? Is this a Sandbox limitation?
Thanks

Hourly average usage in Azure Application Insights

I can get Application Insights to display a running hourly log of usage, but is there a way to display average usage on an hourly basis to see what times of the day a site is must used?
on the overview blade your resource, isn't there a metrics explorer that shows exactly that? the last 24 hours by hour? if that isn't what you mean, you could make an analytics query to get whatever you want, something like
requests
| where timestamp > ago(7d)
| extend hour = datetime_part("hour", timestamp)
| summarize sum(itemCount)/7 by hour
| order by hour asc
| render barchart
which would show you requests over the last 7 days split by each of the 24 hours, divided by 7 to show you average per day.
if you just want "today's" version of that its even simpler:
requests
| where timestamp > ago(1d)
| summarize sum(itemCount) by bin(timestamp, 1h)
| render timechart
anything you can query in the analytics website you can then pin as a tile on your azure dashboard.

Retrieving last 12 months data per ga:year

I'm trying to generate data for the last 12 months in Google Sheets using the GA add-on but ga:users is not showing same figure as GA web because my dimension is ga:year which makes it break it down to adding 2016 to 2017 data.
ga:month would break it down too much and give the overall figure a greater difference.
Any ideas how to fix this so that I can same data as web for users?
Thanks.
Here's my configuration:
Last year Partner
core
ga:xxxxxxxxxxx
01/08/2016
31/07/2017
ga:users
ga:sessions
ga:bounceRate
ga:pageviews
ga:pageviewsPerSession
ga:year
HIGHER_PRECISION
Adding the users from the two distinct years will not match the users from the web interface. The web interface is giving you the de-duplicated number of users.
i.e. anyone visiting the site in Nov-16 and Feb-17 is counted as one user in the web interface, while you are double counting them from your yearly output.

Google API Returning Sampled Data

I'm using the Google-Analytics API to query my analytics for data using the Google Analytics Spreadsheet Add-on We then use the spreadsheet data in Google Data studio for a dashboard to display the data.
Everything has been going well for the last few months, however over the last 48 hours we have begun to receive sampled data when we query the API using the spreadsheet add on. This is undesirable for how we are using the data.
The total results that we were getting before being returned was about 1100 results. We have altered the date range of the query to be only 3 days whereas before we were querying since the start of the year.
Initially that worked and the results were no longer sampled. Then 24 hours later the data appears to be sampled again.
The documentation says the following regarding sampling for the free account:
Analytics Standard: 500k sessions at the view level for the date range you are using
We are not using our analytics that heavily so I cannot understand why we would have hit the 500K limit?
It is also not clear to me what a "View Level" is? Any help on this would be greatly appreciated.

Resources