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

Set JournalTarget Priority value to keyword #2087

Merged

Conversation

adityacs
Copy link
Collaborator

@adityacs adityacs commented May 17, 2020

What this PR does / why we need it:
Set JournalTarget Priority value to keyword

Which issue(s) this PR fixes:
Fixes #2084

Checklist

  • Documentation added
  • Tests updated

@cyriltovena
Copy link
Contributor

Looks good I think we should just add another internal label that can be relabeled and keep the current one instead of rewriting it, could be __journal__priority_string.

Someone may prefer the number ! That would require a quick doc update for this new internal label.

Should be simple WDYT?

@adityacs
Copy link
Collaborator Author

Yeah, makes sense to me. Will make the change

@adityacs adityacs force-pushed the 2084_set_journaltarget_symbolic_priority branch 2 times, most recently from 476f73f to e2f03a2 Compare May 22, 2020 17:28
@codecov-commenter
Copy link

codecov-commenter commented May 22, 2020

Codecov Report

Merging #2087 into master will decrease coverage by 0.03%.
The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2087      +/-   ##
==========================================
- Coverage   61.24%   61.20%   -0.04%     
==========================================
  Files         146      146              
  Lines       11187    11208      +21     
==========================================
+ Hits         6851     6860       +9     
- Misses       3788     3801      +13     
+ Partials      548      547       -1     
Impacted Files Coverage Δ
pkg/promtail/targets/journaltarget.go 50.32% <28.57%> (-3.41%) ⬇️
pkg/logql/evaluator.go 90.69% <0.00%> (-0.59%) ⬇️
pkg/promtail/targets/filetarget.go 70.48% <0.00%> (+1.80%) ⬆️
pkg/promtail/targets/tailer.go 76.13% <0.00%> (+2.27%) ⬆️

@adityacs adityacs force-pushed the 2084_set_journaltarget_symbolic_priority branch from e2f03a2 to ea9e972 Compare May 23, 2020 15:45
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 ff0a4c3 into grafana:master May 26, 2020
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.

Promtail to set journal target symbolic priority
3 participants