Hello,
I am trying to run Grafan as a service, the following is my configuration:
$ cd /etc/systemd/system/
$ touch grafana.service
Then add the following line
[Unit]
Description=grafana
[Service]
ExecStart=/home/ec2-user/grafana-8.2.3/bin/grafana-server
[Install]
WantedBy=default.target
Note: I am using Amazon Linux 2 as OS.
In the previous config, I used it to run Prometheus as a service, but it doesn’t work as I don’t have a (config.yml) file.