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
Enabling dry-run is a good way to preview how a policy behaves providing operators the chance to adjust them before going live.
But currently the Autoscaler logs most of its internal operations at the TRACE level, which hides some of the information you would expect out of the dry-run mode.
Nomad has the nomad monitor command that allows operators to subscribe and upgrade or downgrade log level dynamically. This requires exposing logs via an API endpoint, which is currently unprotected for the Autoscaler.
Another option could be implementing a custom hclog.Logger that wraps a regular logger but upgrades messages when dry-run is enabled. This avoids having to sprinkle if clauses everywhere. The logger can be passed down to different components transparently.
A third option could be integrating OpenTelemetry so the Autoscaler actions are exposed as traces and spans instead of text-based log messages.
The text was updated successfully, but these errors were encountered:
Nice! I have been fiddling with OpenTelemetry for a while but have not been able to put much in practice yet. Starting with Autoscaler could be a useful learning experiment 🙂
Enabling
dry-run
is a good way to preview how a policy behaves providing operators the chance to adjust them before going live.But currently the Autoscaler logs most of its internal operations at the
TRACE
level, which hides some of the information you would expect out of the dry-run mode.Nomad has the
nomad monitor
command that allows operators to subscribe and upgrade or downgrade log level dynamically. This requires exposing logs via an API endpoint, which is currently unprotected for the Autoscaler.Another option could be implementing a custom
hclog.Logger
that wraps a regular logger but upgrades messages when dry-run is enabled. This avoids having to sprinkleif
clauses everywhere. The logger can be passed down to different components transparently.A third option could be integrating OpenTelemetry so the Autoscaler actions are exposed as traces and spans instead of text-based log messages.
The text was updated successfully, but these errors were encountered: