Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Add enhanced influxdb-relay queries logging #25

Open
toni-moreno opened this issue Apr 9, 2019 · 0 comments
Open

Add enhanced influxdb-relay queries logging #25

toni-moreno opened this issue Apr 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@toni-moreno
Copy link

I would like control who is querying my databases and how many resources it is spending.

A good library to this component would be

https://github.com/rs/zerolog

https://github.com/rs/zerolog#integration-with-nethttp

I propose log the following fields

For all query endpoints (/prom,/write/,/query/,etc)

  • Client IP
  • User
  • URI (/query, /write/ etc)
  • influx database
  • measurement/s ( should explore body in /write and query in /query)
  • retention policy
  • amount of data sent
  • response time
  • precision

Specific for /query

  • Range Time queried. ( from to)
  • influx server sent
  • referer
  • grafana_refresh_time ( when grafana querys small refresh time could crash the database, this info is locate inside the referer)
@rockyluke rockyluke added the enhancement New feature or request label Apr 9, 2019
@rockyluke rockyluke changed the title [Feature Request] Add enhanced influx queries logging Add enhanced influx queries logging Apr 9, 2019
@rockyluke rockyluke changed the title Add enhanced influx queries logging Add enhanced influxdb-relay queries logging Apr 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants