Documentation ¶
Index ¶
- Variables
- func CustomRecord(metricsName string, lableMap map[string]string)
- func DBConnectCount(count int, dbType string)
- func NewPrometheusMetrics(serviceName string)
- func Record(ctx *gin.Context, resp string)
- func SimpleLableRecord(lable string, input string)
- func SimpleRecord(input string)
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Met *metrics.Metrics
)
Functions ¶
func CustomRecord ¶
* * 自定义记录 * 记录至 <namespace>_<name>_<metricsName>_count{labelMap<key>="labelMap<value>"...} 这个metrics中
func NewPrometheusMetrics ¶
func NewPrometheusMetrics(serviceName string)
func SimpleLableRecord ¶
* * 单一label记录() * 记录至 <namespace>_<name>_simple_count{string="<你的输入>"} 这个metrics中
func SimpleRecord ¶
func SimpleRecord(input string)
* * 单一label记录(极简版) * 记录至 <namespace>_<name>_simple_count{handleMethod="<你的输入>"} 这个metrics中
Types ¶
Click to show internal directories.
Click to hide internal directories.