Open josephcy95 opened 2 years ago
Thank you @josephcy95 !
Thanks @josephcy95 - This could be the way forward instead of setting up local alerting. I am going to try this today
Hey @josephcy95
Tripped on the first hurdle, the following instruction: Login your grafana cloud and click "send metrics" on graphite
I'm in my cloud account, but unsure where the "sure metrics" option is, can you clarify?
Have anyone been able to try this out? I haven't done this yet.
Feature/improvement
I've finally able to send metrics to the free Grafana Cloud Graphite after a few attempt, and this is a short walkthrough of the how to do it.
1. Install carbon-relay-ng based on your distribution, this doesn't work with ARM arch, unfortunately I couldn't find ARM compatible nor able to build it.
2. Login your grafana cloud and click "send metrics" on graphite, in that page you should find the config for your carbon-relay-ng, generate and replace the user and api key in below config, save the config in /etc/carbon-relay-ng/carbon-relay-ng.conf
3. You also need to save below config as /etc/carbon-relay-ng/storage-schemas.conf which define your metrics retention period, make changes based on your needs as well.
4. Now you can start your carbon-relay-ng
5. I also use systemd to make sure my carbon-relay-ng start when server reboot
6. Now just run sitespeed to send data to carbon-relay-ng, make sure to set the --graphite.host to your host IP, which is usually 172.17.0.1 in linux, you can find it with ifconfig, not localhost which will point to localhost inside the container.
Note
By default the free cloud graphite db only alllow to store up to 10k metrics, so you would probably need to reduce the metrics, I think you can run it once with -vvv and see what metric is being sent, then use --metrics.filter to remove metrics you doesn't need. @soulgalore also told me to use —graphite.skipSummary to reduce metrics by not sending any metrics grouped by domain.
Btw I did not end up using the free grafana cloud graphite because I haven't spend time on reducing the metrics, instead I just run graphite on the same server I run sitespeed, I'm using the oracle cloud free ARM vm, and for monitoring only a few pages it works fine for me. If you want to do the same I also rebuild an image of graphite that works on ARM