https://github.com/techgaun/influx-copy
Elixir escript to copy data between influxdb measurements
https://github.com/techgaun/influx-copy
elixir influxdb
Last synced: about 1 year ago
JSON representation
Elixir escript to copy data between influxdb measurements
- Host: GitHub
- URL: https://github.com/techgaun/influx-copy
- Owner: techgaun
- Created: 2017-03-19T02:17:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-15T03:38:18.000Z (almost 8 years ago)
- Last Synced: 2025-02-11T21:51:58.769Z (over 1 year ago)
- Topics: elixir, influxdb
- Language: Elixir
- Size: 10.4 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# InfluxCopy
> A generic influx copy script with ability to update values of tags based on given information
## Installation
Make sure you have elixir 1.3+ installed
Grab the [influx-copy executable](https://github.com/Brightergy/influx-copy/raw/master/influx_copy) and you are good to go.
```shell
sudo wget https://github.com/Brightergy/influx-copy/raw/master/influx_copy -O /usr/local/bin
```
## Usage
```elixir
./influx_copy -S "https://user:pass@host:8086/db:measurement" -d "https://user:pass@host:333/db:measurement"
./influx_copy -S "http://a:a@localhost:8086/brighterlink_io_dev:power" -d "http://a:a@localhost:8086/brighterlink_io_test:power" -s 1469464091 -e 1469468091 -u "facility_id:1->3" -t "company_id,facility_id,device_id"
```
For more details on CLI args, check [influx_copy.ex](lib/influx_copy.ex#L5-L13)