vitalics / playwright-prometheus-remote-write-reporter

Playwright prometheus remote write reporter. Send your metrics to prometheus in realtime.
https://www.npmjs.com/package/playwright-prometheus-remote-write-reporter?activeTab=readme
MIT License
10 stars 3 forks source link

Add the possibility to add a custom label to ALL metrics generated #11

Closed giorgiodig closed 1 month ago

giorgiodig commented 1 month ago

We are running playwright tests for multiple environments (dev, stage, prod), and it would be very nice to add a custom label support in playwright.config.js, for ALL metrics generated by playwright, so we can differentiate between environments when building dashboards, alerts, etc.

Right now we are doing a non-ideal thing of creating different prefixes based on the environment, but it is not ideal for us as it:

Thanks!

xTrekStorex commented 1 month ago

see #9 & #10

vitalics commented 1 month ago

close as duplicate of #9