I have an influxdb database named metrics, I want to export it as a JSON file with its entire data.
directory = '/var/lib/influxdb/data'
I can save the list of tag keys:
influx -execute='show tag keys' -database=metrics -format=json -pretty=true > /home/ivms/metrics.json
but how can I save all tags with all values?