Skip to content

migrate historical data from Prometheus to InfluxDB

License

Notifications You must be signed in to change notification settings

zhyon404/prom2influx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prom2influx

migrate historical data from Prometheus to InfluxDB

Building prom2influx

You can use go to retrieve all the dependencies and then build an executable

go build

Usage

usage: prom2influx [<flags>]

Remote storage adapter

Flags:
  -h, --help               Show context-sensitive help (also try --help-long and
                           --help-man).
      --influxdb-url=""    The URL of the remote InfluxDB server to send samples
                           to. None, if empty.
      --prometheus-url=""  The URL of the remote prometheus server to read samples to. None, if empty.

      --monitor-label="codelab-monitor"  
                           Prometheus Attach these labels to any time series or alerts when communicating with external systems. codelab-monitor, if empty.

      --influxdb.database="prometheus"
                           The name of the database to use for storing samples
                           in InfluxDB.
      --start=""           The time start.
      --end=""             The time end
      --step=1m            The step
      --c=1                The connections
      --retry=3            The retry

an example would be:

prom2influx --influxdb-url="http://{IP}:8086" --prometheus-url="http://{IP}:9090" --influxdb.database="Demo"

About

migrate historical data from Prometheus to InfluxDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages