Endpoint Monitoring Dashboard

Hey guys,
I’m trying to create a New Relic dashboard to monitor the response time of a GET /health endpoint; and monitoring of this endpoint should be on an individual web node basis. Can you please help with suggestions or point me to the relevant documentation?

Hi, @pascal.okoro: I recommend that you configure a Synthetics monitor: Types of synthetic monitors | New Relic Documentation.

1 Like

Thanks for your response @philweber. I was able to configure a synthetics monitor for endpoints publicly accessible but not for endpoints attached to internal IPs or private URLs. I keep getting ‘TypeError: Cannot read property ‘statusCode’ of undefined’
This is what the synthetic monitor script looks like for the private endpoint.

$http.get('https://use1-qat.privateURL.ad/health',
  function (err, response, body) {
    assert.equal(response.statusCode, 200, 'Expected a 200 OK response');
    console.log('Response:', body.json);
    assert.equal(response.body, 'Healthy')
    }
)

New Relic’s public minions can only visit URLs that are accessible on the public Internet. You may configure your firewall to allow the public minions through, or you may deploy private minions on your own network, to access URLs behind your firewall: Install containerized private minions (CPMs) | New Relic Documentation.

1 Like