File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 11# Prometheus.Client.MetricServer
2+
3+ [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/pe2cpegs61b6tmi9?svg=true )] ( https://ci.appveyor.com/project/phnx47/prometheus-client-metricserver ) [ ![ License MIT] ( https://img.shields.io/badge/license-MIT-green.svg )] ( https://opensource.org/licenses/MIT ) [ ![ NuGet Badge] ( https://buildstats.info/nuget/Prometheus.Client.MetricServer )] ( https://www.nuget.org/packages/Prometheus.Client.MetricServer/ )
4+
5+ Extension for [ Prometheus.Client] ( https://github.com/phnx47/Prometheus.Client )
6+
7+ ## Quik start
8+
9+
10+ #### Install:
11+
12+ PM> Install-Package Prometheus.Client.MetricServer
13+
14+ #### Use:
15+
16+ ``` csharp
17+
18+ static void Main (string [] args )
19+ {
20+ IMetricServer metricServer = new MetricServer (" localhost" , 9091 );
21+ metricServer .Start ();
22+ .. .
23+
24+ var counter = Metrics .CreateCounter (" test_count" , " helptext" );
25+ counter .Inc ();
26+ .. .
27+
28+ metricServer .Stop ();
29+ }
30+ ```
31+
32+
You can’t perform that action at this time.
0 commit comments