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

Promtail: force the log level on any Loki Push API target servers to match Promtail's log level. #2475

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

slim-bean
Copy link
Collaborator

I don't love this solution, but I also don't love passing the log level through all the constructors just for the push target.
This seemed a bit better?

@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2020

Codecov Report

Merging #2475 into master will decrease coverage by 0.02%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2475      +/-   ##
==========================================
- Coverage   62.97%   62.95%   -0.03%     
==========================================
  Files         162      162              
  Lines       13988    13992       +4     
==========================================
- Hits         8809     8808       -1     
- Misses       4494     4497       +3     
- Partials      685      687       +2     
Impacted Files Coverage Δ
pkg/promtail/promtail.go 65.30% <25.00%> (-3.59%) ⬇️
pkg/logql/evaluator.go 92.47% <0.00%> (-0.41%) ⬇️

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

lgtm

@owen-d owen-d merged commit 7418d42 into master Aug 10, 2020
@owen-d owen-d deleted the push-api-log-level branch August 10, 2020 20:03
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
* Regex set optimisation when looking series in ingester

Similar to cortexproject/cortex#2446

Super useful for templated grafana dashboards which send matchers such
as =~"a|b|c|d|e"

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>

* Add CHANGELOG entry

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>

* Add benchmark for set optimisation

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
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.

None yet

3 participants