Hi,
I am attempting to setup the Asterisk integration for Grafana Cloud.
I have run the provided command to install and run Grafana agent.
It appears to be successful:
— Using package system rpm. Downloading and installing package for amd64
######################################################################## 100.0%
— Verifying package checksum
grafana-agent-0.33.2-1.amd64.rpm: OK
— Retrieving config and placing in /etc/grafana-agent.yaml
— Enabling and starting grafana-agent.service
Grafana Agent is now running!
However, when I check status I am seeing an error ‘Failed to start Monitoring system and forwarder’ Unit grafana-agent. service entered failed state and grafana-agent.service failed.
[root@ip146 ~]# sudo systemctl status grafana-agent.service
● grafana-agent.service - Monitoring system and forwarder
Loaded: loaded (/usr/lib/systemd/system/grafana-agent.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2023-06-02 18:29:58 BST; 35s ago
Process: 25085 ExecStart=/usr/bin/grafana-agent --config.file $CONFIG_FILE $CUSTOM_ARGS (code=exited, status=1/FAILURE)
Main PID: 25085 (code=exited, status=1/FAILURE)
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: grafana-agent.service: main process exited, code=exited, status=1/FAILURE
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: Unit grafana-agent.service entered failed state.
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: grafana-agent.service failed.
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: grafana-agent.service holdoff time over, scheduling restart.
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: Stopped Monitoring system and forwarder.
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: start request repeated too quickly for grafana-agent.service
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: Failed to start Monitoring system and forwarder.
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: Unit grafana-agent. service entered failed state.
Jun 02 18:29:58 ip146.ip-51-77-97.eu systemd[1]: grafana-agent.service failed.
Unsurprisingly when I run the test agent connection it fails.
Any idea why the grafana agent is failing?
Thanks