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: Add counter promtail_batch_retries_total #2723

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

carlpett
Copy link
Contributor

@carlpett carlpett commented Oct 5, 2020

What this PR does / why we need it:
Currently there is only a metric for dropped batches. It'd be helpful to alert on things going wrong before there is data loss. This PR adds a counter on batch send retries.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

Signed-off-by: Calle Pettersson <calle@cape.nu>
@codecov-commenter
Copy link

Codecov Report

Merging #2723 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2723      +/-   ##
==========================================
- Coverage   61.36%   61.35%   -0.01%     
==========================================
  Files         173      173              
  Lines       13463    13465       +2     
==========================================
  Hits         8261     8261              
- Misses       4447     4449       +2     
  Partials      755      755              
Impacted Files Coverage Δ
pkg/promtail/client/client.go 77.37% <100.00%> (+0.33%) ⬆️
pkg/querier/queryrange/downstreamer.go 95.29% <0.00%> (-2.36%) ⬇️

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

This is great, thanks @carlpett!

@slim-bean slim-bean merged commit 426bac7 into grafana:master Oct 5, 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.

None yet

3 participants