metrics.go 436 B

1234567891011121314151617181920212223242526
  1. package orchestration
  2. import (
  3. "github.com/prometheus/client_golang/prometheus"
  4. )
  5. const (
  6. MetricsNamespace = "cloudflared"
  7. MetricsSubsystem = "orchestration"
  8. )
  9. var (
  10. configVersion = prometheus.NewGauge(
  11. prometheus.GaugeOpts{
  12. Namespace: MetricsNamespace,
  13. Subsystem: MetricsSubsystem,
  14. Name: "config_version",
  15. Help: "Configuration Version",
  16. },
  17. )
  18. )
  19. func init() {
  20. prometheus.MustRegister(configVersion)
  21. }