Uploaded image for project: 'Observability Documentation'
  1. Observability Documentation
  2. OBSDOCS-888

[enterprise-4.14] Issue in file otel/otel-forwarding.adoc

XMLWordPrintable

    • OBSDOCS (Mar 25 - Apr 15) #251

      Description of problem:

          The tracegen job mentioned in Tip section (at the bottom of the page https://docs.openshift.com/container-platform/4.14/otel/otel-forwarding.html) has been deprecated. It should be replaced with telemetrygen job as mentioned in https://developers.redhat.com/articles/2023/08/01/how-deploy-new-grafana-tempo-operator-openshift#deploying_the_tempo_operator_is_simple
      
      Running the tracegen job throws below warning message in pod logs:
      WARN	src/main.go:54	tracegen has been deprecated, use github.com/open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen instead

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          Always

      Steps to Reproduce:

          1. Run the tracegen job given in https://docs.openshift.com/container-platform/4.14/otel/otel-forwarding.html
          2. The pod never comes up.
          3. The log in pod shows a warning message: tracegen has been deprecated, use github.com/open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen instead     

      Actual results:

      apiVersion: batch/v1
      kind: Job
      metadata:
        name: tracegen
      spec:
        template:
          spec:
            containers:
              - name: tracegen
                image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/tracegen:latest
                command:
                  - "./tracegen"
                args:
                  - -otlp-endpoint=otel-collector:4317
                  - -otlp-insecure
                  - -duration=30s
                  - -workers=1
            restartPolicy: Never
        backoffLimit: 4

      Expected results:

      apiVersion: batch/v1
      kind: Job
      metadata:
        name: telemetrygen
        namespace: observability
        labels:
          app: telmeetrygen
      spec:
        ttlSecondsAfterFinished: 30
        template:
          spec:
            restartPolicy: OnFailure
            containers:
            - name: telemetrygen
              image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.74.0
              args: [traces, --otlp-endpoint=otel-collector:4317, --otlp-insecure, --duration=240s, --rate=4] 

      Additional info:

          

            rhn-support-mleonov Max Leonov
            rh-ee-asaket Ashish Saket
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: