1234567891011121314151617181920 |
- package metric
- import "github.com/wuntsong-org/go-zero-plus/core/prometheus"
- // A VectorOpts is a general configuration.
- type VectorOpts struct {
- Namespace string
- Subsystem string
- Name string
- Help string
- Labels []string
- }
- func update(fn func()) {
- if !prometheus.Enabled() {
- return
- }
- fn()
- }
|