@@ -27,43 +27,39 @@ Usage:
2727 azure-scheduledevents-manager [OPTIONS]
2828
2929Application Options:
30- --debug debug mode [$DEBUG]
31- -v, --verbose verbose mode [$VERBOSE]
32- --log.json Switch log output to json format [$LOG_JSON]
33- --server.bind= Server address (default: :8080) [$SERVER_BIND]
34- --server.timeout.read= Server read timeout (default: 5s) [$SERVER_TIMEOUT_READ]
35- --server.timeout.write= Server write timeout (default: 10s) [$SERVER_TIMEOUT_WRITE]
36- --scrape.time= Scrape time in seconds (default: 1m) [$SCRAPE_TIME]
37- --azure.metadatainstance-url= Azure ScheduledEvents API URL (default:
38- http://169.254.169.254/metadata/instance?api-version=2019-08-01)
39- [$AZURE_METADATAINSTANCE_URL]
40- --azure.scheduledevents-url= Azure ScheduledEvents API URL (default:
41- http://169.254.169.254/metadata/scheduledevents?api-version=2019-08-01)
42- [$AZURE_SCHEDULEDEVENTS_URL]
43- --azure.timeout= Azure API timeout (seconds) (default: 30s) [$AZURE_TIMEOUT]
44- --azure.error-threshold= Azure API error threshold (after which app will panic) (default: 0)
45- [$AZURE_ERROR_THRESHOLD]
46- --azure.approve-scheduledevent Approve ScheduledEvent and start (if possible) start them ASAP
47- [$AZURE_APPROVE_SCHEDULEDEVENT]
48- --vm.nodename= VM node name [$VM_NODENAME]
49- --drain.enable Enable drain handling [$DRAIN_ENABLE]
50- --drain.mode=[kubernetes|command] Mode [$DRAIN_MODE]
51- --drain.not-before= Dont drain before this time (default: 5m) [$DRAIN_NOT_BEFORE]
52- --drain.events= Enable drain handling (default: reboot, redeploy, preempt, terminate) [$DRAIN_EVENTS]
53- --drain.wait-before-cmd= Wait duration before trigger drain command (default: 0) [$DRAIN_WAIT_BEFORE_CMD]
54- --drain.wait-after-cmd= Wait duration before trigger drain command (default: 0) [$DRAIN_WAIT_AFTER_CMD]
55- --command.test.cmd= Test command in command mode [$COMMAND_TEST_CMD]
56- --command.drain.cmd= Drain command in command mode [$COMMAND_DRAIN_CMD]
57- --command.uncordon.cmd= Uncordon command in command mode [$COMMAND_UNCORDON_CMD]
58- --kube.nodename= Kubernetes node name [$KUBE_NODENAME]
59- --kube.drain.args= Arguments for kubectl drain [$KUBE_DRAIN_ARGS]
60- --kube.drain.dry-run Do not drain, uncordon or label any node [$KUBE_DRAIN_DRY_RUN]
61- --notification= Shoutrrr url for notifications (https://containrrr.github.io/shoutrrr/) [$NOTIFICATION]
62- --notification.messagetemplate= Notification template (default: %v) [$NOTIFICATION_MESSAGE_TEMPLATE]
63- --metrics-requeststats Enable request stats metrics [$METRICS_REQUESTSTATS]
30+ --log.level=[trace|debug|info|warning|error] Log level (default: info) [$LOG_LEVEL]
31+ --log.format=[logfmt|json] Log format (default: logfmt) [$LOG_FORMAT]
32+ --log.source=[|short|file|full] Show source for every log message (useful for debugging and bug reports) [$LOG_SOURCE]
33+ --log.color=[|auto|yes|no] Enable color for logs [$LOG_COLOR]
34+ --log.time Show log time [$LOG_TIME]
35+ --server.bind= Server address (default: :8080) [$SERVER_BIND]
36+ --server.timeout.read= Server read timeout (default: 5s) [$SERVER_TIMEOUT_READ]
37+ --server.timeout.write= Server write timeout (default: 10s) [$SERVER_TIMEOUT_WRITE]
38+ --scrape.time= Scrape time in seconds (default: 1m) [$SCRAPE_TIME]
39+ --azure.metadatainstance-url= Azure ScheduledEvents API URL (default: http://169.254.169.254/metadata/instance?api-version=2019-08-01) [$AZURE_METADATAINSTANCE_URL]
40+ --azure.scheduledevents-url= Azure ScheduledEvents API URL (default: http://169.254.169.254/metadata/scheduledevents?api-version=2019-08-01) [$AZURE_SCHEDULEDEVENTS_URL]
41+ --azure.timeout= Azure API timeout (seconds) (default: 30s) [$AZURE_TIMEOUT]
42+ --azure.error-threshold= Azure API error threshold (after which app will panic) (default: 0) [$AZURE_ERROR_THRESHOLD]
43+ --azure.approve-scheduledevent Approve ScheduledEvent and start (if possible) start them ASAP [$AZURE_APPROVE_SCHEDULEDEVENT]
44+ --vm.nodename= VM node name [$VM_NODENAME]
45+ --drain.enable Enable drain handling [$DRAIN_ENABLE]
46+ --drain.mode=[kubernetes|command] Mode [$DRAIN_MODE]
47+ --drain.not-before= Dont drain before this time (default: 5m) [$DRAIN_NOT_BEFORE]
48+ --drain.events= Enable drain handling (default: reboot, redeploy, preempt, terminate) [$DRAIN_EVENTS]
49+ --drain.wait-before-cmd= Wait duration before trigger drain command (default: 0) [$DRAIN_WAIT_BEFORE_CMD]
50+ --drain.wait-after-cmd= Wait duration before trigger drain command (default: 0) [$DRAIN_WAIT_AFTER_CMD]
51+ --command.test.cmd= Test command in command mode [$COMMAND_TEST_CMD]
52+ --command.drain.cmd= Drain command in command mode [$COMMAND_DRAIN_CMD]
53+ --command.uncordon.cmd= Uncordon command in command mode [$COMMAND_UNCORDON_CMD]
54+ --kube.nodename= Kubernetes node name [$KUBE_NODENAME]
55+ --kube.drain.args= Arguments for kubectl drain [$KUBE_DRAIN_ARGS]
56+ --kube.drain.dry-run Do not drain, uncordon or label any node [$KUBE_DRAIN_DRY_RUN]
57+ --notification= Shoutrrr url for notifications (https://containrrr.github.io/shoutrrr/) [$NOTIFICATION]
58+ --notification.messagetemplate= Notification template (default: %v) [$NOTIFICATION_MESSAGE_TEMPLATE]
59+ --metrics-requeststats Enable request stats metrics [$METRICS_REQUESTSTATS]
6460
6561Help Options:
66- -h, --help Show this help message
62+ -h, --help Show this help message
6763```
6864
6965## Metrics
0 commit comments