Kotlin Theodolite: Fix Csv export
Prometheus responses can contain commas.
Since we are writing the responses data in csv data this results in a "broken" table (like below).
{consumergroup=theodolite-uc1-application-0.0.1 , topic=input} , 1655552205 , 132621
This gets interpreted as 4 colums by standard csv instead of 3.
It can be fixed by adding a quotation marks to values in which ,
appears.
| labels | timestamp | value | |
|-------------------------------------------------|---------------|------------|--------|
| {consumergroup=theodolite-uc1-application-0.0.1 | topic=input} | 1655552205 | 132621 |
| {consumergroup=theodolite-uc1-application-0.0.1 | topic=input} | 1655552210 | 132621 |
| {consumergroup=theodolite-uc1-application-0.0.1 | topic=input} | 1655552215 | 132621 |
| {consumergroup=theodolite-uc1-application-0.0.1 | topic=input} | 1655552220 | 330 |
| {consumergroup=theodolite-uc1-application-0.0.1 | topic=input} | 1655552225 | 330 |
| {consumergroup=theodolite-uc1-application-0.0.1 | topic=input} | 1655552230 | 330 |
| {consumergroup=theodolite-uc1-application-0.0.1 | topic=input} | 1655552235 | 1012 |
Edited by Lorenz Boguhn