prometheus/rules
Filip Petkovski 10a82f87fd
Enable reusing memory when converting between histogram types
The 'ToFloat' method on integer histograms currently allocates new memory
each time it is called.

This commit adds an optional *FloatHistogram parameter that can be used
to reuse span and bucket slices. It is up to the caller to make sure the
input float histogram is not used anymore after the call.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2023-12-08 10:22:59 +01:00
..
fixtures fixes yamllint errors 2021-06-12 12:47:47 +02:00
alerting.go ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
alerting_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
group.go Address PR feedback 2023-10-31 09:56:05 +11:00
manager.go ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
manager_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
origin.go Panic if rule type was not expected 2023-01-20 10:27:50 +02:00
origin_test.go lint: Adjust to the lint warnings raised by current versions of golint-ci 2023-04-19 17:10:10 +02:00
recording.go labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00
recording_test.go promql: allow tests to be imported (#12050) 2023-08-18 20:48:59 +02:00
rule.go Refactoring manager.go into separate concerns 2023-10-21 11:11:11 +02:00