Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrometheusPlugin ¶
func NewPrometheusPlugin(metrics *PromMetrics) *prometheusPlugin
NewPrometheusPlugin 创建插件
Types ¶
type CounterVec ¶
func NewCounterVec ¶
func NewCounterVec(c *CounterVecOpts) CounterVec
type CounterVecOpts ¶
type CounterVecOpts VectorOpts
type GaugeVec ¶
type GaugeVec interface { Set(v float64, labels ...string) Inc(labels ...string) Add(v float64, labels ...string) Close() bool }
func NewGaugeVec ¶
func NewGaugeVec(opt *GaugeVecOpts) GaugeVec
type GaugeVecOpts ¶
type GaugeVecOpts VectorOpts
type HistogramVec ¶
func NewHistogramVec ¶
func NewHistogramVec(opt *HistogramVecOpts) HistogramVec
type HistogramVecOpts ¶
type PromMetrics ¶
type PromMetrics struct {
// contains filtered or unexported fields
}
func NewPromMetrics ¶
func NewPromMetrics(opts ...metrics.Option) *PromMetrics
func (*PromMetrics) Enabled ¶
func (that *PromMetrics) Enabled() bool
func (*PromMetrics) Init ¶
func (that *PromMetrics) Init(option ...metrics.Option)
func (*PromMetrics) Options ¶
func (that *PromMetrics) Options() metrics.Options
func (*PromMetrics) Start ¶
func (that *PromMetrics) Start()
func (*PromMetrics) String ¶
func (that *PromMetrics) String() string
Click to show internal directories.
Click to hide internal directories.