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."
"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
0
Hello Steve,
Zoran
the Telerik team
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
Hi Steve,
new History(context).GetDatabaseMetrics(null,null,-100)
gives you the last 100 entries.
After you have enabled it in the backend configuration:
Kind regards,
Jan Blessenohl
the Telerik team
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
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
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
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