stackdriver - showing count as percentages - stackdriver

We currently have logging setup with custom metrics that pulls the HttpResponseStatus from our logs using (?:HttpResponseStatus=)(...)
When this is put into a dashboard it will show a count of all the different status codes e.g 200, 204
What I am trying to work out is if its possible to have it show them as a percentage out of 100
example
200 95%
204 4%
500 1%
Is that possible using the Stackdriver dashboard and custom metrics? the logs resource type is currently Global

I have checked the documentation for charts and alerting for Stackdriver and found no mention on representing the results as a percentage.
If you think this might be useful for you or/and other users maybe you should go ahead and file a feature request.

Cloud Monitoring doesn't really have the ability to calculate percentages, the way you're looking for.
Refer the Document:
https://cloud.google.com/monitoring/charts/metrics-selector

Related

What are the rate limits for Image-Charts?

We are using Image-Charts as a replacement for Google Image Charts for a dashboard.
When attempting to render a large number of charts, our requests begin to receive 429 Too Many Requests errors.
We tried searching the documentation, but could not find anything about limits.
Are you able to share any limits? Are there different limits between the free and paid plans?
Disclaimer: I'm Image-Charts founder
Current rate limit is at 80 requests per second.
If you go over that point and need a custom plan please contact our support :)

Google analytics is not picking up 100% of active users by report

I made a report of access to custom users and only 25% of users appear, the other 75% I do not know what happened.
Are you using the free version of Google Analytics? If so, your data is likely getting sampled. Try reducing your date range to just a day or two and see if it shows 100% of users. You can also try simplifying your segment so that you are looking at fewer data points. Here are the Google docs explaining sampling.
Your report only matches a portion of your traffic. Maybe you have a report filter, or maybe you are using a segment. This can also happen if you are trying to use a metric/dimension that only a portion of your traffic has. eg: Trying to see users by EventCategory will only include the users that had at least one event, not necessarily the same as the total number of users on your site.

Calculate % based on Total Events for Event Action in Google data studio

I just started to use Google Data Studio for creating a dashboard to get more insights in our data. Now I've created the table you can see below.
This is the data from the trackers on our video's. The first event action videotrackerStart is the total amount of people who started watching the video. What I want to do is calculate what percentage the rest of the event actions is from the videotrackerStart event.
So for example (176,985 / 222,468) * 100 = 79.5% and that for each action.
The problem I face, is that I don't know how to (if it is even possible) save the Total Events for videotrackerStart in a variable and use that value to create a new metric.
Does anyone know how I could get this done? I hope the question is clear, please let me know if not.
Thanks in advance!
Edit (2017/10/26): Percentage of total is now supported in Data Studio using Analytics Functions.
Original: Percentage of total for a metric is not yet supported in tables in Data Studio. You can Request this feature or vote for the feature in the existing feature request list.
To represent the same information visually you can try using barcharts.

Google Analytics Add-on limitaions

I would like to get some data from GA via spreadsheet add-on as I did a few weeks ago (I gathered ~200 000 rows). I am using same metrics, dimensions and rest of the settings but I am still getting this error :
https://i.stack.imgur.com/hTpIg.png
I found that I will get some data when I do not set up "max-results", but the default is set up on 1000 which is not enough for my needs. Why?
What I have tried to solve this problem and it doesn’t work:
change GA views
change dimensions and metrics
change time range
create new spreadsheet
set up sharing settings of spreadsheet to "public on web"
I found the link regarding limits and quotas on API (https://developers.google.com/analytics/devguides/config/mgmt/v3/limits-quotas#) and I should pass only through 50 000 requests per project, which I actually exceed on the first run, so another question how is it even possible to get more data than I suppose to get?
Should I really order more request or does "request" mean anything else than "one row"? Second why or what?
There is no any interpretation for the error.
Perhaps I am missing something, appreciate your help.
In short: while one could only guess what causes your problem it's most certainly not the API limit. Rows and requests are not at all the same, every request may fetch up to 10,000 rows.
"Request" is a call to the API, which might include one or many rows of data (unless your script somehow only requests one row at a time, which would be unusual).
If you exceeded your API quota the error message would say pretty much that.
The default is 1000 rows because that's a sensible default (compromise between convenience and performance). The API will return max 10,000 rows per request. To fetch 200 000 results the Add-on would have to do 20 requests, not 50 000.
Also a Google spreadsheet support 2mio cells at max, this might be exceeded by your result set.
"Service error" is a very unspecific error message which can be caused by a variety of causes from out-of-bound ranges to script timeouts or network latency. Sometimes the spreadsheet service dumps an additional error message in the browser console, so you should check your developer tools.

Have Google Analytics show a single number that is between two periods of time

In Google Analytics, how can I get a single number that is a change between two periods?
For example, I have a bounce rate in December that is 28%. I have a bounce rate in Januaray that is 22%. How can I get a widget on the page to just show -6%.
What you're referring to is known as a "calculated metric", and currently there's no way to do this in Google Analytics (outside of the built-in calculated metrics like ga:percentNewUsers).
The best way to do this right now is to make two queries to the API and write some code that does the calculation yourself.
Since you mentioned having a widget on the page that displays this data, you might look into the Embed API to do the queries

Resources