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

log/loki: lazy loading of cluster labels #1511

Merged
merged 2 commits into from
Dec 6, 2022
Merged

Conversation

corverroos
Copy link
Contributor

Adds lazy loaded cluster labels when pushing logs to loki so we can filter and query by node/cluster/network.

category: feature
ticket: #1509

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Base: 54.34% // Head: 54.20% // Decreases project coverage by -0.13% ⚠️

Coverage data is based on head (a2215a9) compared to base (0c59023).
Patch coverage: 63.88% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1511      +/-   ##
==========================================
- Coverage   54.34%   54.20%   -0.14%     
==========================================
  Files         149      149              
  Lines       19019    19063      +44     
==========================================
- Hits        10335    10333       -2     
- Misses       7285     7326      +41     
- Partials     1399     1404       +5     
Impacted Files Coverage Δ
app/log/config.go 63.39% <0.00%> (-4.23%) ⬇️
cmd/run.go 93.87% <ø> (ø)
cmd/bootnode.go 30.81% <20.00%> (-0.36%) ⬇️
app/log/loki/batch.go 75.00% <75.00%> (-3.58%) ⬇️
app/log/loki/client.go 66.08% <88.57%> (+6.68%) ⬆️
app/app.go 63.80% <100.00%> (-2.05%) ⬇️
app/vmock.go 72.53% <0.00%> (-3.11%) ⬇️
core/priority/prioritiser.go 59.67% <0.00%> (-2.89%) ⬇️
core/parsigdb/memory.go 48.09% <0.00%> (-1.53%) ⬇️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -33,7 +33,11 @@ import (
)

func TestLoki(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest: add golden json to this test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

little tricky to do this actually

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Dec 6, 2022
@obol-bulldozer obol-bulldozer bot merged commit 82250de into main Dec 6, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/loglabels branch December 6, 2022 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants