promethy

package module
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

README

项目

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

项目介绍

捐助

支持宝 微信

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢

Jetbrains图标

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Metric added in v0.1.4

func Metric() *builder.Metric

func New

func New() (promethy *builder.Promethy)

New 创建普罗米修斯 使用单例模式,多次创建只会创建一个实例

Types

type Counter added in v0.1.4

type Counter interface {
	Inc()

	Add(float64)
}

type Gauge added in v0.1.4

type Gauge interface {
	Counter

	Dec()

	Sub(float64)

	Set(float64)
}

type Histogram added in v0.1.5

type Histogram interface {
	Observe(float64)
}

type Promethy added in v0.0.7

type Promethy = core.Promethy

Promethy 普罗米修斯

type Registry

type Registry = core.Registry

Registry 注册表

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL