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

Missing metrics using OpenTelemetry output #4595

Open
davidsaraiva opened this issue Feb 25, 2025 · 0 comments
Open

Missing metrics using OpenTelemetry output #4595

davidsaraiva opened this issue Feb 25, 2025 · 0 comments
Assignees

Comments

@davidsaraiva
Copy link

Brief summary

I recently configured K6, using k6-operator, to push test run metrics in the OpenTelemetry format to Datadog. We were previously using StatsD.
My configuration is pretty simple:

TestRun CRD spec:

...
arguments: --tag test_run_id=otel_test_run  --out experimental-opentelemetry
runner:
    env:
      - name: DD_AGENT_HOST
        valueFrom:
          fieldRef:
            fieldPath: status.hostIP
      - name: K6_OTEL_METRIC_PREFIX
        value: "k6."
      - name: K6_OTEL_GRPC_EXPORTER_INSECURE
        value: "true"
      - name: K6_OTEL_GRPC_EXPORTER_ENDPOINT
        value: "$(DD_AGENT_HOST):4317"
...

I am receiving metrics in Datadog but not the sufficient ones to populate the current provided K6 Dashboard, I'm missing some metrics like:

  • k6.http_req_duration.95percentile
  • k6.http_req_duration.max
  • k6.http_req_sending.95percentile
  • ...

Am I missing some kind of configuration?

The Datadog K6 integration tile is in version 1.0.0.

k6 version

v0.56.0

OS

Arch Linux

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Run K6 with provided arguments and environment variables and collect OTEL metrics.

Expected behaviour

Here are some metrics that we had before using StatsD (not all of them are displayed):
Image

Actual behaviour

These are the metrics I'm currently receiving, in this example I had a different prefix.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants