influx-protector

command module
v0.0.0-...-57779be Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 15 Imported by: 0

README

Influxdb Protector

Build Status

Inspired by Protector. A proxy written in Golang that will protect influxdb from silly or dangerous queries.

  • Queries loading lots of data points (threshold is configurable)
  • Queries dropping, altering or otherwise messing with the database
  • Show Measurements queries
  • Queries with short source regexes (i.e. likely to match lots of series)
  • Queries without a where clause

Options

  • target: target server --target http://127.0.0.1:8086
  • port: port to run on --port 8087
  • verbose: log all queries --verbose
  • maxbuckets: max number of data points for a single query: --maxbuckets 1400
  • maxduration: max duration for a single query (--maxduration 24h)
  • slowqueries: set slow queries threshold (milliseconds): --slowqueries 1000
  • statsdaddress: send telemetry to a statsd server: --statsdaddress localhost:8125

Supported endpoints

  • /query?q=...
  • /ping
  • /write

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