Closed YaoZengzeng closed 5 years ago
@brian-brazil PTAL
Why do you need this?
@krasi-georgiev Just fix issue prometheus/prometheus#5790
@brian-brazil Updated, naming is always hard for me 😄
But as @krasi-georgiev said, I'm also wondering if this metric is really necessary.
It's generally useful to have metrics like this for flags that set limits.
Yes I understand the use case, but seems a bit strange to add metrics that are constants like - version numbers, config flags etc. Anyway if @brian-brazil is ok with this feel free to merge.
Config flags like this which are limits are useful for alerting (though this specific one isn't quite, as retention handling is automatic).
Can you please add a test for this metric as well to ensure that the value is the same as the set value when opening a db.
look at the db size tests for some ideas.
@brian-brazil @krasi-georgiev PTAL
:+1:
@brian-brazil @krasi-georgiev Any new comments?
nothing on my side LGTM
Signed-off-by: YaoZengzeng yaozengzeng@zju.edu.cn
fixes: prometheus/prometheus#5790