首页 > 其他分享 >Influx CLI 常用命令

Influx CLI 常用命令

时间:2023-03-26 14:11:32浏览次数:38  
标签:geth CLI read 6b06ddceb7a2f08c write bd8cdb1ca689b797 常用命令 orgs Influx

influx configs

[default]
  url = "http://localhost:8086"
  token = "yxhyIIkHRyQMUBKHpMMnOBd-d6DdEr-LLUgZQd0-iNJV3xB3C44AsKjrxCKh084LS2bpl6Yfcyo1mM0BSh0V8A=="
  org = "wgs"

influx org

创建org

# influx org create --name geth --description "geth"
ID			Name
6b06ddceb7a2f08c	geth

查看当前org

# influx org list
ID			Name
6b06ddceb7a2f08c	geth
bd8cdb1ca689b797	wgs

influx backet

创建backet

# influx bucket create --name geth --description "geth backet" -o geth
ID			Name	Retention	Shard group duration	Organization ID		Schema Type
d4c154712d6c8d44	geth	infinite	168h0m0s		6b06ddceb7a2f08c	implicit

查看backet

# influx bucket list -o geth
ID			Name		Retention	Shard group duration	Organization ID		Schema Type
a19eff03cf1c023b	_monitoring	168h0m0s	24h0m0s			6b06ddceb7a2f08c	implicit
5bad66a9cb6df28a	_tasks		72h0m0s		24h0m0s			6b06ddceb7a2f08c	implicit
d4c154712d6c8d44	geth		infinite	168h0m0s		6b06ddceb7a2f08c	implicit

influx user

创建 org geth user

# influx user create --name geth --password geth_123456 -o geth
ID			Name
0af31ee856de3000	geth

查看 user

# influx user list
ID			Name
0af25bfe35ca4000	wgs-01
0af273e1a2ff0000	wgs-03
0af31ee856de3000	geth

influx auth

创建 org geth token

# influx auth create --all-access --description "org geth all-access token" --host http://localhost:8086 --org geth -u geth
ID			Description			Token												User Name	User ID			Permissions
0af32073ac9e3000	org geth all-access token	dJLl4X5M8g1Tr9tc3WKohlAn5MuwV1mJa6EZR1Y6DdZu5OWdDADJa4b_8jsalpD9VRCVuxCWrq2F5JgWSGizvA==	geth		0af31ee856de3000	[read:orgs/6b06ddceb7a2f08c/authorizations write:orgs/6b06ddceb7a2f08c/authorizations read:orgs/6b06ddceb7a2f08c/buckets write:orgs/6b06ddceb7a2f08c/buckets read:orgs/6b06ddceb7a2f08c/dashboards write:orgs/6b06ddceb7a2f08c/dashboards read:/orgs/6b06ddceb7a2f08c read:orgs/6b06ddceb7a2f08c/sources write:orgs/6b06ddceb7a2f08c/sources read:orgs/6b06ddceb7a2f08c/tasks write:orgs/6b06ddceb7a2f08c/tasks read:orgs/6b06ddceb7a2f08c/telegrafs write:orgs/6b06ddceb7a2f08c/telegrafs read:/users/0af31ee856de3000 write:/users/0af31ee856de3000 read:orgs/6b06ddceb7a2f08c/variables write:orgs/6b06ddceb7a2f08c/variables read:orgs/6b06ddceb7a2f08c/scrapers write:orgs/6b06ddceb7a2f08c/scrapers read:orgs/6b06ddceb7a2f08c/secrets write:orgs/6b06ddceb7a2f08c/secrets read:orgs/6b06ddceb7a2f08c/labels write:orgs/6b06ddceb7a2f08c/labels read:orgs/6b06ddceb7a2f08c/views write:orgs/6b06ddceb7a2f08c/views read:orgs/6b06ddceb7a2f08c/documents write:orgs/6b06ddceb7a2f08c/documents read:orgs/6b06ddceb7a2f08c/notificationRules write:orgs/6b06ddceb7a2f08c/notificationRules read:orgs/6b06ddceb7a2f08c/notificationEndpoints write:orgs/6b06ddceb7a2f08c/notificationEndpoints read:orgs/6b06ddceb7a2f08c/checks write:orgs/6b06ddceb7a2f08c/checks read:orgs/6b06ddceb7a2f08c/dbrp write:orgs/6b06ddceb7a2f08c/dbrp read:orgs/6b06ddceb7a2f08c/notebooks write:orgs/6b06ddceb7a2f08c/notebooks read:orgs/6b06ddceb7a2f08c/annotations write:orgs/6b06ddceb7a2f08c/annotations read:orgs/6b06ddceb7a2f08c/remotes write:orgs/6b06ddceb7a2f08c/remotes read:orgs/6b06ddceb7a2f08c/replications write:orgs/6b06ddceb7a2f08c/replications]

查看 token

# influx auth list 
ID			Description			Token												User Name	User ID			Permissions
0af25bfe450a4000	wgs-01's Token			yxhyIIkHRyQMUBKHpMMnOBd-d6DdEr-LLUgZQd0-iNJV3xB3C44AsKjrxCKh084LS2bpl6Yfcyo1mM0BSh0V8A==	wgs-01		0af25bfe35ca4000	[read:/authorizations write:/authorizations read:/buckets write:/buckets read:/dashboards write:/dashboards read:/orgs write:/orgs read:/sources write:/sources read:/tasks write:/tasks read:/telegrafs write:/telegrafs read:/users write:/users read:/variables write:/variables read:/scrapers write:/scrapers read:/secrets write:/secrets read:/labels write:/labels read:/views write:/views read:/documents write:/documents read:/notificationRules write:/notificationRules read:/notificationEndpoints write:/notificationEndpoints read:/checks write:/checks read:/dbrp write:/dbrp read:/notebooks write:/notebooks read:/annotations write:/annotations read:/remotes write:/remotes read:/replications write:/replications]
0af25f14000a4000	org wgs all-access token        59fSTydF26m1P34QUVE3EtAUPbjETN2mX1x5aql1A-_DqDOO0wAiWnU8KgQl-cLQ88Fh6_WalQSvNzcvouqbjQ==	wgs-01		0af25bfe35ca4000	[read:orgs/bd8cdb1ca689b797/authorizations write:orgs/bd8cdb1ca689b797/authorizations read:orgs/bd8cdb1ca689b797/buckets write:orgs/bd8cdb1ca689b797/buckets read:orgs/bd8cdb1ca689b797/dashboards write:orgs/bd8cdb1ca689b797/dashboards read:/orgs/bd8cdb1ca689b797 read:orgs/bd8cdb1ca689b797/sources write:orgs/bd8cdb1ca689b797/sources read:orgs/bd8cdb1ca689b797/tasks write:orgs/bd8cdb1ca689b797/tasks read:orgs/bd8cdb1ca689b797/telegrafs write:orgs/bd8cdb1ca689b797/telegrafs read:/users/0af25bfe35ca4000 write:/users/0af25bfe35ca4000 read:orgs/bd8cdb1ca689b797/variables write:orgs/bd8cdb1ca689b797/variables read:orgs/bd8cdb1ca689b797/scrapers write:orgs/bd8cdb1ca689b797/scrapers read:orgs/bd8cdb1ca689b797/secrets write:orgs/bd8cdb1ca689b797/secrets read:orgs/bd8cdb1ca689b797/labels write:orgs/bd8cdb1ca689b797/labels read:orgs/bd8cdb1ca689b797/views write:orgs/bd8cdb1ca689b797/views read:orgs/bd8cdb1ca689b797/documents write:orgs/bd8cdb1ca689b797/documents read:orgs/bd8cdb1ca689b797/notificationRules write:orgs/bd8cdb1ca689b797/notificationRules read:orgs/bd8cdb1ca689b797/notificationEndpoints write:orgs/bd8cdb1ca689b797/notificationEndpoints read:orgs/bd8cdb1ca689b797/checks write:orgs/bd8cdb1ca689b797/checks read:orgs/bd8cdb1ca689b797/dbrp write:orgs/bd8cdb1ca689b797/dbrp read:orgs/bd8cdb1ca689b797/notebooks write:orgs/bd8cdb1ca689b797/notebooks read:orgs/bd8cdb1ca689b797/annotations write:orgs/bd8cdb1ca689b797/annotations read:orgs/bd8cdb1ca689b797/remotes write:orgs/bd8cdb1ca689b797/remotes read:orgs/bd8cdb1ca689b797/replications write:orgs/bd8cdb1ca689b797/replications]
0af32073ac9e3000	org geth all-access token	dJLl4X5M8g1Tr9tc3WKohlAn5MuwV1mJa6EZR1Y6DdZu5OWdDADJa4b_8jsalpD9VRCVuxCWrq2F5JgWSGizvA==	geth		0af31ee856de3000	[read:orgs/6b06ddceb7a2f08c/authorizations write:orgs/6b06ddceb7a2f08c/authorizations read:orgs/6b06ddceb7a2f08c/buckets write:orgs/6b06ddceb7a2f08c/buckets read:orgs/6b06ddceb7a2f08c/dashboards write:orgs/6b06ddceb7a2f08c/dashboards read:/orgs/6b06ddceb7a2f08c read:orgs/6b06ddceb7a2f08c/sources write:orgs/6b06ddceb7a2f08c/sources read:orgs/6b06ddceb7a2f08c/tasks write:orgs/6b06ddceb7a2f08c/tasks read:orgs/6b06ddceb7a2f08c/telegrafs write:orgs/6b06ddceb7a2f08c/telegrafs read:/users/0af31ee856de3000 write:/users/0af31ee856de3000 read:orgs/6b06ddceb7a2f08c/variables write:orgs/6b06ddceb7a2f08c/variables read:orgs/6b06ddceb7a2f08c/scrapers write:orgs/6b06ddceb7a2f08c/scrapers read:orgs/6b06ddceb7a2f08c/secrets write:orgs/6b06ddceb7a2f08c/secrets read:orgs/6b06ddceb7a2f08c/labels write:orgs/6b06ddceb7a2f08c/labels read:orgs/6b06ddceb7a2f08c/views write:orgs/6b06ddceb7a2f08c/views read:orgs/6b06ddceb7a2f08c/documents write:orgs/6b06ddceb7a2f08c/documents read:orgs/6b06ddceb7a2f08c/notificationRules write:orgs/6b06ddceb7a2f08c/notificationRules read:orgs/6b06ddceb7a2f08c/notificationEndpoints write:orgs/6b06ddceb7a2f08c/notificationEndpoints read:orgs/6b06ddceb7a2f08c/checks write:orgs/6b06ddceb7a2f08c/checks read:orgs/6b06ddceb7a2f08c/dbrp write:orgs/6b06ddceb7a2f08c/dbrp read:orgs/6b06ddceb7a2f08c/notebooks write:orgs/6b06ddceb7a2f08c/notebooks read:orgs/6b06ddceb7a2f08c/annotations write:orgs/6b06ddceb7a2f08c/annotations read:orgs/6b06ddceb7a2f08c/remotes write:orgs/6b06ddceb7a2f08c/remotes read:orgs/6b06ddceb7a2f08c/replications write:orgs/6b06ddceb7a2f08c/replications]

参考文档

https://docs.influxdata.com/influxdb/v2.6/reference/cli/influx/

标签:geth,CLI,read,6b06ddceb7a2f08c,write,bd8cdb1ca689b797,常用命令,orgs,Influx
From: https://www.cnblogs.com/wangguishe/p/17258576.html

相关文章