Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ve-global/influx-protector
proxy to prevent dangerous queries getting to influxdb
https://github.com/ve-global/influx-protector
Last synced: 6 days ago
JSON representation
proxy to prevent dangerous queries getting to influxdb
- Host: GitHub
- URL: https://github.com/ve-global/influx-protector
- Owner: ve-global
- License: mit
- Created: 2016-12-08T12:07:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T15:21:37.000Z (over 7 years ago)
- Last Synced: 2024-08-02T07:12:30.222Z (3 months ago)
- Language: Go
- Size: 20.5 KB
- Stars: 12
- Watchers: 12
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-influxdb - influx-protector - proxy to prevent dangerous queries getting to influxdb (Miscellaneous / Other tools)
README
Influxdb Protector
---[ ![Build Status](https://travis-ci.org/ve-interactive/influx-protector.svg?branch=master)](https://travis-ci.org/ve-interactive/influx-protector)
Inspired by [Protector](https://github.com/trivago/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`