-
Notifications
You must be signed in to change notification settings - Fork 114
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 support for pod matching based on labels #694
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #694 +/- ##
===========================================
- Coverage 76.86% 33.52% -43.34%
===========================================
Files 97 124 +27
Lines 8008 9288 +1280
===========================================
- Hits 6155 3114 -3041
- Misses 1512 5995 +4483
+ Partials 341 179 -162
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! Tank you for your valuable contribution.
The code is clean and tests are correct.
There are just a couple of minor issues in the documentation. Will wait for them to be addressed, plus an approval from our docs team before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with the Vale fixes suggested.
0f97fa5
to
94a5660
Compare
This change adds a new selector property `k8s_pod_labels` to the services configuration. This selector property will limit the instrumentation to the applications running in the Pods having labels with keys matching the provided value as regular expression.
94a5660
to
18e8cc4
Compare
* Add support for pod matching based on labels This change adds a new selector property `k8s_pod_labels` to the services configuration. This selector property will limit the instrumentation to the applications running in the Pods having labels with keys matching the provided value as regular expression. * lint: rename Env var to Environment variable as recommended by Vale
This change adds a new selector property
k8s_pod_labels
to the services configuration. This selector property will limit the instrumentation to the applications running in the Pods having labels with matching keys and values.Addresses #691
Please let me know what you think and whether we can improve the implementation.