Repository navigation
feat: add multiply function and numeric modifiers support to JSON key… - #81
Conversation
PR Reviewer Guide 🔍(Review updated until commit 4c9fb5f)Here are some key observations to aid the review process:
✅ Resolved findingscmd/mackerel-plugin-jsonl/reader.go:192-193Numeric Overflow A finite factor can still overflow when applied to a value. For example, cmd/mackerel-plugin-jsonl/jsonkey.go:140Infinite Output A finite factor can still produce an infinite result: cmd/mackerel-plugin-jsonl/jsonkey.go:135-138Numeric Overflow A finite factor can still produce a non-finite metric: cmd/mackerel-plugin-jsonl/jsonkey.go:131-135Invalid Factors
|
Benchmark ComparisonBase: BenchmarkMainParse results |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Persistent review updated to latest commit 6cb309a |
PR Code Suggestions ✨No code suggestions found for the PR. |
|
Persistent review updated to latest commit 5847c97 |
|
Persistent review updated to latest commit 389e307 |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
|
Persistent review updated to latest commit 4c9fb5f |
PR Code Suggestions ✨No code suggestions found for the PR. |



User description
… parsing
PR Type
Enhancement, Tests, Documentation
Description
Add
multiply(factor)to JSON-path modifiers.Scale count, group-by, and percentile output.
Reject invalid or non-finite multiply factors.
Test and document numeric modifier behavior.
Diagram Walkthrough
File Walkthrough
jsonkey.go
Parse and validate numeric multiplication modifierscmd/mackerel-plugin-jsonl/jsonkey.go
initializers.
multiply(factor)parsing with finite-number validation.reader.go
Apply numeric modifiers to emitted metricscmd/mackerel-plugin-jsonl/reader.go
jsonkey_test.go
Test numeric modifier parsing and applicationcmd/mackerel-plugin-jsonl/jsonkey_test.go
README.md
Document multiplication and aggregator modifier supportREADME.md
multiply(factor)and its supported aggregators.