一个用户启动一个influxdb docker实例. 棒棒得 (_)
所有数据增加一个用户的tag, 所有查询都必须跟这个tag.
参考 https://github.com/sitewhere/sitewhere/issues/872 中的回复:
The database name used by InfluxDB is configured as part of the InfluxDB datasource. In order to make sure a different database is used for each tenant, a placeholder is used so that the tenant token can by replaced in the name.
...
Note that the database name is [[tenant.id]] which indicates it should be replaced by the tenant id. If you were to replace the default value with a static constant, the same database would be used for all tenants, which would cause issues.
另外推荐一篇园子里关于Grafana多租户的博文:Grafana中多租户设置