this is mostly copied from counter
| 13 | |
| 14 | // this is mostly copied from counter |
| 15 | type gauge struct { |
| 16 | //nolint unused |
| 17 | metric |
| 18 | |
| 19 | metricName string |
| 20 | |
| 21 | // seriesMtx is used to sync modifications to the map, not to the data in series |
| 22 | seriesMtx sync.RWMutex |
| 23 | series map[uint64]*gaugeSeries |
| 24 | seriesDemand *Cardinality |
| 25 | |
| 26 | lifecycler Limiter |
| 27 | |
| 28 | externalLabels map[string]string |
| 29 | } |
| 30 | |
| 31 | type gaugeSeries struct { |
| 32 | labels labels.Labels |
nothing calls this directly
no outgoing calls
no test coverage detected