I have created a URL monitor to check the availability of website.I kept all values as it is in monitor tab and added host( http://abcd.xyz.org ). I scheduled it for every 10 minutes in schedule tab. In Measure tab I put the Lower sever value of HostReachable measure to 0.
I created incident , added HostReachable measure and put its Aggregation to last value. Evaluation time frame is 1 minutes.In Action tab I put my email for notification.
Now after every 10 minutes I started getting email even I browsed the website and it's working fine. Couldn't understand if website loading fine then why incidents occurs.
Email message:
Violations
HostReachable: STG URL Monitor#abcd.xyz.org: Was 0.00 but should be higher than 0.00.
Latest logs given below:
2016-08-17 15:42:33 INFO [UrlMonitor#STG URL Monitor_0] Previous message was repeated 1 times.
2016-08-17 15:42:33 INFO [UrlMonitor#STG URL Monitor_0] Executing method: GET, URI: http://abcd.xyz.org:80/
Thanks
This could have to do with the evaluation timeframe of your Incident. If your monitor is scheduled to run every 10 minutes but your evaluation timeframe is 1 minute it means that you have 9 evaluations where there is "no data".
We typically recommend to align the monitor execution with the Incident. Can you give that a try?
Also - I typically chart these measures to see which values the monitor produces in which timeinterval. this is an easy visual verification check to make sure that e.g: the monitor works correctly and delivers data. Can you do that?
I also wanted to say that we have a very good Dynatrace Online Community and Discussion forum # http://answers.dynatrace.com. You might want to try to post future questions there as there are 100k+ Dynatrace users active on that community
Andi
Related
how can I refresh a webpage continuously using load runner ?
I am looking for an option with loadrunner and not selenium , js or HTML.
Define, "refresh continuously."
Why do I ask this? The server does not care what is on the other end of the request. It could be a full client. It could be a test tool like LoadRunner. It could be a program written in Python. It could be a command line tool like cUrl. The server has no concept of "refresh" on the client, only responding to a request.
You could put a single page load in a loop with no thinktime between requests. This would violate a core tenet of client-server computing, that a delay exists between requests from a client during which the items returned are being processed by either the silicon or organic computing units on the client front.
lr_start_transaction("foo");
while (lr_get_transaction_duration("foo")<3600)
{
// my request code here
sleep(rand()%9000 + 1001);
}
lr_stop_transaction("foo");
On reporting systems one often observes behavior of polling to see when a report is complete. The delay between these requests is often 5-10 seconds for a refresh of the report request. This is typically handled in LoadRunner code with a looping structure which breaks when the report is actually returned. Inside of the loop it issues the request, checks the result to see if exit is warranted, waits the 5-10 seconds then loops.
You could have a script with one request, loaded in the controller with either zero or some pacing. Schedule it for an hour of execution.
many many ways
I'm having issue getting answers from a Google Coud Function going through ESPv2.
Every time I request it, I get a response 15 seconds later with a status code of 504.
My function take between 30 to 45 seconds.
In the logs the functions correctly and answer back after 35 seconds.
Is there a way to increase the timeout in ESPv2 ?
Thanks
For anyone else having this issue, in the openapi-functions.yaml under the x-google-backend you should had the attribut deadline and set it to whatever value in seconds you want.
Here is the hidden documentation https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#deadline
Issue related: https://github.com/GoogleCloudPlatform/esp-v2/issues/4
Depending on the documentation you used to secure the endpoints of your Cloud Function’s with ESPv2, this should be possible. If you are using Cloud Run to host your ESPv2, a 504 error is sent when a request exceeds its request timeout limit. The request timeout limit is a setting that specifies the time within which a response must be returned before sending a 504 response. You can change this value by going in your “Cloud Run” tab, selecting your ESPv2 service, selecting “Edit & Deploy new Revision”, scrolling down to the capacity section and setting the time in milliseconds. This is some documentation that could prove helpful when working with the topics discussed.
Now that the Sony LifeLog API is shut down, I'm trying to figure out how to get access to my sleep data (e.g. daily hours slept, wake up time, bedtime).
In the OAuth playground, I tried sending queries to Google Fit for Sony Data, but I'm getting back an empty point array no matter what I try.
https://www.googleapis.com/fitness/v1/users/me/dataSources/raw:com.google.activity.segment:com.sonymobile.hostapp.everest:Sony Mobile Communications Inc.:SWR12:24234b96:/datasets/1397513334728708316-1504711909728708316
(This date range should be from April 14, 2014 until today.)
I tried with the other datasources I found, raw:com.google.heart_rate.bpm:com.sonymobile.hostapp.everest:Sony Mobile Communications Inc.:SWR12:24234b96: or raw:com.google.step_count.delta:com.sonymobile.hostapp.everest:Sony Mobile Communications Inc.:SWR12:24234b96:, but those both returned empty data as well.
Even though these sonymobile datasources are return from https://developers.google.com/fit/rest/v1/reference/users/dataSources/list, when I query them directly I get a 404:
https://www.googleapis.com/fitness/v1/users/me/dataSources/raw:com.google.activity.segment:com.sonymobile.hostapp.everest:Sony Mobile Communications Inc.:SWR12:24234b96:
(I can see other dataSources are valid though by requesting e.g. https://www.googleapis.com/fitness/v1/users/me/dataSources/derived:com.google.step_count.delta:com.google.android.gms:estimated_steps)
How can I get download my sleep data for the last year?
I have a senario that has been causing me issues for the last few weeks now. I currently have a "homepage" that populates with data from a controller with sports stats. This data comes from a service that is also used for the individuals pages for this sports stats.
For instance a user is able to click one of the listings on the home page and get a detailed list of that particualar entry with a state change from sports.com to sports.com/id/sport
I do this by taking the id from the home service and pass that through the paramenters within the state for the details page. From here I use that same service with the #id as a paramenter in order to get the details for that page (using $stateParams.id).
Normally that would work fine, but here is the problem. Sometimes when hitting the details page the service fires off the get request before the $stateParams.id is availibe and I end up with an error in my request. So instead of /json.php?detail=id im getting /json.php?detail=
For a cheap fix I now have the search query waiting on a timeout for 800ms in order to give the state time to resolve the $stateParams.id and then finally send out the request. My question is, what is a better way to do this? Is this something experienced often? It seems like in all my time with angular I haven't run into this situation so I'm a bit at a lost. Thanks
i'm looking at a stock/index:
http://www.google.com/finance?q=google
I've got firebug open, in firefox and when the price updates on the page, i dont see any GETs or POSTs, just a get maybe 30 to 60 seconds later.
Surely if the page is being updated with a value, wouldnt firebug show this data reaching the page as it happens? Or does firebug collect connections in batches?
Look further back in the GET connection logs to see if there is a connection that was opened but not closed. It's likely that the page is opening an XmlHttpRequest connection to the data server and keeping the connection open indefinitely. This is common for streaming data situations, even when the data stream is fairly low volume. If this is the case, then new data will arrive on the open connection without any new connection activity reported in the log.
There is one request that never finishes responding (or at least not for the time I watched), you can see this in the NET panel, this response periodically outputs more data which is then used to update the application. If you examine the request you will see that it specifies a header Transfer-Encoding: Chunked, which is used for these purposes, see http://en.wikipedia.org/wiki/Chunked_transfer_encoding.