prometheus-net
25 строк · 735.0 Байт
1namespace Prometheus;2
3/// <summary>
4/// A metric server exposes a Prometheus metric exporter endpoint in the background,
5/// operating independently and serving metrics until it is instructed to stop.
6/// </summary>
7public interface IMetricServer : IDisposable8{
9/// <summary>10/// Starts serving metrics.11///12/// Returns the same instance that was called (for fluent-API-style chaining).13/// </summary>14IMetricServer Start();15
16/// <summary>17/// Instructs the metric server to stop and returns a task you can await for it to stop.18/// </summary>19Task StopAsync();20
21/// <summary>22/// Instructs the metric server to stop and waits for it to stop.23/// </summary>24void Stop();25}
26