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

support math functions in line_format and label_format #3434

Merged
merged 6 commits into from
Mar 16, 2021

Conversation

adityacs
Copy link
Contributor

@adityacs adityacs commented Mar 4, 2021

What this PR does / why we need it:
Add math functions to line_format and label_format.

Which issue(s) this PR fixes:
Fixes #2847, Fixes #2955

Checklist

  • Documentation added
  • Tests updated

@adityacs adityacs marked this pull request as draft March 4, 2021 15:36
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise this looks good. I think though we need something better for the doc. Either we document all additions, or we redirect to sprig by explaining what sub-set we support.

@adityacs adityacs marked this pull request as ready for review March 9, 2021 15:32

## add

> **Note:** Added in Loki 2.2.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this should be 2.2. We may have to change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is going to be 2.3

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena cyriltovena merged commit b1ea8ac into grafana:master Mar 16, 2021
cyriltovena added a commit to cyriltovena/loki that referenced this pull request Mar 19, 2021
cyriltovena added a commit that referenced this pull request Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow math on label_format expressions Adding Math functions to line_format
2 participants