-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
derived metrics: extend some unary functions, improved error reporting
Most of this changes delta(x), rate(x) and instant(x). Formerly x was restricted to a metric name, but now x may be an arbitrary expression. The restriction was simply guilt by association: the other unary functions like defined(x), sum(x), min(x), count(x), ... all make sense for a single metric (which may be set-valued), but are not needed for the unary functions delta(x), rate(x) and instant(x). The code change was not difficult (yacc is a wonderful invention). The man page changes and QA were more challenging. Specifically this allows: delta(sum(x)) which fixes Marko's RFE at #1991. Also there was some flakey error reporting where some errors at bind-time were not being reported at all, unless -Dderive was in play.
- Loading branch information
Showing
15 changed files
with
817 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.