Hi!
I would like to use Grafana in High-Availability mode. I installed it on two separate machines and configured them to use the same remote database. This works perfectly.
The hosts:
grafana-node1 - 192.168.14.31
grafana-node2 - 192.168.14.32
OS: Almalinux 8.7
Grafana: 9.3.0
Both nodes names and IP addresses are in the /etc/hosts files.
The network devices name is ens192 and the IPV6 is disabled.
I would also like to set up high availability (unified) alerting, based on this:
This is how I modified the [unified_alerting] section in the /etc/grafana/grafana.ini file:
enabled = true ha_peers=192.168.14.31:9094,192.168.14.32:9094
After I restarted the grafana-server.service on both nodes, they don’t start. The logs show this:
logger=settings t=2022-12-01T17:39:40.708484842+01:00 level=info msg="Starting Grafana" version=9.3.0 commit=e9cb2a313e branch=HEAD compiled=2022-11-29T17:03:52+01:00 logger=settings t=2022-12-01T17:39:40.708739951+01:00 level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini logger=settings t=2022-12-01T17:39:40.708788777+01:00 level=info msg="Config loaded from" file=/etc/grafana/grafana.ini logger=settings t=2022-12-01T17:39:40.708814558+01:00 level=info msg="Config overridden from command line" arg="default.paths.data=/var/lib/grafana" logger=settings t=2022-12-01T17:39:40.708838387+01:00 level=info msg="Config overridden from command line" arg="default.paths.logs=/var/log/grafana" logger=settings t=2022-12-01T17:39:40.708864332+01:00 level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins" logger=settings t=2022-12-01T17:39:40.708893657+01:00 level=info msg="Config overridden from command line" arg="default.paths.provisioning=/etc/grafana/provisioning" logger=settings t=2022-12-01T17:39:40.708920477+01:00 level=info msg="Path Home" path=/usr/share/grafana logger=settings t=2022-12-01T17:39:40.708945747+01:00 level=info msg="Path Data" path=/var/lib/grafana logger=settings t=2022-12-01T17:39:40.708969656+01:00 level=info msg="Path Logs" path=/var/log/grafana logger=settings t=2022-12-01T17:39:40.708993471+01:00 level=info msg="Path Plugins" path=/var/lib/grafana/plugins logger=settings t=2022-12-01T17:39:40.709026793+01:00 level=info msg="Path Provisioning" path=/etc/grafana/provisioning logger=settings t=2022-12-01T17:39:40.709059036+01:00 level=info msg="App mode production" logger=sqlstore t=2022-12-01T17:39:40.709144102+01:00 level=info msg="Connecting to DB" dbtype=postgres logger=migrator t=2022-12-01T17:39:40.748527558+01:00 level=info msg="Starting DB migrations" logger=migrator t=2022-12-01T17:39:40.755413175+01:00 level=info msg="migrations completed" performed=0 skipped=464 duration=701.135µs logger=plugin.loader t=2022-12-01T17:39:40.846841639+01:00 level=info msg="Plugin registered" pluginID=input logger=plugin.finder t=2022-12-01T17:39:40.846936511+01:00 level=warn msg="Skipping finding plugins as directory does not exist" path=/var/lib/grafana/plugins logger=secrets t=2022-12-01T17:39:40.847270886+01:00 level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1 logger=query_data t=2022-12-01T17:39:40.850291928+01:00 level=info msg="Query Service initialization" logger=live.push_http t=2022-12-01T17:39:40.854378736+01:00 level=info msg="Live Push Gateway initialization" logger=ngalert.multiorg.alertmanager component=cluster t=2022-12-01T17:39:40.854611924+01:00 **level=warn err="couldn't deduce an advertise address: failed to get private IP: route ip+net: netlinkrib: address family not supported by protocol"**
What is the problem? What can I do?