Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5
Push metrics to Pushgateway
License
prom-client-net/prom-client-metricpusher
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Sometimes when it is not possible to pull e.g. - nodes behind LB or there is a worker like daemon or windows service that does not have HTTP endpoint still there is way to push your metrics to Pushgateway server that you can install fromhere.
dotnet add package Prometheus.Client.MetricPusher
One push. You can use Timer for regularly push to Pushgateway:
varpusher=newMetricPusher(newMetricPusherOptions{Endpoint="http://localhost:9091",Job="pushgateway",Instance="instance"});awaitpusher.PushAsync();
Push with Auth:
varpusher=newMetricPusher(newMetricPusherOptions{Endpoint="http://localhost:9091",Job="pushgateway",Instance="instance",AdditionalHeaders=newDictionary<string,string>{{"Authorization","Bearer "+accessToken}}});
Background server:
varpusher=newMetricPusher(newMetricPusherOptions{Endpoint="http://localhost:9091",Job="pushgateway"});varworker=newMetricPushServer(pusher);worker.Start();// codeworker.Stop();
Contributions to the package are always welcome!
- Report any bugs or issues you find on theissue tracker.
- You can grab the source code at the package'sgit repository.
All contents of this package are licensed under theMIT license.
About
Push metrics to Pushgateway
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.