vitaliy-sk / keenetic-grafana-monitoring

Monitor Keenetic router with Grafana and InfluxDB
Apache License 2.0
77 stars 15 forks source link

Should not require InfluxDB admin privileges for existing DB pre-created before #6

Closed andrico21 closed 3 years ago

andrico21 commented 3 years ago

Have existing common InfluxDB 1.8 instance already used for different metrics. So it's nice to just create new DB once with only write access for particular InfluxDB user. But application tries to recreate DB every time a container deploys. Is there any way to avoid DB recreation attempts? just not found any existing config.ini parameters to change its behaviour

influxdb.exceptions.InfluxDBClientError: 403: {"error":"error authorizing query: keeneticmonwriter not authorized to execute statement 'CREATE DATABASE keeneticmetrics', requires admin privilege"}

vitaliy-sk commented 3 years ago

@andrico21 application try to create DB only if it abesnt. please check that your DB exists and the user can see it SHOW DATABASES

vitaliy-sk commented 3 years ago

Closed due unactivity