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

The 'browser_http_req_failed' metric is not exported to Prometheus. #1351

Open
Hongwei999 opened this issue May 27, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Hongwei999
Copy link

Brief summary

After launching any k6-browser script using the following container:

- name: k6 image: grafana/k6:0.50.0-with-browser resources: limits: memory: '13000Mi' requests: cpu: '500m' memory: '13000Mi' securityContext: runAsUser: 0 command: [ "sh", "-c" ] args: - | k6 run ./${ parameters.file_name } --out experimental-prometheus-rw --tag testid=${ test_tag } --tag tipoPdr=${ tipo_Pdr } --tag name_app=${ name } exit 0 workingDir: /temp-repo-pdr/k6/ env: - name: K6_PROMETHEUS_RW_SERVER_URL value: 'http://myPrometheus/api/v1/write' - name: K6_PROMETHEUS_RW_TREND_STATS value: p(90),p(95),p(99),min,max,avg,count - name: K6_PROMETHEUS_RW_PUSH_INTERVAL value: '10000' volumeMounts: - name: clone-dependencies-pdr mountPath: /temp-repo-pdr

all metrics are exported except for 'browser_http_req_failed'. The only similar metric is 'browser_http_req_failed_rate' but that one is not useful to me, as I would need to know the total number of calls made.

xk6-browser version

0.50.0-with-browser

OS

Linux/amd64

Chrome version

125.0.6422.112-r0

Docker version and image (if applicable)

No response

Steps to reproduce the problem

This happens with any script executed with the variable:

          args:
            - |
              k6 run ./${ parameters.file_name } --out experimental-prometheus-rw --tag testid=${ test_tag } --tag tipoPdr=${ tipo_Pdr } --tag name_app=${ name }
              exit 0
          workingDir: /temp-repo-pdr/k6/
          env:
            - name: K6_PROMETHEUS_RW_SERVER_URL
              value: 'http://prometheus-k6.pruebascarga.svc.cluster.local:9090/api/v1/write'
            - name: K6_PROMETHEUS_RW_TREND_STATS
              value: p(90),p(95),p(99),min,max,avg,count
            - name: K6_PROMETHEUS_RW_PUSH_INTERVAL
              value: '10000'

Expected behaviour

Metric 'browser_http_req_failed' exported to Prometheus

Actual behaviour

image

There is not the 'browser_http_req_failed' metric

@Hongwei999 Hongwei999 added the bug Something isn't working label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant