{"repo":"vitalics/playwright-prometheus-remote-write-reporter","free":true,"listed":false,"github":"https://github.com/vitalics/playwright-prometheus-remote-write-reporter","clone":"git clone https://github.com/vitalics/playwright-prometheus-remote-write-reporter.git","description":"Playwright prometheus remote write reporter. Send your metrics to prometheus in realtime.","language":"TypeScript","stars":25,"topics":["playwright","playwright-typescript","prometheus","prometheus-metrics","typescript"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"playwright-prometheus-remote-write-reporter Get Started NOTE : We need to configure prometheus as a precondition. 1. Enable feature flag - remote write receiver 2. in prometheus.yml file add next configuration: You may found complete example in example folder. Installation Configure reporter In your playwright.config.ts add next lines: Reporter Options Option Description Default ------------- --------------------------------------------------------- --------------------------------------- serverUrl Remote writer server URL [1] Not set. But throws an error if not set headers Custom headers for prometheus. E.g. {header1: 'value1'} undefined prefix Custom metric prefix name pw auth.username Basic auth. username undefined auth.password Basic auth. password undefined labels Ext. labels for all metrics. E.g. {label1: 'value1'} undefined env Node.js environments object [2] {} [1]: docs - https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote write [2]: We send empty object due to security reasons, since sending all environment variables can be visible for any user. Collected metrics Each metric name starts from prefix . By default it's pw . So every metric name described without prefix. Test(s) this metrics below sends periodically and you may found when they sends Name Description When Sends (hook name) ---------------------------- ------------------------------------------------------------ ---------------------- config playwright configuration object onE","default_branch":null,"files":null,"tree":[],"storefront":"/r/vitalics","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vitalics/playwright-prometheus-remote-write-reporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}