摘要:
// Copyright © 2021 sealos.//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with 阅读全文
posted @ 2023-02-09 16:20
技术颜良
阅读(167)
评论(0)
推荐(0)
摘要:
基本使用 package mainimport ( "fmt" "sync")var wg sync.WaitGroupfunc hello() { fmt.Println("hello func...") wg.Done() // 通知计数器减1}func main() { wg.Add(4) / 阅读全文
posted @ 2023-02-09 15:57
技术颜良
阅读(29)
评论(0)
推荐(0)
摘要:
本篇内容有点长,代码有点多。有兴趣的可以坚持看下去,并动手实践,没兴趣的可以划走。本文分两大块,一是搞清楚prometheus四种类型的指标Counter,Gauge,Histogram,Summary用golang语言如何构造这4种类型对应的指标,二是搞清楚修改指标值的场景和方式。 指标类型类别描 阅读全文
posted @ 2023-02-09 15:31
技术颜良
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号