gh05tpl/simple-influxdb-client-bundle
Composer 安装命令:
composer require gh05tpl/simple-influxdb-client-bundle
包简介
Simple bundle of influxdb client for symfony framework
README 文档
README
This bundle is based on influxdata/influxdb-client-php
Installation (until flex isn't added)
composer require gh05tpl/simple-influxdb-client-bundle- Add bundle in
bundles.phpwith this lineGh05tPL\SimpleInfluxDbClientBundle\SimpleInfluxDbClientBundle::class => ['all' => true], - Add config file under
config/packages/gh05tpl_influxdb_client.yamland use config example to populate it
Usage
To inject specific client defined in configuration use camelCase version of the name in argument (e.g. $mySecondClient) typed with
\InfluxDB2\Client class and then use it as described in original repo
influxdata/influxdb-client-php
Config file example
gh05tpl_influxdb_client: clients: my_first_client: host: 'http://influx' port: '8086' token: 'TOKEN' organization: 'my-org' bucket: 'my-bucket' precision: 's' timeout: 2 my_second_client: host: 'http://influx' port: '8086' token: 'TOKEN' organization: 'my-org2' bucket: 'my-bucket2' precision: 's' timeout: 2
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-29