I setup Grafana using the official community .deb package on a Debian VM using nginx as a proxy.
Now, I’d like to run separate instances without the burden of maintaining several virtual machines. I’m thinking of using the same binary for each instance.
It looks like I could achieve this by
- adding systemd files for each grafana instance pointing to a different grafana.ini file
- changing everything needed in each grafana.ini to ensure different ports, DBs are used, etc.
- create a separate VHost in nginx to proxy each new instance
If everything can be set in the config file, it should be safe to run a single binary to serve several instances without them interfering with each other.
AFAIU, the only additional precaution would be to review the config file on each .deb update to ensure everything is duplicated.
Is there a good reason not to do that?