react-scanner icon indicating copy to clipboard operation
react-scanner copied to clipboard

Feature request: Prometheus text output

Open mrmartan opened this issue 2 years ago • 1 comments

Rather than having a custom json report output it would be useful to have the option to output the statistics in a prometheus compatible format. Then treat the metrics themselves as prometheus counters. That would give users the ability to store, aggregate, query and graph the data ober time and in larger organisations with many projects.

mrmartan avatar Sep 01 '22 15:09 mrmartan

For example:

{
  "Text": 10,
  "Button": 5,
  "Link": 3
}  

would become

component_count{component_name="Text"} 10
component_count{component_name="Button"} 5
component_count{component_name="Link"} 3

mrmartan avatar Sep 01 '22 15:09 mrmartan