openfoodfoundation / ofn-install

Ansible scripts for provisioning and deploying Open Food Network
54 stars 112 forks source link

Update New Relic redis monitoring configuration #922

Open rioug opened 6 months ago

rioug commented 6 months ago

Description

This came up as part of investigating infinite loading bug : https://github.com/openfoodfoundation/openfoodnetwork/issues/11752#issuecomment-2017002049

New Relic provides monitoring for redis, however it's configured with the wrong port. We need to be monitoring redis on port 6380. Redis monitoring is accessible in New Relic via Infrastructure -> Third party services -> Redis

Server to fix :

TODO

Fix ansible script so the correct configuration is used next time we provision a server

Fix

As an ofn-admin, ssh to the server:

Expected Behavior

Relic monitoring reports redis activity : redis_good

Actual Behaviour

Relic monitoring shows a flat graph : redis_bad

dacook commented 6 months ago

I wondered if we can set this up with Ansible?

Even better, it should probably be an .env variable, which both openfoodnetwork and newrelic could refer to.

rioug commented 6 months ago

All instance be au_prod (new relic not setup for third party monitoring ) and in_prod (new relic not setup) have been manually updated and are now reporting in new relic.

Leaving the ticket open till we fix the ansible script