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

Add metrics for IP-to-services lookups #997

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Add metrics for IP-to-services lookups #997

merged 1 commit into from
Dec 5, 2022

Conversation

krdln
Copy link
Contributor

@krdln krdln commented Dec 5, 2022

Description of change

Adds a service_lookups_total metric which tracks IP-to-services lookups (via
entity cache). To differentiate between successful and failed lookups,
status=OK/Error label can be used.

Resolves #882

Checklist
  • Tested in playground or other setup

This change is Reviewable

@krdln krdln marked this pull request as ready for review December 5, 2022 11:03
@krdln krdln requested review from a team as code owners December 5, 2022 11:03
Copy link
Contributor

@kwapik kwapik left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @krdln)

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Base: 42.87% // Head: 42.84% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (d657c1f) compared to base (efc6364).
Patch coverage: 21.95% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #997      +/-   ##
==========================================
- Coverage   42.87%   42.84%   -0.03%     
==========================================
  Files         295      296       +1     
  Lines       21308    21339      +31     
==========================================
+ Hits         9135     9143       +8     
- Misses      11615    11638      +23     
  Partials      558      558              
Impacted Files Coverage Δ
pkg/policies/flowcontrol/provide.go 0.00% <0.00%> (ø)
pkg/policies/flowcontrol/servicegetter/metrics.go 16.66% <16.66%> (ø)
...olicies/flowcontrol/servicegetter/servicegetter.go 26.66% <31.25%> (+5.61%) ⬆️

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.

@krdln krdln merged commit bc2d9cf into main Dec 5, 2022
@krdln krdln deleted the sanity-metrics branch December 5, 2022 11:27
hdkshingala pushed a commit that referenced this pull request Dec 5, 2022
Adds a `service_lookups_total` metric which tracks IP-to-services lookups (via
entity cache). To differentiate between successful and failed lookups,
status=OK/Error label can be used.

Resolves #882
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.

Sanity metrics
2 participants