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

Record push metrics on successful push to Loki #54

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

marc-sensenich
Copy link
Contributor

Move the recording of metrics related to pushing a batch to Loki from the creation of the batch to after the successful push of a batch to have the metric better align with the description.

Signed-off-by: Marc Sensenich github@marc-sensenich.com

@CLAassistant
Copy link

CLAassistant commented Nov 9, 2022

CLA assistant check
All committers have signed the CLA.

@marc-sensenich
Copy link
Contributor Author

@chaudum / @mstoykov friendly bump on this PR. I believe it may also reduce the difference between loki_distributor_lines_received_total and loki_client_lines from #44

Copy link
Collaborator

@chaudum chaudum left a comment

Choose a reason for hiding this comment

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

Hey @marc-sensenich thanks for the fix. I suggested a small change, but overall LGTM!

client.go Outdated Show resolved Hide resolved
@chaudum
Copy link
Collaborator

chaudum commented Nov 30, 2022

@chaudum / @mstoykov friendly bump on this PR. I believe it may also reduce the difference between loki_distributor_lines_received_total and loki_client_lines from #44

Sorry for the late response.

Move the recording of metrics related to pushing a batch to Loki from
the creation of the batch to after the successful push of a batch to
have the metric better align with the description.

Signed-off-by: Marc Sensenich <github@marc-sensenich.com>
@marc-sensenich
Copy link
Contributor Author

@chaudum thank you for following up on the review, just wanted to give a ping since notifications can get missed in all of the others we get throughout the day

@chaudum chaudum enabled auto-merge (rebase) December 22, 2022 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants