-
Notifications
You must be signed in to change notification settings - Fork 7
feat: metricq_syslog_option #201
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
Conversation
ccc4a3b to
5ce43fe
Compare
8168afe to
7eb526a
Compare
a214a5e to
7d769bb
Compare
ec772e1 to
fa80633
Compare
metricq/cli/decorator.py
Outdated
| if value == "": | ||
| value = None | ||
|
|
||
| program_name = ctx.params.get("token", "metricq.program") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default should be the process name instead. Or argv[0].
metricq/cli/decorator.py
Outdated
| If used without parameter (for example: ``metricq-check --syslog`` ) the Syslog will default to localhost:514. | ||
| You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:5114) | ||
| by adding the value to the syslog flag (for example: ``metricq-check --syslog example.com:5114``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| by adding the value to the syslog flag (for example: ``metricq-check --syslog example.com:5114``) | |
| by adding the value to the syslog flag (for example: ``metricq-check --syslog example.com:514``) |
metricq/cli/decorator.py
Outdated
| If used without parameter (for example: ``metricq-check --syslog`` ) the Syslog will default to localhost:514. | ||
| You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:5114) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:5114) | |
| You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:514) |
fa80633 to
1098da0
Compare
Introducing the @metricq_syslog() wrapper for click commands, that configures the logger to sent to a Syslog Location (local or remote)