Open Trevelian opened 1 year ago
Same for me.
Just to give my opinion: The stage should just not create the geoip_*
labels if the database is not available. (without crashing the whole pipeline)
Other extractions like regex
do exactly that.
The error I'm seeing is invalid geoip stage config: open /etc/geoip/city.mmdb: no such file or directory
I tracked its source to here: https://github.com/grafana/loki/blob/main/clients/pkg/logentry/stages/geoip.go#L91
Describe the bug Promtail / Loki version 2.8.1 on Archlinux When updating the geoip db file, promtail crash
To Reproduce
Promtail geoip configuration :
Update the db file :
scp /tmp/GeoLite2-City.mmdb vm-loki:/etc/loki/GeoLite2-City.mmdb
promtail crash
Expected behavior Update the db file don't crash promtail, he open the new db file when it change
Environment: