Open CyrilBrulebois opened 2 years ago
This seems to work as well (instead of editing /etc/influxdb/influxdb.conf
), and would probably be easier to maintain than having to locate-and-modify-or-add lines in various sections of a file:
root@raspberrypi:~# cat /etc/systemd/system/influxdb.service.d/pirogue-adjust-log-levels.conf
[Service]
Environment=INFLUXDB_LOGGING_LEVEL=warn
Environment=INFLUXDB_HTTP_LOG_ENABLED=false
Plus, modifying this file might trigger prompts later on when it's time to upgrade the influxdb
package.
I'm not sure which pirogue package is the most suitable to ship this customization though.
Link to the upstream documentation for the version we're deploying (1.6.7~rc0-1): https://docs.influxdata.com/influxdb/v1.6/administration/config/
(By the way, upstream is at 2.2, using some RC for 1.6.7 feels a bit strange but if it works… :))
With the default configuration, we got a couple of (overlong) lines from influxdb each and every second, flooding
journalctl
.For example:
Let's see if we can tweak
/etc/influxdb/influxdb.conf
…The former can be avoided with:
(and maybe even
"error"
instead, moving away from the default"info"
setting).The latter can be avoided by having: