martymarron / xk6-output-prometheus-pushgateway

This is a k6 extension for publishing test-run metrics to Prometheus via Pushgateway.
Apache License 2.0
10 stars 5 forks source link

feat: add possibility to include a prefix to all metrics #5

Closed lucasoares closed 1 year ago

lucasoares commented 1 year ago

The prometheus remote write output from K6 already exposes all metrics with a prefix: https://k6.io/docs/results-output/real-time/prometheus-remote-write/

I think this extension should be able to configure it too (even tho I let it empty by default).

Non-related question: shouldn't trend be a histogram?

martymarron commented 1 year ago

@lucasoares

Non-related question: shouldn't trend be a histogram?

I don't have any plan to support converting the trend metrics to a histogram yet due to my limited bandwidth. Sorry. Always welcoming the PR to implement it 👍

martymarron commented 1 year ago

Merged.

@lucasoares Thank you again for your great contribution 👍