You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A .Net Standard Client for Sematext Custom Metrics
2
+
3
+
A .Net Standard Client for [Sematext Custom Metrics](https://sematext.com/docs/monitoring/custom-metrics/)
4
+
5
+
A free account to generate API tokens is available at [www.sematext.com](https://apps.sematext.com/users-web/register.do)
6
+
7
+
## Installation
8
+
9
+
### Package Manager
10
+
11
+
```powershell
12
+
Install-Package Sematext-Metrics
13
+
```
14
+
15
+
### .Net CLI
16
+
17
+
```powershell
18
+
dotnet add package Sematext-Metrics
19
+
```
20
+
21
+
## Initialization
22
+
23
+
Once you create an account and application via the [sematext web ui](https://sematext.com) you will have an app token to use when you initialize the `MetricsClient`
To send metrics to a different api endpoint (if you are running an on-premise SPM setup) you can override the default endpoint when you initialize the `MetricsClient`
If you want to run the unit tests in the solution you first need to set an environment variable named `SEMATEXT_APP_TOKEN`. This environment variable is used in the `TestCaseBase` class when it creates the `MetricsClient` that is used to run the unit tests.
0 commit comments