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

[update-collection-v3] otelagent, otelcol, otelgateway configuration is lost during migration #445

Closed
andrzej-stencel opened this issue Jan 26, 2023 · 1 comment · Fixed by #449 or SumoLogic/sumologic-kubernetes-collection#2838
Labels
bug Something isn't working update-collection-v3

Comments

@andrzej-stencel
Copy link
Contributor

andrzej-stencel commented Jan 26, 2023

Version: v2.17.0

According to this mention in chart v3 changelog:

  • move parameters from otelagent.* to otelcolInstrumentation.*
  • move parameters from otelgateway.* to tracesGateway.*
  • move parameters from otelcol.* to tracesSampler.*

I would assume any keys under the otelagent key - like otelagent.daemonset.* - will be migrated under otelcolInstrumentation key. This does not seem to be the case - the values are simply dropped.

I know there's a warning displayed in command output, but it's hardly helpful (especially combined with #435):

WARNING! Tracing config migrated to v3, please check the output file. For more details see documentation: https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/docs/v3-migration-doc.md#tracinginstrumentation-changes

The link in this warning is actually outdated.
Other than that, the docs at https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/v3.0.0/docs/v3-migration-doc.md#tracing-migration don't mention the need to manually migrate any specific properties, like otelagent.daemonset.resources for instance.

Input:

sumologic:
  accessId: xxx
  accessKey: yyy

otelagent:
  daemonset:
    resources:
      requests:
        memory: 500Mi
        cpu: 100m
    tolerations:
      - effect: NoSchedule
        operator: Exists
    priorityClassName: system-node-critical

otelcol:
  deployment:
    resources:
      requests:
        memory: 123Mi
        cpu: 456m

otelgateway:
  deployment:
    resources:
      requests:
        memory: 789Mi
        cpu: 987m

Expected output:

sumologic:
  accessId: xxx
  accessKey: yyy

otelcolInstrumentation:
  daemonset:
    resources:
      requests:
        memory: 500Mi
        cpu: 100m
    tolerations:
      - effect: NoSchedule
        operator: Exists
    priorityClassName: system-node-critical

tracesSampler:
  deployment:
    resources:
      requests:
        memory: 123Mi
        cpu: 456m

tracesGateway:
  deployment:
    resources:
      requests:
        memory: 789Mi
        cpu: 987m

Actual output:

sumologic:
  accessId: xxx
  accessKey: yyy
@andrzej-stencel andrzej-stencel added bug Something isn't working update-collection-v3 labels Jan 26, 2023
@andrzej-stencel andrzej-stencel changed the title [update-collection-v3] otelagent configuration lost during migration [update-collection-v3] otelagent, otelcol configuration is lost during migration Jan 26, 2023
@andrzej-stencel andrzej-stencel changed the title [update-collection-v3] otelagent, otelcol configuration is lost during migration [update-collection-v3] otelagent, otelcol, otelgateway configuration is lost during migration Jan 26, 2023
@mat-rumian
Copy link
Contributor

In case of

I would assume any keys under the otelagent key - like otelagent.daemonset.* - will be migrated under otelcolInstrumentation key. This does not seem to be the case - the values are simply dropped.

we moved otelagent DaemonSet to be otelcolInstrumentation StatefulSet that's why we don't migrate it. Information about it is present in the migration doc but have to admit, the visibility is not good. Will update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working update-collection-v3
Projects
None yet
2 participants