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

[dogshell] add hostname by default to event/metric posts #122

Merged
merged 2 commits into from
Mar 10, 2016

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Mar 9, 2016

[dogshell] add hostname by default to event posts

By default, dogshell event posts (dog event post command) are now
automatically associated with the local host.
The --host and --no-host (new) options allow to override this value
with a given host, or no host.

 # Event is associated with the local host
 dog event post "title" "content"

 # Event is associated with `foo.bar` host
 dog event post --host "foo.bar" "title" "content"

 # Event is not associated with any host
 dog event post --no-host "title" "content"

[dogshell] add hostname by default to metric posts

By default, dogshell event posts (dog metric post command) are now
automatically associated with the local host.
The --host and --no-host (new) options allow to override this value
with a given host, or no host.
The --localhostname option is deprecated, as made default when no
--host is set.

 # Metric is associated with the local host
 dog metric post "metric.example" 1

 # Metric is associated with `foo.bar` host
 dog metric post --host "foo.bar" "metric.example" 1

 # Metric is not associated with any host
 dog metric post --no-host "metric.example" 1

Fix #115

yannmh added 2 commits March 9, 2016 17:38
By default, `dogshell` event posts (`dog event post` command) are now
automatically associated with the local host.
The `--host` and `--no-host` (new) options allow to override this value
with a given host, or no host.

 ```python
 # Event is associated with the local host
 dog event post "title" "content"

 # Event is associated with `foo.bar` host
 dog event post --host "foo.bar" "title" "content"

 # Event is not associated with any host
 dog event post --no-host "title" "content"
 ```
By default, `dogshell` event posts (`dog metric post` command) are now
automatically associated with the local host.
The `--host` and `--no-host` (new) options allow to override this value
with a given host, or no host.
The `--localhostname` option is deprecated, as made default when no
`--host` is set.

 ```python
 # Metric is associated with the local host
 dog metric post "metric.example" 1

 # Metric is associated with `foo.bar` host
 dog metric post --host "foo.bar" "metric.example" 1

 # Metric is not associated with any host
 dog metric post --no-host "metric.example" 1
 ```
@yannmh
Copy link
Member Author

yannmh commented Mar 10, 2016

@JohnLZeller can you take a pass at it please ?

@JohnLZeller
Copy link

Looks good! 👍

yannmh added a commit that referenced this pull request Mar 10, 2016
[dogshell] add hostname by default to event/metric posts
@yannmh yannmh merged commit 032759e into master Mar 10, 2016
@yannmh yannmh deleted the yann/dogshell-hostname-detection branch March 10, 2016 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants