在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 教程/ 數(shù)據(jù)庫/ nsqadmin
nsqadmin
常見問題
安裝
編譯客戶端庫
特性和擔保
工具
拓撲模式
設計
Docker
nsqd
內(nèi)幕
性能
TCP 協(xié)議規(guī)范
nsqlookupd
介紹
產(chǎn)品配置
客戶端庫
快速開始

nsqadmin

nsqadmin 是一套 WEB UI,用來匯集集群的實時統(tǒng)計,并執(zhí)行不同的管理任務。

命令行選項

-graphite-url="": URL to graphite HTTP 地址
-http-address="0.0.0.0:4171": <addr>:<port> HTTP clients 監(jiān)聽的地址和端口
-lookupd-http-address=[]: lookupd HTTP 地址 (可能會提供多次)
-notification-http-endpoint="": HTTP 端點 (完全限定) ,管理動作將會發(fā)送到
-nsqd-http-address=[]: nsqd HTTP 地址 (可能會提供多次)
-proxy-graphite=false: Proxy HTTP requests to graphite
-template-dir="": 臨時目錄路徑
-use-statsd-prefixes=true: expect statsd prefixed keys in graphite (ie: 'stats_counts.')
-version=false: 打印版本信息

statsd / Graphite Integration

使用 nsqd --statsd-address=...的時候,你可以指定一個 nsqadmin --graphite-url=http://graphite.yourdomain.com 允許 nsqadmin 上的 graphite 圖表。如果使用一個統(tǒng)計克隆 (例如 statsdaemon),它沒有前綴的鍵值,也可以指定 --use-statsd-prefix=false。

Admin 通知

如果設置了 --notification-http-endpoint 標志,每次 admin 動作執(zhí)行的時候(例如暫停一個通道(channel)),nsqadmin 將會發(fā)送一個 POST 請求到指定(完全限定)端點。

請求的內(nèi)容包含的動作信息,例如:

{
  "action": "unpause_channel",
  "channel": "mouth",
  "topic": "beer",
  "timestamp": 1357683731,
  "user": "df",
  "user_agent": "Mozilla/5.0 (Macintosh; Iphone 8)"
  "remote_ip": "1.2.3.4:5678"
}

如果在請求時用戶名可用,user 字段將會填充,如果之前使用 htpasswd 授權,或者google-auth-proxy 之后,否則衛(wèi)空字符串。當不可用時 channel 字段也會為空。

提示: 通過設置 --notification-http-endpointhttp://addr.of.nsqd/put?topic=admin_actions,你可以創(chuàng)建一個 admin 的動作通知 NSQ 流,話題(topic)名為 admin_actions。