# Functions
DefaultPrometheusClientOptions 默认配置.
NewCounter 创建计数器 每创建一个计数器附带创建一个协程消费数据,当不再使用时需要调用Stop方法销毁协程.
NewHistogram 创建直方图指标 每创建一个直方图指标附带创建一个协程消费数据,当不再使用时需要调用Stop方法销毁协程 建议创建的指标推送器采用单例,避免协程泄露.
NewQuery Prometheus数据查询.
WithCacheSize 配置缓存大小.
WithGatewayHost 配置pushgateway的域名.
WithPanicErrorHandle 配置panic错误输出方法.
WithPromHttpApiQueryHost 通过http-api查询阿里prometheus数据配置HOTS.
WithPromReadHost 设置prometheus数据读取host.
WithPushErrorHandle 配置推送错误时的日志方法.
WithPusherWaitingTimeout 配置消息推送线程空数据等待时间.
WithQueryErrorHandle 配置推送错误时的日志方法.
WithQueryTimeout 设置查询超时时间.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Structs
Counter 计数器指标.
Histogram 直方图指标.
HistogramMessage 直方图消息.
Label 指标标签.
No description provided by the author
Query Prometheus数据查询.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author