prom2influx

command module
v0.0.0-...-6657aef Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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