Slide 14
Slide 14 text
メトリクスの記述子を作る
var (
exampleCount = prometheus.NewCounter(
prometheus.CounterOpts{
Namespace: namespace,
Name: "example_count",
Help: "example counter help",
})
exampleGauge = prometheus.NewGauge(
prometheus.GaugeOpts{
Namespace: namespace,
Name: "example_gauge",
Help: "example gauge help",
})
)
NewCounter,NewGauge処理内でDesc生成