Bartlomiej Plotka 3ac96c7841 Added TSDB import with OpenMetrics and CSV file support.
Based on https://github.com/prometheus/prometheus/pull/5887 Thanks for your
work so far @dipack95, it helped a lot!

Changes on top of @dipack95:

* Addressed all reviews components
* Use subcommands for different formats
* Simplifed block creation, no need to be such complex for first iteration.
* Simpliefied and separate concerns. No need to have access to DB. Block
* writting is separated as well for ease of benchmarking and test. This will be also
needed by @JessicaGreben
* Added import support for different formats.
* Removed all tests - those had to be pulled over and adjusted ):


Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2020-07-16 13:38:17 +01:00
..
2020-03-23 20:38:43 +01:00
2020-03-23 20:38:43 +01:00
2018-10-18 13:58:00 +01:00
2018-10-18 13:58:00 +01:00

Making changes to textparse lexers

In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command: golex -o=promlex.l.go promlex.l

Note that you need golex installed: go get -u modernc.org/golex