This is a migrated thread and some comments may be shown as answers.

Where can I find MetricsAPI docs?

5 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 21 Mar 2011, 07:29 PM
I can't seem to locate the Metrics API documentation, can someone please link me (am I just blind?)

"Added: Metrics API: Provide Metrics about internal resources used by OpenAccess. - OpenAccess used in application or web server scenarios has to provide information about the performance and scalability of the system. The amounts of database connection, parallel context instances, and transaction have to be available. When used, an example web page will show the usage and how to interpret the numbers."

5 Answers, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 24 Mar 2011, 07:54 PM
Hello Steve,

 Thanks for pointing this to us. This topic is not prepared in or documentation yet but it will be there by Service Pack 1 of the current release.

All the best,
Zoran
the Telerik team
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 24 Mar 2011, 08:00 PM
Can you give me a jumping off point?...or is SP1 like in a week
0
Jan Blessenohl
Telerik team
answered on 25 Mar 2011, 09:41 AM
Hi Steve,
new History(context).GetDatabaseMetrics(null,null,-100)
gives you the last 100 entries.
After you have enabled it in the backend configuration:

bc.Runtime.MetricCapacity = 3600;
bc.Runtime.MetricInterval = 1000; // 1 per second


Kind regards,
Jan Blessenohl
the Telerik team
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 25 Mar 2011, 05:43 PM
Thank Jan!  Looks slick

Question on enabling though...Which tracing option is the one to turn it on (in a web context)...

Is it toggleable at all in webconfig setting perhaps?  So I can have a page to check stats, but only turn it on live when I see something wrong.

Steve
0
Jan Blessenohl
Telerik team
answered on 25 Mar 2011, 06:14 PM
Hi Steve,
If you use the scope it is, if you use the context you might want to read such settings from the web.config by yourself and generate the backend configuration object accordingly.

Greetings,
Jan Blessenohl
the Telerik team
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Zoran
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Jan Blessenohl
Telerik team
Share this question
or