mirror of https://github.com/coder/coder.git
chore: improve syntax in metrics collector (#7085)
This commit is contained in:
parent
63af4c6ed1
commit
ad2353c3d8
|
@ -57,8 +57,7 @@ func (v *CachedGaugeVec) Collect(ch chan<- prometheus.Metric) {
|
||||||
|
|
||||||
func (v *CachedGaugeVec) WithLabelValues(operation VectorOperation, value float64, labelValues ...string) {
|
func (v *CachedGaugeVec) WithLabelValues(operation VectorOperation, value float64, labelValues ...string) {
|
||||||
switch operation {
|
switch operation {
|
||||||
case VectorOperationAdd:
|
case VectorOperationAdd, VectorOperationSet:
|
||||||
case VectorOperationSet:
|
|
||||||
default:
|
default:
|
||||||
panic("unsupported vector operation")
|
panic("unsupported vector operation")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue