mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-26 04:10:08 +01:00
07855de142
* app/vmselect: adds milliseconds to the csv export response for rfc3339 * milliseconds is a standard prescion for VictoriaMetrics query request responses https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5837 * app/victoria-metrics: adds tests for csv export/import follow-up after 3541a8d0cf96dd4f8563624c4aab6816615d0756 --------- Signed-off-by: hagen1778 <roman@victoriametrics.com> Co-authored-by: hagen1778 <roman@victoriametrics.com>
15 lines
499 B
JSON
15 lines
499 B
JSON
{
|
|
"name": "csv export with extra_labels",
|
|
"data": [
|
|
"location-1,4,{TIME_MS}",
|
|
"location-2,6,{TIME_MS}",
|
|
"location-3,8,{TIME_MS}",
|
|
"location-4,10,{TIME_MS},"
|
|
],
|
|
"insert_query": "?format=1:label:location,2:metric:test_csv_labels,3:time:unix_ms&extra_label=location=location-1",
|
|
"query": [
|
|
"/api/v1/export/csv?format=__name__,location,__value__,__timestamp__:unix_ms&match[]={__name__=\"test_csv\"}&step=30s&start={TIME_MS-180s}"
|
|
],
|
|
"expected_result_lines_count": 4
|
|
}
|