We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23d885 commit 5c34cccCopy full SHA for 5c34ccc
README.md
@@ -15,6 +15,23 @@ Extension for [Prometheus.Client](https://github.com/prom-client-net/prom-client
15
dotnet add package Prometheus.Client.MetricPusher.HostedService
16
```
17
18
+## Use
19
+
20
+[Examples](https://github.com/prom-client-net/prom-examples)
21
22
+```c#
23
+var metricPusher = new MetricPusher(new MetricPusherOptions
24
+{
25
+ Endpoint = "http://localhost:9091",
26
+ Job = "pushgateway",
27
+ Instance = "instance"
28
+});
29
+```
30
31
32
+services.AddMetricPusherService(metricPusher, TimeSpan.FromSeconds(1));
33
34
35
## Contribute
36
37
Contributions to the package are always welcome!
0 commit comments