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

New component: k8sobjectsreceiver #14185

Closed
2 tasks
hvaghani221 opened this issue Sep 19, 2022 · 6 comments
Closed
2 tasks

New component: k8sobjectsreceiver #14185

hvaghani221 opened this issue Sep 19, 2022 · 6 comments
Labels
Accepted Component New component has been sponsored

Comments

@hvaghani221
Copy link
Member

hvaghani221 commented Sep 19, 2022

The purpose and use-cases of the new component

We need a receiver to collect the Kubernetes objects and send them as log data(similar to fluent-plugin-kubernetes-objects fluentd plugin).

Example configuration for the component

receivers:
  k8sobjects: 
    objects:
        - name: <resource-name>
          mode: pull/watch
          interval: <interval> # Required if pull mode
          label_selector: <label selector>
          field_selector: <field selector>
          namespaces: [<namespace>,...] # all namespace if empty
        ...
receivers:
  k8sobjects:
    objects:
      - name: pods
        mode: pull
        namespace: [default]
        interval: 30s
      - name: event
        mode: watch
      - name: deployments
        mode: pull
        interval: 30s
        label_selector: app=myapp

Telemetry data types supported

logs

Is this a vendor-specific component?

  • This is a vendor-specific component
  • If this is a vendor-specific component, I am proposing to contribute this as a representative of the vendor.

Sponsor (optional)

@dmitryax

Additional context

Design doc: https://docs.google.com/document/d/13ZESiUe0IP73sMNHQT5ZmWo9BPPP_1sy385QVIgNVkw

@hvaghani221 hvaghani221 added the needs triage New item requiring triage label Sep 19, 2022
@hvaghani221 hvaghani221 changed the title New component: k8sobjectreceiver New component: k8sobjectsreceiver Sep 19, 2022
@hvaghani221
Copy link
Member Author

@dmitryax should I add you as a sponsor?

@codeboten codeboten added Sponsor Needed New component seeking sponsor and removed needs triage New item requiring triage labels Sep 19, 2022
@jpkrohling
Copy link
Member

This looks interesting. While I can't commit as a sponsor, I can volunteer as a "second-in-line" approver.

@dmitryax
Copy link
Member

I can sponsor the component

@dmitryax dmitryax added Accepted Component New component has been sponsored and removed Sponsor Needed New component seeking sponsor labels Sep 26, 2022
@dmitryax
Copy link
Member

@harshit-splunk I would recommend adopting the new Events API that was introduced in open-telemetry/opentelemetry-specification#2676

I believe it doesn't conflict with your design doc, we just need to add event.domain and event.name as defined in https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/semantic_conventions/events.md

@scheler
Copy link

scheler commented Oct 11, 2022

@harshit-splunk @dmitryax is this supposed to include pod logs? What does pull of pods and deployment in your example configuration refer to?

@hvaghani221
Copy link
Member Author

@scheler It doesn't collect pod logs. It collects data from Kubernetes API Server. It will be the same as kubectl get pod <some-pod> -oyaml

Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Component New component has been sponsored
Projects
None yet
Development

No branches or pull requests

5 participants