prom2influx

command module
v0.0.0-...-4f1dfda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 13 Imported by: 0

README

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"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL