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

nsqadmin: disambiguate nsqadmin notifications #653

Merged
merged 2 commits into from
Sep 22, 2015

Conversation

jehiah
Copy link
Member

@jehiah jehiah commented Sep 22, 2015

This adds the hostname that nsqadmin is access through, and the host running nsqadmin to the context of nsqadmin notifications. This is particularly useful if you have the same topics and channels in more than one cluster (say different datacenters) and you want to be able to disambiguate between the two.

@jehiah jehiah force-pushed the nsqadmin_notify_653 branch from e52c6d1 to 215ab9f Compare September 22, 2015 14:13
@jehiah
Copy link
Member Author

jehiah commented Sep 22, 2015

RFR @mreiferson

I get the following json output now (and will update docs after this lands )

{
  "via": "jehiah.local",
  "url": "http://jehiah.local:4171/api/topics/api_requests/nsq_to_file",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36",
  "remote_ip": "10.0.1.7:55983",
  "timestamp": 1442931083,
  "channel": "nsq_to_file",
  "topic": "api_requests",
  "action": "unpause_channel"
}

@mreiferson
Copy link
Member

LGTM

mreiferson added a commit that referenced this pull request Sep 22, 2015
nsqadmin: disambiguate nsqadmin notifications
@mreiferson mreiferson merged commit 2accff5 into nsqio:master Sep 22, 2015
@mreiferson mreiferson deleted the nsqadmin_notify_653 branch September 22, 2015 14:35
@jehiah
Copy link
Member Author

jehiah commented Sep 22, 2015

Docs updated in nsqio/nsqio.github.io@fe67beb

@mreiferson mreiferson modified the milestone: nsqadmin refactoring Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants