Geckoboard linechart

Jan 2, 2013 at 11:29 PM

Hi, 

I've just started working with Wolfpack and i am trying to figure out the Geckoboard functionality. I've managed to show a websites response time as a geckometer item. Works Great!

I am having trouble getting the linechart working as i am not familiar the expected JSON format. I can't seem to figure out the {outcome} parameter.

What do i need to provide here?

Are there sample urls available for the various geckoboard widgets?   

 Many thanks.

Andy.

Coordinator
Jan 4, 2013 at 8:33 AM
Edited Jan 5, 2013 at 11:24 AM

Hi Andy,

Sorry for the delay in responding - I should be getting email alerts when anyone posts here but they seem to be a bit slow.

1. The documentation for the Geckoboard functionality is a bit stale and I apologise for this - a huge Wolfpack update is underway and a brand new Geckoboard feature will be included and this will have proper docs (and support Geckoboard push too).

2. Linechart url formats are...

http://hostname/geckoboard/linechart/{check}/{outcome} - this provides a chart of the raw ResultCount value of the alerts for the matching check/outcome

http://hostname/geckoboard/linechart/{check}/{outcome}/{operation}/per/{rate} - this provides a numeric value (based on the alert ResultCount value)

...where 

  • {check} is the FriendlyName/Id of the check you want to display data for
  • {outcome} is the one of.."Any", "Failure" or "Success". This represents the Result state (null, false, true) of an alert
  • {operation} is one of..."Count", "Sum", "Average", "Min", "Max"
  • {rate} is one of..."day", "hour" or "minute" 

ie...

http://hostname/geckoboard/linechart/somecheck/failure

http://hostname/geckoboard/linechart/anothercheck/success/sum/per/hour

Hope that helps! I'll upate the Linechart doc page with the above information and will try to refresh the other too. If you have any more specific troubles then drop me a message here and I should be able to fix you up ASAP.

Cheers,

James

Jan 5, 2013 at 2:24 AM

Hi James,

Thank you, this makes it very clear. I will be looking forward for the wolfpack update as well.

What i am trying to accomplish exactly is to create a line chart on the geckboard displaying a websites' response time. Will i be able to get this working with the current release?

 

Thanks,

Andy

Coordinator
Jan 5, 2013 at 11:31 AM
Edited Jan 5, 2013 at 11:31 AM

Hi, I have amended the answer I gave above - the description of the first example (http://hostname/geckoboard/linechart/{check}/{outcome}) was wrong - it charts the ResultCount value, not the Count (ie number of instances).

So...to answer your question - yes - the current release will be able to line graph your website response times. The url template above is the one you need to chart the response times - as you are logging the HealthCheck data to the database this will simply chart the response time that is stored in the ResultCount of each message. I would also put "success" in the outcome to ensure you only graph pings that worked.

ie: http://hostname/geckoboard/linechart/name of check reporting website response times/success

Cheers,

James

Jan 7, 2013 at 10:06 PM

Hi James,

Got it working, works great!

Thanks,

Andy