github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/protocol/v1/v1.go (about) 1 // Copyright (c) 2022, R.I. Pienaar and the Choria Project contributors 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 package v1 6 7 import ( 8 "github.com/choria-io/go-choria/protocol/stats" 9 ) 10 11 const promVersion = "1" 12 13 var ( 14 protocolErrorCtr = stats.ProtocolErrorCtr.WithLabelValues(promVersion) 15 invalidCtr = stats.InvalidCtr.WithLabelValues(promVersion) 16 validCtr = stats.ValidCtr.WithLabelValues(promVersion) 17 badJsonCtr = stats.BadJsonCtr.WithLabelValues(promVersion) 18 )