Skip to content

Commit 902c5b3

Browse files
author
Sergey
committed
Demo site link added
1 parent aaf63de commit 902c5b3

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

Perfon.WebApi/UI/PerfCountersUIPanel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
});
102102
}
103103

104-
setInterval(PollServer, 1000);
104+
//setInterval(PollServer, 1000);
105105

106106
function PollServer()
107107
{

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
Performance monitoring .Net framework for Web Api applications with no using windows performance counters.
33
Built-in REST API and UI dashboard.
44

5-
Demo page - todo
5+
[See Demo page](http://perfon.1gb.ru/api/perfcountersui "Demo page")
66

77
### Perfon.Core
88
Core library, that monitors performance metrics of ypur application.
99
It does not uses windows perfomance counters, so it could used with non-privileged rights.
10-
It has two Storage Drivers, allowing to save counters data to CSV file or in embedded LightDB database (www.litedb.org, Analog of SQLite).
10+
It has three Storage Drivers, allowing to save counters data to CSV file, in embedded LightDB database (www.litedb.org, Analog of SQLite)
11+
or in in-memory cache.
1112
You could implement simple storage interface and register it for storing data in your own way.
1213
For example, it could be used on the shared hosting plans, when you have no access to IIS or OS.
1314
A list of implemented performance counters:
@@ -62,7 +63,7 @@ Example of using Perfon.WebApi. One could run and monitor with Perfon using JMet
6263
---
6364

6465
### TODO:
65-
* Demo site
66+
* Improve Demo site
6667
* Improve dashboard
6768
* Add description of options and conventions
6869
* Implement PostgreSQL storage for performance counters data.
@@ -72,4 +73,5 @@ Example of using Perfon.WebApi. One could run and monitor with Perfon using JMet
7273
* Add example of implementing custom counter
7374
* Add example of implementing own IPerfCountersStorage
7475
* Example of using&implementing NotificationRecievers
76+
* Add compariosn with win perf counters values (Kb/sec, CPU%, req/sec)
7577
* Cache based on tags?

TestServer/Global.asax.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections;
33
using System.Collections.Generic;
4+
using System.Configuration;
45
using System.IO;
56
using System.Linq;
67
using System.Reflection;
@@ -24,9 +25,9 @@ protected void Application_Start()
2425

2526

2627
PerfMonitor = new PerfMonitorForWebApi();
27-
//PerfMonitor.RegisterCSVFileStorage(AppDomain.CurrentDomain.BaseDirectory);
28+
//PerfMonitor.RegisterCSVFileStorage(AppDomain.CurrentDomain.BaseDirectory + "\\" + ConfigurationManager.AppSettings["DB_Path"]);
2829
//PerfMonitor.RegisterInMemoryCacheStorage(60);
29-
PerfMonitor.RegisterLiteDbStorage(AppDomain.CurrentDomain.BaseDirectory);
30+
PerfMonitor.RegisterLiteDbStorage(AppDomain.CurrentDomain.BaseDirectory + "\\" + ConfigurationManager.AppSettings["DB_Path"]);
3031
PerfMonitor.OnError += (a, b) =>
3132
{
3233
Console.WriteLine("PerfLibForWebApi:"+b.Message);

TestServer/TestServer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
4949
</Reference>
5050
<Reference Include="System" />
51+
<Reference Include="System.Configuration" />
5152
<Reference Include="System.Core" />
5253
<Reference Include="System.Net.Http" />
5354
<Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

TestServer/Web.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
</connectionStrings>
77
<appSettings>
88
<add key="DoNotSendEmails" value="true" />
9+
<add key="DB_Path" value="DB" />
910
</appSettings>
1011
<system.web>
1112
<compilation debug="true" targetFramework="4.5.1" />

0 commit comments

Comments
 (0)