Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging of health enpoint #64

Open
groezing opened this issue Jul 13, 2021 · 0 comments
Open

Improve logging of health enpoint #64

groezing opened this issue Jul 13, 2021 · 0 comments

Comments

@groezing
Copy link
Collaborator

Randomly the monitoring service evaluates the result of the /health call as error and opens an Pager duty alarm with the error message:
output: 'Failed: trigger was never started',

To better investigate the root cause there will be added log statements to the health point response.

e.g : add to health.js

line 44 in an else statement
monitorStatusString = JSON.stringify(monitorStatus, null, 4);
logger.info(method, triggerNamePrefix, 'reported monitor status is', monitorStatusString);

and at line 85
monitorStatusString = JSON.stringify(monitorStatus, null, 4);
logger.info(method, triggerNamePrefix, 'To few elements exist in monitorStatus : ',monitorStatusString );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant