Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Graphite web identity function #46

Closed
carrieedwards opened this issue Aug 2, 2022 · 0 comments
Closed

Add support for Graphite web identity function #46

carrieedwards opened this issue Aug 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@carrieedwards
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
The identity() function is implemented in Graphite web, but is missing from CarbonAPI. In order to enable users to be able to use the identity() function, it needs to be implemented in CarbonAPI.

Describe the solution you'd like
The identity() function should be implemented in CarbonAPI, with the same functionality as the Graphite web function. The description of the function is as follows:

identity(name)
Identity function: Returns datapoints where the value equals the timestamp of the datapoint. Useful when you have another series where the value is a timestamp, and you want to compare it to the time of the datapoint, to render an age

Example:

&target=identity("The.time.series")
This would create a series named “The.time.series” that contains points where x(t) == t.

Additional context
Tests should be added to verify that the functionality matches that of the Graphite web identity() function.

@carrieedwards carrieedwards added the enhancement New feature or request label Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant