top of page

Installing Grafana on IBM Power Systems

Installing Grafana is more difficult than installing InfluxDB. We have no RPM package for ppc64le, so you have to do a lot of things manually.

As always first things first. The filesystem for grafana:

[root@myserver ~]# lvcreate -L1G -n grafana rhel

  Logical volume "grafana" created.

[root@myserver ~]# mkfs.xfs /dev/rhel/grafana

meta-data=/dev/rhel/grafana      isize=512    agcount=4, agsize=65536 blks

         =                       sectsz=512   attr=2, projid32bit=1

         =                       crc=1        finobt=0, sparse=0

data     =                       bsize=4096   blocks=262144, imaxpct=25

         =                       sunit=0      swidth=0 blks

naming   =version 2              bsize=4096   ascii-ci=0 ftype=1

log      =Internes Protokoll     bsize=4096   blocks=2560, version=2

         =                       sectsz=512   sunit=0 blks, lazy-count=1

realtime =keine                  extsz=4096   block

[root@myserver ~]# echo '/dev/mapper/rhel-grafana  /srv/grafana          xfs     defaults        0 1' >>/etc/fstab

[root@myserver ~]# mkdir /srv/grafana

[root@myserver ~]# mount /srv/grafana

Now download Grafana and some useful snippets:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 30.1M  100 30.1M    0     0   111k      0  0:04:36  0:04:36 --:--:-- 89968

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   384  100   384    0     0   1230      0 --:--:-- --:--:-- --:--:—  1230

[root@myserver ~]# curl -o /etc/systemd/system/grafana-server.service

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  1150  100  1150    0     0   3402      0 --:--:-- --:--:-- --:--:—  3402

Update /etc/sysconfig/grafana-server with your settings:




Add a separate user for grafana:

[root@myserver ~]# useradd -c 'grafana user' -d /srv/grafana -M -s /sbin/nologin -U -r grafana

Now unpack grafana tarball and make initial configuration:

[root@myserver ~]# cd /srv/grafana

[root@myserver grafana]# tar --strip-components=1 -xzf grafana-6.2.5.rhel7-ppc64le.tar.gz

[root@myserver grafana]# mkdir /var/log/grafana /etc/grafana /etc/grafana/provisioning /srv/grafana/data /srv/grafana/plugins

[root@myserver grafana]# chown grafana:grafana /var/log/grafana /srv/grafana/data /srv/grafana/plugins

[root@myserver grafana]# cp /srv/grafana/conf/sample.ini /etc/grafana/grafana.ini

[root@myserver grafana]# cp /srv/grafana/conf/ldap.toml /etc/grafana/ldap.toml

[root@myserver grafana]# mkdir /etc/grafana/provisioning/dashboards /etc/grafana/provisioning/datasources

[root@myserver grafana]# cp /srv/grafana/conf/provisioning/dashboards/sample.yaml /etc/grafana/provisioning/dashboards/sample.yaml

[root@myserver grafana]# cp /srv/grafana/conf/provisioning/datasources/sample.yaml /etc/grafana/provisioning/datasources/sample.yaml

[root@myserver grafana]# mkdir /etc/grafana/provisioning/notifiers

[root@myserver grafana]# cp /srv/grafana/conf/provisioning/notifiers/sample.yaml /etc/grafana/provisioning/notifiers/sample.yaml

[root@myserver grafana]# chown -Rh root:grafana /etc/grafana/*

[root@myserver grafana]# chmod 755 /etc/grafana

[root@myserver grafana]# find /etc/grafana -type f -exec chmod 640 {} ';'

[root@myserver grafana]# find /etc/grafana -type d -exec chmod 755 {} ';'

Almost done. Now a small correction in /etc/systemd/system/grafana-server.service


ExecStart=/srv/grafana/bin/grafana-server                                           \

Don't forget slash at the end!

And now we can start it.

[root@myserver ~]# systemctl daemon-reload

[root@myserver ~]# systemctl enable grafana-server

Created symlink from /etc/systemd/system/ to /etc/systemd/system/grafana-server.service.

[root@myserver ~]# systemctl start grafana-server

[root@myserver ~]# systemctl status grafana-server

● grafana-server.service - Grafana instance

   Loaded: loaded (/etc/systemd/system/grafana-server.service; enabled; vendor preset: disabled)

   Active: active (running) since Sa 2019-07-06 19:39:41 GMT; 57s ago


Main PID: 7528 (grafana-server)

   CGroup: /system.slice/grafana-server.service

           └─7528 /srv/grafana/bin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.p...

Don't forget about firewall if you have it:

[root@myserver ~]# firewall-cmd --add-port 3000/tcp


[root@myserver ~]# firewall-cmd --add-port 3000/tcp --permanent


Have fun!

1,519 views5 comments

Recent Posts

See All

5 Kommentare

@jbrielmaier, thank you. I will try this

Gefällt mir

Can you please direct us on how to compile/package for Grafana for ppc64le architecture without Docker image or Docker dependencies?

Gefällt mir

@Power DevOps:

Yes there is a package for SLE15 and SLE12 as you can see in the build results section here:


SLE15 SP1:

SLE12 SP4:

You could give it a try :)

Gefällt mir

Power DevOps
Power DevOps
21. Juli 2019

@jbrielmaier, thank you for pointing it out! Can the RPM be built on SLES 12/15 too?

Gefällt mir

For openSUSE there is a already a RPM package which also builds on ppc64le:

Gefällt mir
bottom of page