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

Improve promtail alerts to retain the namespace label #2976

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

beorn7
Copy link
Contributor

@beorn7 beorn7 commented Nov 23, 2020

What this PR does / why we need it:

It retains the namespace labels on alerts, which is generally useful, but concretely used for alert routing at Grafana Labs production.

Which issue(s) this PR fixes:

Misdirected pages at Grafana Labs.

Special notes for your reviewer:

The PromtailFileMissing should actually work in this simplified
form. Please let me know if I'm missing something.

The `PromtailFileMissing` should actually work in this simplified
form. Please let me know if I'm missing something.
@beorn7
Copy link
Contributor Author

beorn7 commented Nov 23, 2020

@pstibrany this is the reason why today's pager storm went to infra and not to you. (o:

@codecov-io
Copy link

Codecov Report

Merging #2976 (d87cafa) into master (14a5e22) will decrease coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2976      +/-   ##
==========================================
- Coverage   61.86%   61.74%   -0.13%     
==========================================
  Files         182      182              
  Lines       14870    14870              
==========================================
- Hits         9200     9182      -18     
- Misses       4822     4840      +18     
  Partials      848      848              
Impacted Files Coverage Δ
pkg/promtail/positions/positions.go 46.80% <0.00%> (-11.71%) ⬇️
pkg/querier/queryrange/downstreamer.go 95.29% <0.00%> (-2.36%) ⬇️
pkg/promtail/targets/file/filetarget.go 64.08% <0.00%> (-2.12%) ⬇️
pkg/logql/evaluator.go 91.24% <0.00%> (-0.41%) ⬇️

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 e14463b into master Nov 24, 2020
@cyriltovena cyriltovena deleted the beorn7/mixin branch November 24, 2020 08:51
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.

3 participants