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

fix #650, add db_keys_cached gauge. #656

Merged
merged 11 commits into from
Jun 9, 2022
Merged

Conversation

vixns
Copy link
Contributor

@vixns vixns commented May 31, 2022

No description provided.

@coveralls
Copy link

coveralls commented May 31, 2022

Pull Request Test Coverage Report for Build 1572

  • 12 of 14 (85.71%) changed or added relevant lines in 2 files are covered.
  • 23 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 91.975%

Changes Missing Coverage Covered Lines Changed/Added Lines %
exporter/info.go 10 12 83.33%
Files with Coverage Reduction New Missed Lines %
exporter/exporter.go 23 94.61%
Totals Coverage Status
Change from base Build 1549: -0.1%
Covered Lines: 1788
Relevant Lines: 1944

💛 - Coveralls

@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #656 (4e5a769) into master (f72af6d) will decrease coverage by 0.26%.
The diff coverage is 78.57%.

@@            Coverage Diff             @@
##           master     #656      +/-   ##
==========================================
- Coverage   88.24%   87.97%   -0.27%     
==========================================
  Files          16       16              
  Lines        1922     1938      +16     
==========================================
+ Hits         1696     1705       +9     
- Misses        152      156       +4     
- Partials       74       77       +3     
Impacted Files Coverage Δ
exporter/info.go 95.12% <75.00%> (-0.69%) ⬇️
exporter/exporter.go 91.52% <100.00%> (-0.66%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@oliver006
Copy link
Owner

Thanks for the PR @vixns !
Can you please fix the linting issue and see if you can bump the test coverage a bit? Thanks!

exporter/info.go Outdated Show resolved Hide resolved
@oliver006
Copy link
Owner

There's a coverage check warning here: https://github.com/oliver006/redis_exporter/pull/656/files#diff-01814cc33b1a90b54048d89aaf89507891e8dc68a953a859cdb3b7985b3e906bR110

Which means that none of the tests emit the cached_key metrics.
Did you verify this is working by running it locally? One of the tests should be hitting a KeyDB instance so not clear why this is not covered.
Just want to make sure this is working.

@vixns
Copy link
Contributor Author

vixns commented Jun 6, 2022

There's a coverage check warning here: https://github.com/oliver006/redis_exporter/pull/656/files#diff-01814cc33b1a90b54048d89aaf89507891e8dc68a953a859cdb3b7985b3e906bR110

Which means that none of the tests emit the cached_key metrics. Did you verify this is working by running it locally? One of the tests should be hitting a KeyDB instance so not clear why this is not covered. Just want to make sure this is working.

Tested with keydb 6.3.1,

@oliver006
Copy link
Owner

Ah, I think I have an idea what's going on.
Currently, KeyDB instances for tests are using the rather old version 5.3.0 and that might not expose/have the cached key data.

Can you bump that please in the .drone and contrib/docker-compose to 6.3.0 ?

Thanks!

Copy link
Owner

@oliver006 oliver006 left a comment

Choose a reason for hiding this comment

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

🚀

@oliver006 oliver006 merged commit 3e7d754 into oliver006:master Jun 9, 2022
@oliver006
Copy link
Owner

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.

3 participants