You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use graylog to for aggregation, analytics, and alerting across a number of apps/systems including from docker containers (where Glances is).
What's the easiest way to log Events into the docker syslogs? As far as I can tell, Events are not logged by default. I checked the /tmp/glances-root.log with -d on but only the raw api json responses are logged (not the Event).
Any chance this can be added in a future release (ie without requiring -d turned on, just the warning / critical events from thresholds)
Edit
I ended up adding bit of logging code to /glances/events.py to add my own logger and sent the event starts, updates, & ends to the console / docker syslogs. I just mounted this into the image via docker-compose. Seems to work fine so far.
Not sure if this was the best approach, but I didn't want to use the Actions as I wanted something simple that works across all event types/thresholds.
Would still be nice if this functionality could be added to a future release. Great piece of software btw. Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use graylog to for aggregation, analytics, and alerting across a number of apps/systems including from docker containers (where Glances is).
What's the easiest way to log Events into the docker syslogs? As far as I can tell, Events are not logged by default. I checked the /tmp/glances-root.log with -d on but only the raw api json responses are logged (not the Event).
Any chance this can be added in a future release (ie without requiring -d turned on, just the warning / critical events from thresholds)
Edit
I ended up adding bit of logging code to /glances/events.py to add my own logger and sent the event starts, updates, & ends to the console / docker syslogs. I just mounted this into the image via docker-compose. Seems to work fine so far.
Not sure if this was the best approach, but I didn't want to use the Actions as I wanted something simple that works across all event types/thresholds.
Would still be nice if this functionality could be added to a future release. Great piece of software btw. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions