Skip to content

Commit e6fd04c

Browse files
author
Sergey
committed
dashboard improve, readme improve
1 parent f561df8 commit e6fd04c

File tree

4 files changed

+30
-23
lines changed

4 files changed

+30
-23
lines changed

JMeterTests/StressTest_PollCounters_TestService.jmx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
<collectionProp name="Arguments.arguments">
1616
<elementProp name="host_url" elementType="Argument">
1717
<stringProp name="Argument.name">host_url</stringProp>
18-
<stringProp name="Argument.value">localhost</stringProp>
18+
<stringProp name="Argument.value">perfon.1gb.ru</stringProp>
1919
<stringProp name="Argument.metadata">=</stringProp>
2020
</elementProp>
2121
<elementProp name="host_port" elementType="Argument">
2222
<stringProp name="Argument.name">host_port</stringProp>
23-
<stringProp name="Argument.value">8010</stringProp>
23+
<stringProp name="Argument.value">80</stringProp>
2424
<stringProp name="Argument.metadata">=</stringProp>
2525
</elementProp>
2626
<elementProp name="api_prefix" elementType="Argument">

JMeterTests/StressTest_TestService.jmx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
<collectionProp name="Arguments.arguments">
1616
<elementProp name="host_url" elementType="Argument">
1717
<stringProp name="Argument.name">host_url</stringProp>
18-
<stringProp name="Argument.value">localhost</stringProp>
18+
<stringProp name="Argument.value">perfon.1gb.ru</stringProp>
1919
<stringProp name="Argument.metadata">=</stringProp>
2020
</elementProp>
2121
<elementProp name="host_port" elementType="Argument">
2222
<stringProp name="Argument.name">host_port</stringProp>
23-
<stringProp name="Argument.value">8010</stringProp>
23+
<stringProp name="Argument.value">80</stringProp>
2424
<stringProp name="Argument.metadata">=</stringProp>
2525
</elementProp>
2626
<elementProp name="api_prefix" elementType="Argument">

Perfon.WebApi/UI/PerfCountersUIPanel.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<!--<nav class="navbar navbar-default">-->
2-
<div class="pane">
1+
<div class="pane">
32
<form class="navbar-form">
43
<div class="form-group">
54
<label for="selected_date">Date </label>
@@ -18,18 +17,15 @@
1817
</div>
1918
</form>
2019
<div id="chartsContainer">
21-
2220
</div>
2321
</div>
24-
<!--</nav>-->
25-
26-
2722

2823
<style>
2924
.graph-block
3025
{
3126
border:1px solid #8f9aab;
3227
padding:5px;
28+
color: #336699;
3329
}
3430
@media (min-width: 1600px){
3531
.col-lg-xl-3
@@ -41,10 +37,16 @@
4137
height: 21px;
4238
padding: 0px;
4339
background-color: #A0AEC1;
40+
color: #29264E;
4441
}
4542
.date-inp
4643
{
4744
background-color: #A0AEC1;
45+
color: #29264E;
46+
}
47+
.pane
48+
{
49+
color: #29264E;
4850
}
4951
body,.pane
5052
{
@@ -165,8 +167,8 @@
165167
labelsDiv: lbl,
166168
fillGraph : true,
167169
colors:["#336699"],
168-
fillAlpha : 0.3,
169-
rangeSelectorAlpha: 0.4
170+
fillAlpha : 0.5,
171+
rangeSelectorAlpha: 0.2
170172
//showRoller: true
171173
}
172174
);
@@ -268,7 +270,6 @@
268270

269271
function getPerfCountersList(){
270272
return $.get(uri);
271-
272273
}
273274
function getPerfCounterTrack(name, date){
274275
return $.get(uri+'?name='+encodeURI(name)+'&date='+date);

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
# Perfon.Net
2-
Performance monitoring .Net framework for Web Api applications with no using windows performance counters.
3-
Built-in REST API and UI dashboard.
2+
Perfon.Net is a performance monitoring .Net framework for web applications without using windows performance counters.
3+
4+
It is designed mainly for use in WebApi and MVC projects, placed on shared hosting plans, when you have no access to IIS or OS and work without access to IIS or OS, or have non-privileged rights.
5+
It has built-in REST API and UI dashboard
46

57
[See Demo page](http://perfon.1gb.ru/api/perfcountersui "Demo page")
68

9+
710
### Perfon.Core
811
Core library, that monitors performance metrics of your application.
912
It does not uses windows perfomance counters, so it could used with non-privileged rights.
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.
12-
You could implement simple storage interface and register it for storing data in your own way.
13-
For example, it could be used on the shared hosting plans, when you have no access to IIS or OS.
13+
It has three built-in storage drivers, allowing to save counters data to CSV file, in embedded LightDB database (www.litedb.org, SQLite analog) or to keep it in memory cache.
14+
You could develop own storage driver implementing simple interface.
15+
Custom counters could be impelemented easily deriving from Peron.Net base performance counters.
16+
Threshold notifications could be set on counters.
1417
A list of implemented performance counters:
1518
* Number of requests per second
1619
* Number of exceptions per second
@@ -29,8 +32,11 @@ Todo: add sample for it.
2932

3033
### Perfon.WebApi
3134
A wrapper for painless use Perfon with Web Api 2 projects.
32-
It provides Web Api for getting perf. counters through Web by /perfcounters and /perfcounters?name={perfcounterName}
33-
Also it provides /perfcountersUI API, which return a html page with counters visualiation dashboard.
35+
It provides Web Api for getting performance counters and built-in dashboard:
36+
get counters list: api/perfcounters
37+
get values for selected counter: api/perfcounters?name={name}
38+
html page dashboard iwth visualization of counters: api/perfcountersui
39+
html div: api/perfcountersuipanel
3440
How to use:
3541
1. Add a reference to Perfon.WebApi.
3642
2. Use it after Web Api application configuration code:
@@ -57,14 +63,14 @@ Features:
5763
* Register ThresholdMaxNotification on any Performance Counter to get notification event about threshold violations
5864
* PerfMonitor.Storage.QueryCounterValues(name) and GetCountersList() for get counter track records.
5965

66+
67+
6068
### TestServer
6169
Example of using Perfon.WebApi. One could run and monitor with Perfon using JMeterTests stress tests.
6270

6371
---
6472

6573
### TODO:
66-
* Improve Demo site
67-
* Improve dashboard
6874
* Add description of options and conventions
6975
* Implement PostgreSQL storage for performance counters data.
7076
* Perfon.WebMVC - a wrapper for painless use Perfon with Asp.Net MVC projects.

0 commit comments

Comments
 (0)