How to install Grafana Litespeed Server?

I would like to know proper way to install Grafana in litespeed server.

I used following method but it is not working in litespeed server. But it work without litespeed server.

sudo apt-get install -y apt-transport-https software-properties-common

wget -q -O - | sudo apt-key add -

echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

sudo apt-get update
sudo apt-get -y install grafana

sudo systemctl enable grafana-server

sudo systemctl start grafana-server

When install Grafana in Litespeed Server, following things happening.

  • High CPU used (90% - 100%)
  • Port not loading when Firewalls allowed 3000 port
  • when check port using sudo ss -tulnp | grep 3000 give following details. Not grafana.
    tcp LISTEN 0 4096* users:(("nghttpx",pid=572,fd=5),("nghttpx",pid=540,fd=5))
  • when changed port, it is not working.
    cat /etc/grafana/grafana.ini
    then set http_port = 5000
sudo systemctl restart grafana-server
sudo service grafana-server restart
  • when check new port, sudo ss -tuln | grep 5000, not showing anything

How to solve this issue?