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

Support DaemonSet and StatefulSet in discovery and decoration #571

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

mariomac
Copy link
Contributor

Missing documentation (in another PR).

Addresses bug #562

We were assuming that instrumented applications were only deployed as Deployments, while they can be plain replicasets, or daemonsets or statefulsets.

This adds the following metadata fields: k8s.statefulset.name, k8s.daemonset.name and the following discovery arguments: k8s_owner_name, k8s_statefulset_name, k8s_daemonset_name (to be documented).

@mariomac mariomac added the bug Something isn't working label Jan 24, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2024

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (7c37178) 45.02% compared to head (f6fca33) 79.24%.
Report is 3 commits behind head on main.

Files Patch % Lines
pkg/internal/kube/owner.go 79.48% 8 Missing ⚠️
pkg/internal/discover/watcher_kube.go 71.42% 5 Missing and 1 partial ⚠️
pkg/internal/transform/k8s.go 81.25% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #571       +/-   ##
===========================================
+ Coverage   45.02%   79.24%   +34.22%     
===========================================
  Files          67       70        +3     
  Lines        5664     5889      +225     
===========================================
+ Hits         2550     4667     +2117     
+ Misses       2964      999     -1965     
- Partials      150      223       +73     
Flag Coverage Δ
integration-test 68.82% <53.84%> (?)
unittests 45.00% <67.03%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM! Amazing!

@mariomac mariomac merged commit 959bc86 into grafana:main Jan 25, 2024
5 checks passed
@mariomac mariomac deleted the owner-decoration branch January 25, 2024 08:33
mariomac added a commit to mariomac/beyla that referenced this pull request Jan 25, 2024
…a#571)

* Integration tests for daemonset and statefulset metadata decoration

* Support replicaset and daemonset decoration and discovery
mariomac added a commit that referenced this pull request Jan 25, 2024
…ckport) (#572)

* Support DaemonSet and StatefulSet in discovery and decoration (#571)

* Integration tests for daemonset and statefulset metadata decoration

* Support replicaset and daemonset decoration and discovery

* Prometheus exporter: add k8s_replicaset_name, k8s_daemonset_name and k8s_statefulset_name attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants