-
Notifications
You must be signed in to change notification settings - Fork 183
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
feat(logs): Changing the default logs metadata provider to otel #2621
Conversation
48a806f
to
578b009
Compare
"cluster": "kubernetes", | ||
"namespace": internal.LogsGeneratorName, | ||
"pod_labels_app": internal.LogsGeneratorName, | ||
"container": internal.LogsGeneratorName, | ||
"deployment": internal.LogsGeneratorName, | ||
"replicaset": "", | ||
"namespace_id": "", | ||
"pod": "", | ||
"pod_id": "", | ||
"container_id": "", | ||
"host": "", | ||
"master_url": "", | ||
"node": "", | ||
"_sourceName": "", | ||
"_sourceCategory": "", | ||
"_sourceHost": "", |
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.
Why do we removed some of the expected metadata?
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.
the expected metadata changes for otelcol, it has an additional entry and a few other changes like below:
"_collector": "kubernetes"
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.
I'm curious what happened with _source*
, these are pretty crucial fields and we should have it in sumo 😬
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.
got it, I have added those _source*
fields to the tests and pushed the changes, and the tests do pass.
- hostPath: | ||
path: /run/log/journal | ||
type: DirectoryOrCreate | ||
name: run-log-journal |
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.
name: run-log-journal | |
name: run-log-journal | |
}). | ||
Feature() | ||
|
||
featMetrics := features.New("metrics"). |
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.
If this is a logs test (as name implies), then why do we test the metrics?
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.
that's a good point I'll remove the metrics tests and only keep the logs tests.
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.
I thought a bit more about the test changes, and I think this will be much simpler if we only changes the values.yaml for the tests for now. We can reorganize the tests after we'd changes all the defaults.
@swiatekm-sumo it looks like we need changes like these in the tests (outside values.yaml for the tests) when we change the logs default to otelcol, for the tests to pass. |
578b009
to
04754f1
Compare
What I meant was that you should instead change this config file: https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/tests/integration/values/values_helm_default_fluentd_metadata.yaml to use fluentd as the provider. |
04754f1
to
4b1b1d9
Compare
4b1b1d9
to
6ad07d1
Compare
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.
LGTM 👍
Description
Checklist
Testing performed