prometheus-net

Форк
0
/
IMetricServer.cs 
25 строк · 735.0 Байт
1
namespace 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>
7
public interface IMetricServer : IDisposable
8
{
9
    /// <summary>
10
    /// Starts serving metrics.
11
    /// 
12
    /// Returns the same instance that was called (for fluent-API-style chaining).
13
    /// </summary>
14
    IMetricServer Start();
15

16
    /// <summary>
17
    /// Instructs the metric server to stop and returns a task you can await for it to stop.
18
    /// </summary>
19
    Task StopAsync();
20

21
    /// <summary>
22
    /// Instructs the metric server to stop and waits for it to stop.
23
    /// </summary>
24
    void Stop();
25
}
26

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.