feat(operator)!: Provide default OTLP attribute configuration - #14410
Conversation
… openshift-logging tenancy - Extend API for default OTLP label set - Disable autodetection of service.name - Update non-otlp config tests - Simplify OTLP attribute configuration - Remove validator code - Content-assist for runtime config - Add openshift-logging defaults - Only add ignore_defaults to config if needed - Use Loki default OTLP attributes when none are specified
3811195 to
3a43315
Compare
80c45e9 to
207d3bd
Compare
periklis
left a comment
There was a problem hiding this comment.
quick first pass, testing this right now on my cluster.
Question: How do we define the drop action?
| ResourceAttributes: []config.OTLPAttribute{ | ||
| { | ||
| Action: config.OTLPAttributeActionStreamLabel, | ||
| Regex: "openshift\\.labels\\..+", |
There was a problem hiding this comment.
Question: What is considered an OpenShift Label here?
There was a problem hiding this comment.
I don't think there are any of these labels at the moment. This might be an extension point. I meant to write a question about this in the data-model PR, but I forgot. The attribute configuration itself is from the data-model repository.
|
Updated with the changes discussed on Friday. ✔️ |
periklis
left a comment
There was a problem hiding this comment.
Overall LGTM just one question to clarify the non-openshift mode handling. Besides that I suggest to create a follow up PR for a documentation page explaining the append as well as the per-tenant full-override workings of the OTLPSpec. WDYT?

What this PR does / why we need it:
The main purpose of this PR is to provide a default set of OTLP attributes that will be persisted when using LokiStack in
openshift-loggingtenancy mode.This PR also changes the API for specifying an OTLP attribute configuration in LokiStack to make it easier to use.
Which issue(s) this PR fixes:
LOG-6147
Special notes for your reviewer:
Checklist
CONTRIBUTING.mdguide (required)