You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Enno Richter d2f8ac392d update ci 2 years ago
dashboards generate conf dir 2 years ago
deps/kapacitor-udf kapacitor: add py3 UDF support 2 years ago
influx_proxy expose rpConfig in main.go 2 years ago
udf add downsample_mean.go 2 years ago
.drone.jsonnet update ci 2 years ago
.drone.yml update ci 2 years ago
.envrc initial 2 years ago
.gitignore add downsample_mean.go 2 years ago
Dockerfile.nix CI: add pkgVersion 2 years ago
README.md update CI 2 years ago
default.nix update CI config 2 years ago
go.mod add go moving_avg sample 2 years ago
go.sum add go moving_avg sample 2 years ago
main.go add TLS_INSECURE_SKIP_VERIFY option 2 years ago
shell.nix update CI config 2 years ago

README.md

influx-proxy

Build Status

This component acts as a reverse proxy between InfluxDB clients and server and allows on-the-fly rewrites of InfluxQL queries. Intended use is with Grafana. No multi-backend-support, configure a HTTP load-balancer if you run multiple data nodes.

Based on the original InfluxQL parser. This leverages a up-to-date and "correct" InfluxQL implementation without requiring to write major RegEx or Parser foo.

Download

Docker image releases are available at the Docker Hub: nwhh/influx-proxy.

Features

  • choose retention policy based on queried time range
  • simple implementation, not much code
  • leverages original InfluxQL parser, therefore
    • probably runs on windows
    • works and unit-tested with nested queries
    • no URL request parameter limitations
    • client authentication is passed to backend

Start development environment

Commands assume you are using the provided nix-shell configuration, e.g. using lorri.

  • Start InfluxDB using influxd run -config conf/influxd.conf
  • Start Telegraf using telegraf -config conf/telegraf.conf
  • Start Grafana using grafana-server -homepath tmp/grafana

or just run tmuxinator.

Building

Build Docker image

Run docker load <$(nix-build --no-out-link Dockerfile.nix).

Similar projects