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

[opentelemetry] add templating for ceph and kvm #557

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

timojohlo
Copy link
Member

Pull Request Details

This PR adds a functionality to enable/disable common log configuration for logs for Ceph and KVM.
Both logtypes can be disabled/enabled in the PluginDefinition. In case of enabling, the logs-collector.yaml will be enriched by KVM/Ceph specific labels, parsing and defined pipelines.

The goal is to reduces the complexity of the logs-collector configuration and provide standard log configuration for common scenarios.

Corresponding Roadmap issue: #515

@timojohlo timojohlo added the otel OpenTelemetry collector label Dec 17, 2024
@timojohlo timojohlo added the logs Opensearch, Logshipper, Data Prepper, and more label Dec 17, 2024
@timojohlo timojohlo marked this pull request as ready for review December 18, 2024 06:57
@timojohlo timojohlo requested a review from a team as a code owner December 18, 2024 06:57
Copy link
Contributor

@viennaa viennaa left a comment

Choose a reason for hiding this comment

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

I like the splitting of the main file to make it more clean and easier to use.

Two minor things inside.

Comment on lines +1 to +3
{{- define "kvm.labels" }}

{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{{- define "kvm.labels" }}
{{- end }}

Is this needed?

Comment on lines +197 to +198
- set(attributes["network.protocol.name"], ConvertCase(attributes["network.protocol.name"], "lower")) where attributes["network.protocol.name"] != nil
- set(attributes["config.parsed"], "ingress-nginx") where attributes["client.address"] != nil
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this needed for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logs Opensearch, Logshipper, Data Prepper, and more otel OpenTelemetry collector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants