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

Merge sending logs through otel-collector #147

Merged
merged 14 commits into from
May 21, 2021
Merged

Merge sending logs through otel-collector #147

merged 14 commits into from
May 21, 2021

Conversation

jrcamp
Copy link
Contributor

@jrcamp jrcamp commented May 21, 2021

No description provided.

jrcamp and others added 12 commits May 4, 2021 12:56
This sends logs collected by fluentd to otelcol via fluentforward. There are
some limitations noted by TODOs that I will file issues to track but they
should not affect the common cases. It's mostly around configuring of
hec_exporter TLS settings.

It still attaches k8s metadata on the fluentd side as it uses various
annotations to construct source/sourcetype in some cases. May not be worth
trying to fix with move to filelog receiver.
* Remove hec token

* remove ingestHost, ingestPort, ingestProtocol

* add back extraEnvs for fluentd
- Fix changelog ordering
- Don't include fluentd configmap when agent not enabled
- Enable http-forwarder for all telemetry types since signalfx exporter
  sends metadata updates
@jrcamp jrcamp requested a review from dmitryax May 21, 2021 00:25
@jrcamp jrcamp requested review from a team as code owners May 21, 2021 00:25
* remove fluentforward from service (no longer configured in gateway)
* use <ingest>/v1/log for hec endpoint
@jrcamp jrcamp requested a review from dmitryax May 21, 2021 01:00
Copy link
Contributor

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

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

LGTM

- Removed `logsBackend`, configure `splunk_hec` exporter directly (#123)
- Removed `splunk.com/index` annotation for logs (#123)
- Removed `fluentd.config.indexFields` as all fields sent are indexed (#123)
- Removed `fluentforward` receiver from gateway (#127)
Copy link
Contributor

@rmfitzpatrick rmfitzpatrick May 21, 2021

Choose a reason for hiding this comment

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

Wonder if this was* desired overall since there may be other users than our td-agent? Maybe keep for now with a deprecation warning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems unlikely. Would rather not encourage its use. I've run into several issues with the receiver. They can always add to their own config.

container_id ${record.dig("docker","container_id")}
pod_uid ${record.dig("kubernetes","pod_id")}
node_name "#{ENV['K8S_NODE_NAME']}"
cluster_name {{ .Values.clusterName }}
Copy link
Contributor

Choose a reason for hiding this comment

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

why drop node and cluster names?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It'll get attached by the resource processor in the agent now.

@jrcamp jrcamp merged commit 358cd3f into main May 21, 2021
@jrcamp jrcamp deleted the otel-logs branch May 21, 2021 17:01
@dmitryax
Copy link
Contributor

🎉

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