mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
3620d6f05e
increase() and rate() don't seem to assume a previous value of 0 when a vector gets a first value for a label. you would think that an increase() on a first-value mox_panic_total{"..."}=1 would return 1, and similar for rate(), but that doesn't appear to be the behaviour. so we just explicitly initialize the count to 0 for each possible label value. mox has more vector metrics, but panics feels like the most important, and it's too much code to initialize them all, for all combinations of label values. there is probably a better way that fixes this for all cases... |
||
---|---|---|
.. | ||
alignment.go | ||
analyze.go | ||
dnsbl.go | ||
dsn.go | ||
error.go | ||
fuzz_test.go | ||
limitwriter.go | ||
mx.go | ||
parse.go | ||
parse_test.go | ||
rejects.go | ||
reputation.go | ||
reputation_test.go | ||
server.go | ||
server_test.go |